neican.http 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  1. ### 健康检查
  2. GET {{ip}}/neican/check
  3. ### cms登录, 密码 sha256
  4. POST {{ip}}/admin/users/login
  5. Content-Type: application/json
  6. {
  7. "loginName": "17691223255",
  8. "loginPassword": "8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92"
  9. }
  10. > {%
  11. client.global.set("token", response.body.data.token)
  12. %}
  13. ### 登出
  14. GET {{ip}}/admin/users/logout
  15. Authorization: {{token}}
  16. ### 菜单添加 type 1是客户端的菜单, 2是后台菜单
  17. POST {{ip}}/admin/module/add
  18. Content-Type: application/json
  19. Authorization: {{token}}
  20. {
  21. "name": "首页",
  22. "type": 1,
  23. "level": "1",
  24. "pid": 0,
  25. "router": "/index"
  26. }
  27. ### 后台菜单查询
  28. GET {{ip}}/admin/module/list
  29. Authorization: {{token}}
  30. ### 菜单修改
  31. POST {{ip}}/admin/module/update
  32. Content-Type: application/json
  33. Authorization: {{token}}
  34. {
  35. "moduleId": 2,
  36. "name": "人员列表1",
  37. "type": 2,
  38. "level": "2",
  39. "pid": 1,
  40. "router": "/admin/user/list"
  41. }
  42. ### 菜单删除
  43. DELETE {{ip}}/admin/module/delete/7
  44. Authorization: {{token}}
  45. ### 地域
  46. GET {{ip}}/admin/region/tree
  47. Authorization: {{token}}
  48. ### 机构
  49. POST {{ip}}/admin/organ/add
  50. Content-Type: application/json
  51. Authorization: {{token}}
  52. {
  53. "regionId": 130107105,
  54. "pid": 1,
  55. "level": 1,
  56. "name": "广信1",
  57. "category": "--",
  58. "authType": "资质",
  59. "info": "这是他上班的地方"
  60. }
  61. ### 机构查询
  62. POST {{ip}}/admin/organ/list
  63. Content-Type: application/json
  64. Authorization: {{token}}
  65. {
  66. "page": 1,
  67. "pageSize": 2
  68. }
  69. ### 机构编辑
  70. POST {{ip}}/admin/organ/update
  71. Content-Type:application/json
  72. Authorization: {{token}}
  73. {
  74. "organId": 1,
  75. "regionId": 130107105,
  76. "pid": 1,
  77. "level": 1,
  78. "name": "广信1",
  79. "category": "--",
  80. "authType": "资质",
  81. "info": "这是他上班的地方"
  82. }
  83. ### 机构删除
  84. DELETE {{ip}}/admin/organ/delete/3
  85. Authorization: {{token}}
  86. ###角色添加
  87. POST {{ip}}/admin/role/add
  88. Content-Type: application/json
  89. Authorization: {{token}}
  90. {
  91. "name": "角色1",
  92. "remark": "测试角色",
  93. "roleAclData": [{
  94. "organId": 1,
  95. "userId": 2
  96. }],
  97. "roleAclModules": [
  98. {
  99. "moduleId": 1
  100. }
  101. ]
  102. }
  103. ###角色查询
  104. POST {{ip}}/admin/role/list
  105. Content-Type: application/json
  106. Authorization: {{token}}
  107. {
  108. "page": 1,
  109. "pageSize": 2
  110. }
  111. ### 角色详情
  112. GET {{ip}}/admin/role/info/3
  113. Authorization: {{token}}
  114. ### 管理员添加
  115. POST {{ip}}/admin/users/add
  116. Content-Type: application/json
  117. Authorization: {{token}}
  118. {
  119. "phone": "17691223222",
  120. "password": "123456",
  121. "name": "孙悟空2",
  122. "sex": "男",
  123. "category": "猴",
  124. "adminRoles": [
  125. {"roleId": 3}
  126. ]
  127. }
  128. ### 管理员列表
  129. POST {{ip}}/admin/users/list
  130. Content-Type: application/json
  131. Authorization: {{token}}
  132. {
  133. "page": 1,
  134. "pageSize": 2
  135. }
  136. ### 管理员修改
  137. POST {{ip}}/admin/users/update
  138. Content-Type: application/json
  139. Authorization: {{token}}
  140. {
  141. "userId": 4,
  142. "phone": "17691223255",
  143. "name": "孙悟空4",
  144. "sex": "男",
  145. "category": "猴子",
  146. "adminRoles": [
  147. {"roleId": 3}
  148. ]
  149. }
  150. ### 管理员删除
  151. DELETE {{ip}}/admin/users/delete/7
  152. Content-Type: application/json
  153. Authorization: {{token}}
  154. ### 客户端菜单查询(配置客户权限用)
  155. GET {{ip}}/admin/module/client
  156. Authorization: {{token}}
  157. ### 客户角色查询
  158. GET {{ip}}/admin/user-role/list
  159. Authorization: {{token}}
  160. ### 客户角色创建
  161. POST {{ip}}/admin/user-role/add
  162. Content-Type: application/json
  163. Authorization: {{token}}
  164. {
  165. "name": "测试角色1",
  166. "remark": "描述信息1",
  167. "modules": [
  168. {"moduleId": 6}
  169. ]
  170. }
  171. ### 客户角色修改
  172. POST {{ip}}/admin/user-role/update
  173. Content-Type: application/json
  174. Authorization: {{token}}
  175. {
  176. "name": "测试角色1",
  177. "remark": "描述信息1",
  178. "modules": [
  179. {"moduleId": 6}
  180. ]
  181. }
  182. ### 客户角色删除
  183. DELETE {{ip}}/admin/user-role/delete/2
  184. Authorization: {{token}}
  185. ### 客户添加
  186. POST {{ip}}/admin/custom/add
  187. Content-Type: application/json
  188. Authorization: {{token}}
  189. {
  190. "name": "姓名xx",
  191. "regionId": 100100100,
  192. "organId": 5,
  193. "phone": "17691223255",
  194. "password": "123456",
  195. "info": "个人简介:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  196. "photo": "http://头像.png",
  197. "position": "职位",
  198. "resume": "履历xxxx",
  199. "level": "正国级",
  200. "roleId": 3
  201. }
  202. ### 客户查询
  203. POST {{ip}}/admin/custom/list
  204. Content-Type: application/json
  205. Authorization: {{token}}
  206. {
  207. "name": "",
  208. "page": 1,
  209. "pageSize": 10
  210. }
  211. ### 领导管理,头像上传
  212. POST {{ip}}/admin/leaders/upload
  213. Content-Type: multipart/form-data; boundary=WebAppBoundary
  214. Authorization: {{token}}
  215. --WebAppBoundary
  216. Content-Disposition: form-data; name="file"; filename="3.jpg"
  217. Content-Type: multipart/form-data
  218. < C:\Users\admin\Pictures\壁纸\v2-90a79d1eacb521d470c5b7192004cf42_r.jpg
  219. --WebAppBoundary
  220. ### 领导添加
  221. POST {{ip}}/admin/leaders/add
  222. Content-Type: application/json
  223. Authorization: {{token}}
  224. {
  225. "name": "姓名",
  226. "info": "描述",
  227. "photo": "https://cxzx.smcic.net/neican/img/leader/20231214114516/-1829771934-3.jpg",
  228. "position": "职位",
  229. "resume": "履历",
  230. "level": "级别",
  231. "regionId": 100100100,
  232. "sort": 1
  233. }
  234. ### 领导查询
  235. GET {{ip}}/admin/leaders/list/100100100
  236. Content-Type: application/json
  237. Authorization: {{token}}
  238. ### 领导修改
  239. POST {{ip}}/admin/leaders/update
  240. Content-Type: application/json
  241. Authorization: {{token}}
  242. {
  243. "leaderId": 2,
  244. "name": "姓名1",
  245. "info": "描述1",
  246. "photo": "https://cxzx.smcic.net/neican/img/leader/20231214114516/-1829771934-3.jpg",
  247. "position": "职位",
  248. "resume": "履历",
  249. "level": "级别",
  250. "regionId": 100100100,
  251. "status": 0,
  252. "sort": 1
  253. }
  254. ### 生活服务添加
  255. POST {{ip}}/admin/life-service/add
  256. Content-Type: application/json
  257. Authorization: {{token}}
  258. {
  259. "name": "服务名称",
  260. "logo": "https://cxzx.smcic.net/neican/img/leader/20231214114516/-1829771934-3.jpg",
  261. "url": "http://服务外链地址.com",
  262. "sort": 1
  263. }
  264. ### 生活服务分页查询
  265. POST {{ip}}/admin/life-service/list
  266. Content-Type: application/json
  267. Authorization: {{token}}
  268. {
  269. "name": "",
  270. "page": 1,
  271. "pageSize": 10
  272. }
  273. ### 生活服务修改
  274. POST {{ip}}/admin/life-service/update
  275. Content-Type: application/json
  276. Authorization: {{token}}
  277. {
  278. "serviceId": 1,
  279. "name": "服务名称1",
  280. "logo": "https://cxzx.smcic.net/neican/img/leader/20231214114516/-1829771934-3.jpg",
  281. "url": "http://服务外链地址.com",
  282. "sort": 1
  283. }
  284. ### 生活服务删除
  285. DELETE {{ip}}/admin/life-service/delete/1
  286. Authorization: {{token}}
  287. ### 直播流地址管理 添加
  288. POST {{ip}}/admin/live-stream/add
  289. Content-Type: application/json
  290. Authorization: {{token}}
  291. {
  292. "name": "陕西卫视",
  293. "url": "http://stream1.com",
  294. "desc": "陕西卫视高清直播流"
  295. }
  296. ### 直播流地址管理 列表
  297. GET {{ip}}/admin/live-stream/list
  298. ### 直播流地址管理 修改
  299. POST {{ip}}/admin/live-stream/update
  300. Content-Type: application/json
  301. Authorization: {{token}}
  302. {
  303. "liveId": 1,
  304. "name": "陕西卫视",
  305. "url": "http://stream1.com",
  306. "desc": "陕西卫视高清直播流1"
  307. }
  308. ### 直播流地址管理
  309. DELETE {{ip}}/admin/live-stream/delete/1
  310. Authorization: {{token}}
  311. ### 客户设备绑定
  312. POST {{ip}}/admin/user-device/add
  313. Content-Type: application/json
  314. Authorization: {{token}}
  315. {
  316. "userId": 3,
  317. "deviceCodes": ["xxxx-xxxx-xxxx-xxxx", "设备号2", "设备号3"]
  318. }
  319. ### 客户设备删除
  320. POST {{ip}}/admin/user-device/delete
  321. Content-Type: application/json
  322. Authorization: {{token}}
  323. {
  324. "userId": 3,
  325. "deviceCodes": ["设备号3"]
  326. }
  327. ### 网媒logo上传, 返回logo的url
  328. POST {{ip}}/admin/network-media/upload
  329. Content-Type: multipart/form-data; boundary=WebAppBoundary
  330. Authorization: {{token}}
  331. --WebAppBoundary
  332. Content-Disposition: form-data; name="file"; filename="3.jpg"
  333. Content-Type: multipart/form-data
  334. < C:\Users\admin\Pictures\壁纸\v2-90a79d1eacb521d470c5b7192004cf42_r.jpg
  335. --WebAppBoundary
  336. ### 网媒管理 添加
  337. POST {{ip}}/admin/network-media/add
  338. Content-Type: application/json
  339. Authorization: {{token}}
  340. {
  341. "name": "名称1",
  342. "logo": "http://xxx",
  343. "url": "http://外链"
  344. }
  345. ### 网媒列表
  346. GET {{ip}}/admin/network-media/list
  347. ### 网媒管理 修改
  348. POST {{ip}}/admin/network-media/update
  349. Content-Type: application/json
  350. Authorization: {{token}}
  351. {
  352. "mediaId": 1,
  353. "name": "名称1",
  354. "logo": "http://xxx",
  355. "url": "http://外链",
  356. }
  357. ### 网媒删除
  358. DELETE {{ip}}/admin/network-media/delete/1