collection.json 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  1. {
  2. "variable": [
  3. {
  4. "id": "baseUrl",
  5. "key": "baseUrl",
  6. "type": "string",
  7. "name": "string",
  8. "value": "http:\/\/192.168.110.10"
  9. }
  10. ],
  11. "info": {
  12. "name": "Owl Admin API Documentation",
  13. "_postman_id": "ca5ccc9c-07c7-408d-aabc-bdd7bb5d79e3",
  14. "description": "Owl Admin API \u63a5\u53e3\u6587\u6863",
  15. "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
  16. },
  17. "item": [
  18. {
  19. "name": "Endpoints",
  20. "description": "",
  21. "item": [
  22. {
  23. "name": "\u66f4\u65b0API\u6587\u6863\u7684\u8ba4\u8bc1Token",
  24. "request": {
  25. "url": {
  26. "host": "{{baseUrl}}",
  27. "path": "api\/scribe\/update-token\/:mobile",
  28. "query": [],
  29. "raw": "{{baseUrl}}\/api\/scribe\/update-token\/:mobile",
  30. "variable": [
  31. {
  32. "id": "mobile",
  33. "key": "mobile",
  34. "value": "13800138000",
  35. "description": "\u624b\u673a\u53f7\u7801."
  36. }
  37. ]
  38. },
  39. "method": "GET",
  40. "header": [
  41. {
  42. "key": "Accept",
  43. "value": "application\/json"
  44. }
  45. ],
  46. "body": null,
  47. "description": "\u901a\u8fc7\u624b\u673a\u53f7\u83b7\u53d6\u9a8c\u8bc1\u7801\u5e76\u767b\u5f55\uff0c\u7136\u540e\u66f4\u65b0API\u6587\u6863\u7684\u8ba4\u8bc1Token"
  48. },
  49. "response": [
  50. {
  51. "header": [],
  52. "code": 200,
  53. "body": "{\n \"code\": 200,\n \"message\": \"Token\u66f4\u65b0\u6210\u529f\",\n \"data\": {\n \"token\": \"your_new_token_here\"\n }\n}",
  54. "name": ""
  55. }
  56. ]
  57. },
  58. {
  59. "name": "[\u8d26\u6237\u7ba1\u7406] \u53d1\u9001\u9a8c\u8bc1\u7801",
  60. "request": {
  61. "url": {
  62. "host": "{{baseUrl}}",
  63. "path": "api\/account\/send-code",
  64. "query": [],
  65. "raw": "{{baseUrl}}\/api\/account\/send-code"
  66. },
  67. "method": "POST",
  68. "header": [
  69. {
  70. "key": "Content-Type",
  71. "value": "application\/json"
  72. },
  73. {
  74. "key": "Accept",
  75. "value": "application\/json"
  76. }
  77. ],
  78. "body": {
  79. "mode": "raw",
  80. "raw": "{\"mobile\":\"13800138000\"}"
  81. },
  82. "description": "\u5411\u6307\u5b9a\u624b\u673a\u53f7\u53d1\u9001\u9a8c\u8bc1\u7801"
  83. },
  84. "response": [
  85. {
  86. "header": [],
  87. "code": 200,
  88. "body": "{\n \"code\": 200,\n \"message\": \"\u9a8c\u8bc1\u7801\u53d1\u9001\u6210\u529f\",\n \"data\": null\n}",
  89. "name": ""
  90. }
  91. ]
  92. },
  93. {
  94. "name": "[\u8d26\u6237\u7ba1\u7406] \u7528\u6237\u767b\u5f55",
  95. "request": {
  96. "url": {
  97. "host": "{{baseUrl}}",
  98. "path": "api\/account\/login",
  99. "query": [],
  100. "raw": "{{baseUrl}}\/api\/account\/login"
  101. },
  102. "method": "POST",
  103. "header": [
  104. {
  105. "key": "Content-Type",
  106. "value": "application\/json"
  107. },
  108. {
  109. "key": "Accept",
  110. "value": "application\/json"
  111. }
  112. ],
  113. "body": {
  114. "mode": "raw",
  115. "raw": "{\"mobile\":\"13800138000\",\"code\":\"123456\"}"
  116. },
  117. "description": "\u4f7f\u7528\u624b\u673a\u53f7\u548c\u9a8c\u8bc1\u7801\u767b\u5f55\u8d26\u6237"
  118. },
  119. "response": [
  120. {
  121. "header": [],
  122. "code": 200,
  123. "body": "{\n \"code\": 200,\n \"message\": \"\u767b\u5f55\u6210\u529f\",\n \"data\": {\n \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...\",\n \"user\": {\n \"id\": 1,\n \"mobile\": \"13800138000\",\n \"nickname\": \"\u7528\u6237\u6635\u79f0\"\n }\n }\n}",
  124. "name": ""
  125. }
  126. ]
  127. },
  128. {
  129. "name": "[\u8d26\u6237\u7ba1\u7406] \u5fae\u4fe1\u767b\u5f55",
  130. "request": {
  131. "url": {
  132. "host": "{{baseUrl}}",
  133. "path": "api\/account\/wx-login",
  134. "query": [],
  135. "raw": "{{baseUrl}}\/api\/account\/wx-login"
  136. },
  137. "method": "POST",
  138. "header": [
  139. {
  140. "key": "Content-Type",
  141. "value": "application\/json"
  142. },
  143. {
  144. "key": "Accept",
  145. "value": "application\/json"
  146. }
  147. ],
  148. "body": {
  149. "mode": "raw",
  150. "raw": "{\"openid\":\"wx_123456789\"}"
  151. },
  152. "description": "\u4f7f\u7528\u5fae\u4fe1openid\u767b\u5f55\u8d26\u6237"
  153. },
  154. "response": [
  155. {
  156. "header": [],
  157. "code": 200,
  158. "body": "{\n \"code\": 200,\n \"message\": \"\u767b\u5f55\u6210\u529f\",\n \"data\": {\n \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...\",\n \"user\": {\n \"id\": 1,\n \"openid\": \"wx_123456789\",\n \"nickname\": \"\u5fae\u4fe1\u6635\u79f0\"\n }\n }\n}",
  159. "name": ""
  160. }
  161. ]
  162. },
  163. {
  164. "name": "[\u8d26\u6237\u7ba1\u7406] \u7528\u6237\u9000\u51fa",
  165. "request": {
  166. "url": {
  167. "host": "{{baseUrl}}",
  168. "path": "api\/account\/logout",
  169. "query": [],
  170. "raw": "{{baseUrl}}\/api\/account\/logout"
  171. },
  172. "method": "POST",
  173. "header": [
  174. {
  175. "key": "Accept",
  176. "value": "application\/json"
  177. }
  178. ],
  179. "body": null,
  180. "description": "\u9000\u51fa\u5f53\u524d\u8d26\u6237\u767b\u5f55\u72b6\u6001"
  181. },
  182. "response": [
  183. {
  184. "header": [],
  185. "code": 200,
  186. "body": "{\n \"code\": 200,\n \"message\": \"\u9000\u51fa\u6210\u529f\",\n \"data\": null\n}",
  187. "name": ""
  188. }
  189. ]
  190. },
  191. {
  192. "name": "[\u8d26\u6237\u7ba1\u7406] \u7528\u6237\u6ce8\u9500",
  193. "request": {
  194. "url": {
  195. "host": "{{baseUrl}}",
  196. "path": "api\/account",
  197. "query": [],
  198. "raw": "{{baseUrl}}\/api\/account"
  199. },
  200. "method": "DELETE",
  201. "header": [
  202. {
  203. "key": "Accept",
  204. "value": "application\/json"
  205. }
  206. ],
  207. "body": null,
  208. "description": "\u6c38\u4e45\u6ce8\u9500\u5f53\u524d\u8d26\u6237"
  209. },
  210. "response": [
  211. {
  212. "header": [],
  213. "code": 200,
  214. "body": "{\n \"code\": 200,\n \"message\": \"\u6ce8\u9500\u6210\u529f\",\n \"data\": null\n}",
  215. "name": ""
  216. }
  217. ]
  218. },
  219. {
  220. "name": "[\u7528\u6237\u7ba1\u7406] \u7528\u6237\u63d0\u73b0",
  221. "request": {
  222. "url": {
  223. "host": "{{baseUrl}}",
  224. "path": "api\/user\/withdraw",
  225. "query": [],
  226. "raw": "{{baseUrl}}\/api\/user\/withdraw"
  227. },
  228. "method": "POST",
  229. "header": [
  230. {
  231. "key": "Content-Type",
  232. "value": "application\/json"
  233. },
  234. {
  235. "key": "Accept",
  236. "value": "application\/json"
  237. }
  238. ],
  239. "body": {
  240. "mode": "raw",
  241. "raw": "{\"amount\":\"100.00\"}"
  242. },
  243. "description": "\u63d0\u73b0\u7528\u6237\u7684\u4f59\u989d"
  244. },
  245. "response": [
  246. {
  247. "header": [],
  248. "code": 200,
  249. "body": "{\n \"code\": 200,\n \"message\": \"\u63d0\u73b0\u6210\u529f\",\n \"data\": null\n}",
  250. "name": ""
  251. }
  252. ]
  253. },
  254. {
  255. "name": "[\u7528\u6237\u7ba1\u7406] \u7528\u6237\u53cd\u9988",
  256. "request": {
  257. "url": {
  258. "host": "{{baseUrl}}",
  259. "path": "api\/user\/feedback",
  260. "query": [],
  261. "raw": "{{baseUrl}}\/api\/user\/feedback"
  262. },
  263. "method": "POST",
  264. "header": [
  265. {
  266. "key": "Content-Type",
  267. "value": "application\/json"
  268. },
  269. {
  270. "key": "Accept",
  271. "value": "application\/json"
  272. }
  273. ],
  274. "body": {
  275. "mode": "raw",
  276. "raw": "{\"content\":\"\u8fd9\u662f\u4e00\u4e2a\u53cd\u9988\u4fe1\u606f\"}"
  277. },
  278. "description": "\u63d0\u4ea4\u7528\u6237\u7684\u53cd\u9988\u4fe1\u606f"
  279. },
  280. "response": [
  281. {
  282. "header": [],
  283. "code": 200,
  284. "body": "{\n \"code\": 200,\n \"message\": \"\u63d0\u4ea4\u6210\u529f\",\n \"data\": null\n}",
  285. "name": ""
  286. }
  287. ]
  288. },
  289. {
  290. "name": "[\u7528\u6237\u7ba1\u7406] \u7533\u8bf7\u6210\u4e3a\u6280\u5e08",
  291. "request": {
  292. "url": {
  293. "host": "{{baseUrl}}",
  294. "path": "api\/user\/apply-coach",
  295. "query": [],
  296. "raw": "{{baseUrl}}\/api\/user\/apply-coach"
  297. },
  298. "method": "POST",
  299. "header": [
  300. {
  301. "key": "Accept",
  302. "value": "application\/json"
  303. }
  304. ],
  305. "body": null,
  306. "description": "\u7533\u8bf7\u6210\u4e3a\u6280\u5e08"
  307. },
  308. "response": [
  309. {
  310. "header": [],
  311. "code": 200,
  312. "body": "{\n \"code\": 200,\n \"message\": \"\u7533\u8bf7\u6210\u529f\",\n \"data\": null\n}",
  313. "name": ""
  314. }
  315. ]
  316. }
  317. ]
  318. }
  319. ],
  320. "auth": {
  321. "type": "bearer",
  322. "bearer": [
  323. {
  324. "key": "Authorization",
  325. "type": "string"
  326. }
  327. ]
  328. }
  329. }