mall-admin.postman_collection.json 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. {
  2. "variables": [],
  3. "info": {
  4. "name": "mall-admin",
  5. "_postman_id": "f4a4382c-ee6c-975f-99ac-7645532458ba",
  6. "description": "",
  7. "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
  8. },
  9. "item": [
  10. {
  11. "name": "添加优惠券",
  12. "request": {
  13. "url": "{{admin.mall}}/coupon/add",
  14. "method": "POST",
  15. "header": [
  16. {
  17. "key": "Content-Type",
  18. "value": "application/json",
  19. "description": ""
  20. }
  21. ],
  22. "body": {
  23. "mode": "raw",
  24. "raw": "{\r\n \"amount\": 50,\r\n \"count\": 100,\r\n \"enableTime\": \"2018-08-27T08:40:46.973Z\",\r\n \"endTime\": \"2018-08-31T08:40:46.973Z\",\r\n \"minPoint\": 500,\r\n \"name\": \"T恤分类专用优惠券\",\r\n \"note\": \"满500减50\",\r\n \"perLimit\": 1,\r\n \"platform\": 0,\r\n \"publishCount\": 100,\r\n \"receiveCount\": 0,\r\n \"startTime\": \"2018-08-27T08:40:46.973Z\",\r\n \"type\": 0,\r\n \"useCount\": 0,\r\n \"useType\": 1,\r\n \"productCategoryRelationList\": [\r\n {\r\n \"productCategoryId\": 8\r\n }\r\n ]\r\n}"
  25. },
  26. "description": ""
  27. },
  28. "response": []
  29. },
  30. {
  31. "name": "删除指定优惠券",
  32. "request": {
  33. "url": "{{admin.mall}}/coupon/delete/6",
  34. "method": "POST",
  35. "header": [],
  36. "body": {},
  37. "description": ""
  38. },
  39. "response": []
  40. },
  41. {
  42. "name": "修改指定优惠券",
  43. "request": {
  44. "url": "{{admin.mall}}/coupon/update/6",
  45. "method": "POST",
  46. "header": [
  47. {
  48. "key": "Content-Type",
  49. "value": "application/json",
  50. "description": ""
  51. }
  52. ],
  53. "body": {
  54. "mode": "raw",
  55. "raw": "{\r\n \"amount\": 300,\r\n \"count\": 100,\r\n \"enableTime\": \"2018-08-27T08:40:46.973Z\",\r\n \"endTime\": \"2018-08-31T08:40:46.973Z\",\r\n \"minPoint\": 2000,\r\n \"name\": \"满2000减200\",\r\n \"note\": \"手机分类专用优惠券\",\r\n \"perLimit\": 1,\r\n \"platform\": 0,\r\n \"publishCount\": 100,\r\n \"receiveCount\": 0,\r\n \"startTime\": \"2018-08-27T08:40:46.973Z\",\r\n \"type\": 0,\r\n \"useCount\": 0,\r\n \"useType\": 1,\r\n \"productCategoryRelationList\": [\r\n {\r\n \"productCategoryId\": 18\r\n }\r\n ]\r\n}"
  56. },
  57. "description": ""
  58. },
  59. "response": []
  60. },
  61. {
  62. "name": "登录",
  63. "request": {
  64. "url": "{{admin.mall}}/admin/login",
  65. "method": "POST",
  66. "header": [
  67. {
  68. "key": "Content-Type",
  69. "value": "application/json",
  70. "description": ""
  71. }
  72. ],
  73. "body": {
  74. "mode": "raw",
  75. "raw": "{\r\n \"password\": \"123456\",\r\n \"username\": \"admin\"\r\n}"
  76. },
  77. "description": ""
  78. },
  79. "response": []
  80. },
  81. {
  82. "name": "查看商品列表",
  83. "request": {
  84. "url": "{{admin.mall}}/product/list",
  85. "method": "GET",
  86. "header": [
  87. {
  88. "key": "Authorization",
  89. "value": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImNyZWF0ZWQiOjE1Mzg5OTExNzkwODAsImV4cCI6MTUzOTU5NTk3OX0.u_fUHf09ONw6CCQW0ERufOgfuGUY1g7hu-o9thMl6wsFlBlkn1QmOZJwlU1ejsc65-N3p3k1pb11vTeqrVnYIw",
  90. "description": ""
  91. }
  92. ],
  93. "body": {},
  94. "description": ""
  95. },
  96. "response": []
  97. },
  98. {
  99. "name": "批量修改商品的删除状态",
  100. "request": {
  101. "url": "{{admin.mall}}/product/update/deleteStatus",
  102. "method": "POST",
  103. "header": [
  104. {
  105. "key": "Authorization",
  106. "value": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImNyZWF0ZWQiOjE1Mzg5OTExNzkwODAsImV4cCI6MTUzOTU5NTk3OX0.u_fUHf09ONw6CCQW0ERufOgfuGUY1g7hu-o9thMl6wsFlBlkn1QmOZJwlU1ejsc65-N3p3k1pb11vTeqrVnYIw",
  107. "description": ""
  108. },
  109. {
  110. "key": "Content-Type",
  111. "value": "application/x-www-form-urlencoded",
  112. "description": ""
  113. }
  114. ],
  115. "body": {
  116. "mode": "urlencoded",
  117. "urlencoded": [
  118. {
  119. "key": "ids",
  120. "value": "1,2",
  121. "description": "",
  122. "type": "text"
  123. },
  124. {
  125. "key": "deleteStatus",
  126. "value": "1",
  127. "description": "",
  128. "type": "text"
  129. }
  130. ]
  131. },
  132. "description": ""
  133. },
  134. "response": []
  135. },
  136. {
  137. "name": "查询所有一级分类及子分类",
  138. "request": {
  139. "url": "{{admin.mall}}/productCategory/list/withChildren",
  140. "method": "GET",
  141. "header": [
  142. {
  143. "key": "Authorization",
  144. "value": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImNyZWF0ZWQiOjE1Mzg5OTExNzkwODAsImV4cCI6MTUzOTU5NTk3OX0.u_fUHf09ONw6CCQW0ERufOgfuGUY1g7hu-o9thMl6wsFlBlkn1QmOZJwlU1ejsc65-N3p3k1pb11vTeqrVnYIw",
  145. "description": ""
  146. }
  147. ],
  148. "body": {},
  149. "description": ""
  150. },
  151. "response": []
  152. },
  153. {
  154. "name": "获取全部品牌列表",
  155. "request": {
  156. "url": "{{admin.mall}}/brand/listAll",
  157. "method": "GET",
  158. "header": [
  159. {
  160. "key": "Authorization",
  161. "value": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImNyZWF0ZWQiOjE1Mzg5OTExNzkwODAsImV4cCI6MTUzOTU5NTk3OX0.u_fUHf09ONw6CCQW0ERufOgfuGUY1g7hu-o9thMl6wsFlBlkn1QmOZJwlU1ejsc65-N3p3k1pb11vTeqrVnYIw",
  162. "description": ""
  163. }
  164. ],
  165. "body": {},
  166. "description": ""
  167. },
  168. "response": []
  169. },
  170. {
  171. "name": "刷新token",
  172. "request": {
  173. "url": "{{admin.mall}}/admin/token/refresh",
  174. "method": "GET",
  175. "header": [
  176. {
  177. "key": "Authorization",
  178. "value": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImNyZWF0ZWQiOjE1NTIzNTYzNzg0NjUsImV4cCI6MTU1Mjk2MTE3OH0.cxT6ULWfA17_QOh5nAcdU8FVldrSxLC2yi3y4fiHetCCrNzBBF9k6iRN-gfFmYa1_Ptav4WjgUAspZDBQa7SsA",
  179. "description": ""
  180. }
  181. ],
  182. "body": {},
  183. "description": ""
  184. },
  185. "response": []
  186. }
  187. ]
  188. }