首页会员菜单 - 图1

会员获取APP首页菜单

支持用户自定义菜单 memberID为可选传参

测试地址:

{url}/dev-api/customer/menu/menuList?memberId=3

生产地址:

{url}/api/customer/menu/menuList?memberId=3

HTTP Method:GET

是否白名单:是

具体请求

header:

body:

请求参数说明

参数名 类型 是否必填 说明 示例
memberId String 会员ID
isHome String 首页展示

响应参数

成功响应示例

  1. {
  2. "msg": "操作成功",
  3. "code": 200,
  4. "data": [
  5. {
  6. "searchValue": null,
  7. "createBy": null,
  8. "createTime": "2022-02-22 15:23:53",
  9. "updateBy": null,
  10. "updateTime": "2022-02-23 09:49:56",
  11. "remark": null,
  12. "params": {},
  13. "id": 18,
  14. "name": "网约公交",
  15. "icon": null,
  16. "sort": 0,
  17. "path": "/path/index",
  18. "isHome": null,
  19. "status": 1,
  20. "isDeleted": null
  21. },
  22. {
  23. "searchValue": null,
  24. "createBy": null,
  25. "createTime": "2022-02-22 15:24:30",
  26. "updateBy": null,
  27. "updateTime": "2022-02-23 09:49:36",
  28. "remark": null,
  29. "params": {},
  30. "id": 19,
  31. "name": "车保姆",
  32. "icon": null,
  33. "sort": 1,
  34. "path": null,
  35. "isHome": null,
  36. "status": 1,
  37. "isDeleted": null
  38. },
  39. {
  40. "searchValue": null,
  41. "createBy": null,
  42. "createTime": "2022-02-23 09:52:59",
  43. "updateBy": null,
  44. "updateTime": "2022-02-23 09:53:17",
  45. "remark": null,
  46. "params": {},
  47. "id": 20,
  48. "name": "实体卡充值",
  49. "icon": null,
  50. "sort": 2,
  51. "path": null,
  52. "isHome": null,
  53. "status": 1,
  54. "isDeleted": null
  55. },
  56. {
  57. "searchValue": null,
  58. "createBy": null,
  59. "createTime": "2022-02-23 09:54:22",
  60. "updateBy": null,
  61. "updateTime": "2022-02-23 09:56:03",
  62. "remark": null,
  63. "params": {},
  64. "id": 21,
  65. "name": "新闻资讯",
  66. "icon": null,
  67. "sort": 3,
  68. "path": null,
  69. "isHome": null,
  70. "status": 1,
  71. "isDeleted": null
  72. },
  73. {
  74. "searchValue": null,
  75. "createBy": null,
  76. "createTime": "2022-02-23 09:56:16",
  77. "updateBy": null,
  78. "updateTime": "2022-02-23 09:56:21",
  79. "remark": null,
  80. "params": {},
  81. "id": 22,
  82. "name": "公共自行车",
  83. "icon": null,
  84. "sort": 4,
  85. "path": null,
  86. "isHome": null,
  87. "status": 1,
  88. "isDeleted": null
  89. },
  90. {
  91. "searchValue": null,
  92. "createBy": null,
  93. "createTime": "2022-02-23 09:56:35",
  94. "updateBy": null,
  95. "updateTime": null,
  96. "remark": null,
  97. "params": {},
  98. "id": 23,
  99. "name": "充电运营",
  100. "icon": null,
  101. "sort": 5,
  102. "path": null,
  103. "isHome": null,
  104. "status": 1,
  105. "isDeleted": null
  106. },
  107. {
  108. "searchValue": null,
  109. "createBy": null,
  110. "createTime": "2022-02-23 09:56:50",
  111. "updateBy": null,
  112. "updateTime": null,
  113. "remark": null,
  114. "params": {},
  115. "id": 24,
  116. "name": "市民服务",
  117. "icon": null,
  118. "sort": 6,
  119. "path": null,
  120. "isHome": null,
  121. "status": 1,
  122. "isDeleted": null
  123. },
  124. {
  125. "searchValue": null,
  126. "createBy": null,
  127. "createTime": "2022-02-23 09:57:04",
  128. "updateBy": null,
  129. "updateTime": null,
  130. "remark": null,
  131. "params": {},
  132. "id": 25,
  133. "name": "电子公交卡",
  134. "icon": null,
  135. "sort": 7,
  136. "path": null,
  137. "isHome": null,
  138. "status": 1,
  139. "isDeleted": null
  140. },
  141. {
  142. "searchValue": null,
  143. "createBy": null,
  144. "createTime": "2022-02-23 09:57:15",
  145. "updateBy": null,
  146. "updateTime": null,
  147. "remark": null,
  148. "params": {},
  149. "id": 26,
  150. "name": "实时公交",
  151. "icon": null,
  152. "sort": 8,
  153. "path": null,
  154. "isHome": null,
  155. "status": 1,
  156. "isDeleted": null
  157. },
  158. {
  159. "searchValue": null,
  160. "createBy": null,
  161. "createTime": "2022-02-23 09:57:25",
  162. "updateBy": null,
  163. "updateTime": null,
  164. "remark": null,
  165. "params": {},
  166. "id": 27,
  167. "name": "旅游一卡通",
  168. "icon": null,
  169. "sort": 9,
  170. "path": null,
  171. "isHome": null,
  172. "status": 1,
  173. "isDeleted": null
  174. },
  175. {
  176. "searchValue": null,
  177. "createBy": null,
  178. "createTime": "2022-02-23 09:57:34",
  179. "updateBy": null,
  180. "updateTime": null,
  181. "remark": null,
  182. "params": {},
  183. "id": 28,
  184. "name": "分公司业务",
  185. "icon": null,
  186. "sort": 10,
  187. "path": null,
  188. "isHome": null,
  189. "status": 1,
  190. "isDeleted": null
  191. }
  192. ]
  193. }

失败响应示例

  1. {
  2. "code": 401,
  3. "msg": "令牌不能为空"
  4. }

响应参数说明

参数名 说明 备注
code 返回码 为200表示成功,非200表示调用失败,其他错误码请见返回码说明
msg 返回码的文本描述内容
data 返回数据
isHome 是否首页显示 1:显示;非1:隐藏;
createTime 创建时间
name 菜单名称
icon 菜单图标
path 跳转地址
sort 排序号
status 状态 1:显示;2:不显示

注意事项:
memberID不传,则返回默认的菜单


会员保存自定义菜单

测试地址:

{url}/dev-api/customer/menu/saveMenu

生产地址:

{url}/api/customer/menu/saveMenu

HTTP Method:POST
Content-Type:application/json

是否白名单:是

具体请求

header:

body:

请求参数说明

最少传值

  1. [
  2. {
  3. "id" : "20",
  4. "isHome" : "1"
  5. },
  6. {
  7. "id" : "21",
  8. "isHome" : "2"
  9. },
  10. {
  11. "id" : "22",
  12. "isHome" : "1"
  13. }
  14. ]

也可以全参传值

  1. [
  2. {
  3. "searchValue": null,
  4. "createBy": null,
  5. "createTime": "2022-02-23 09:57:34",
  6. "updateBy": null,
  7. "updateTime": null,
  8. "remark": null,
  9. "params": {},
  10. "id": 28,
  11. "name": "分公司业务",
  12. "icon": null,
  13. "sort": 10,
  14. "path": null,
  15. "isHome": null,
  16. "status": 1,
  17. "isDeleted": null
  18. },
  19. {
  20. "searchValue": null,
  21. "createBy": null,
  22. "createTime": "2022-02-22 15:24:30",
  23. "updateBy": null,
  24. "updateTime": "2022-02-23 09:49:36",
  25. "remark": null,
  26. "params": {},
  27. "id": 19,
  28. "name": "车保姆",
  29. "icon": null,
  30. "sort": 1,
  31. "path": null,
  32. "isHome": null,
  33. "status": 1,
  34. "isDeleted": null
  35. },
  36. {
  37. "searchValue": null,
  38. "createBy": null,
  39. "createTime": "2022-02-23 09:52:59",
  40. "updateBy": null,
  41. "updateTime": "2022-02-23 09:53:17",
  42. "remark": null,
  43. "params": {},
  44. "id": 20,
  45. "name": "实体卡充值",
  46. "icon": null,
  47. "sort": 2,
  48. "path": null,
  49. "isHome": null,
  50. "status": 1,
  51. "isDeleted": null
  52. },
  53. {
  54. "searchValue": null,
  55. "createBy": null,
  56. "createTime": "2022-02-23 09:54:22",
  57. "updateBy": null,
  58. "updateTime": "2022-02-23 09:56:03",
  59. "remark": null,
  60. "params": {},
  61. "id": 21,
  62. "name": "新闻资讯",
  63. "icon": null,
  64. "sort": 3,
  65. "path": null,
  66. "isHome": null,
  67. "status": 1,
  68. "isDeleted": null
  69. },
  70. {
  71. "searchValue": null,
  72. "createBy": null,
  73. "createTime": "2022-02-22 15:23:53",
  74. "updateBy": null,
  75. "updateTime": "2022-02-23 09:49:56",
  76. "remark": null,
  77. "params": {},
  78. "id": 18,
  79. "name": "网约公交",
  80. "icon": null,
  81. "sort": 0,
  82. "path": "/path/index",
  83. "isHome": null,
  84. "status": 1,
  85. "isDeleted": null
  86. },
  87. {
  88. "searchValue": null,
  89. "createBy": null,
  90. "createTime": "2022-02-23 09:56:16",
  91. "updateBy": null,
  92. "updateTime": "2022-02-23 09:56:21",
  93. "remark": null,
  94. "params": {},
  95. "id": 22,
  96. "name": "公共自行车",
  97. "icon": null,
  98. "sort": 4,
  99. "path": null,
  100. "isHome": null,
  101. "status": 1,
  102. "isDeleted": null
  103. },
  104. {
  105. "searchValue": null,
  106. "createBy": null,
  107. "createTime": "2022-02-23 09:56:35",
  108. "updateBy": null,
  109. "updateTime": null,
  110. "remark": null,
  111. "params": {},
  112. "id": 23,
  113. "name": "充电运营",
  114. "icon": null,
  115. "sort": 5,
  116. "path": null,
  117. "isHome": null,
  118. "status": 1,
  119. "isDeleted": null
  120. },
  121. {
  122. "searchValue": null,
  123. "createBy": null,
  124. "createTime": "2022-02-23 09:56:50",
  125. "updateBy": null,
  126. "updateTime": null,
  127. "remark": null,
  128. "params": {},
  129. "id": 24,
  130. "name": "市民服务",
  131. "icon": null,
  132. "sort": 6,
  133. "path": null,
  134. "isHome": null,
  135. "status": 1,
  136. "isDeleted": null
  137. },
  138. {
  139. "searchValue": null,
  140. "createBy": null,
  141. "createTime": "2022-02-23 09:57:04",
  142. "updateBy": null,
  143. "updateTime": null,
  144. "remark": null,
  145. "params": {},
  146. "id": 25,
  147. "name": "电子公交卡",
  148. "icon": null,
  149. "sort": 7,
  150. "path": null,
  151. "isHome": null,
  152. "status": 1,
  153. "isDeleted": null
  154. },
  155. {
  156. "searchValue": null,
  157. "createBy": null,
  158. "createTime": "2022-02-23 09:57:15",
  159. "updateBy": null,
  160. "updateTime": null,
  161. "remark": null,
  162. "params": {},
  163. "id": 26,
  164. "name": "实时公交",
  165. "icon": null,
  166. "sort": 8,
  167. "path": null,
  168. "isHome": null,
  169. "status": 1,
  170. "isDeleted": null
  171. },
  172. {
  173. "searchValue": null,
  174. "createBy": null,
  175. "createTime": "2022-02-23 09:57:25",
  176. "updateBy": null,
  177. "updateTime": null,
  178. "remark": null,
  179. "params": {},
  180. "id": 27,
  181. "name": "旅游一卡通",
  182. "icon": null,
  183. "sort": 9,
  184. "path": null,
  185. "isHome": null,
  186. "status": 1,
  187. "isDeleted": null
  188. }
  189. ]
参数名 类型 是否必填 说明 示例
id String 菜单ID
isHome String 是否首页显示 1:显示;非1:隐藏
createTime String 创建时间
name String 菜单名称
icon String 菜单图标
path String 跳转地址
sort String 排序号
status String 状态 1:显示;2:不显示

image.png我的应用位置的图标为在首页显示的,需要传isHome参数为1,其他为2

响应参数

成功响应示例

  1. {
  2. "msg": "操作成功",
  3. "code": 200
  4. }

失败响应示例

  1. {
  2. "code": 401,
  3. "msg": "令牌不能为空"
  4. }

响应参数说明

参数名 说明 备注
code 返回码 为200表示成功,非200表示调用失败,其他错误码请见返回码说明
msg 返回码的文本描述内容

注意事项:
memberID不传,则返回默认的菜单