00.yaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488
  1. name: Endpoints
  2. description: ''
  3. endpoints:
  4. -
  5. httpMethods:
  6. - GET
  7. uri: 'api/scribe/update-token/{mobile}'
  8. metadata:
  9. groupName: Endpoints
  10. groupDescription: ''
  11. subgroup: ''
  12. subgroupDescription: ''
  13. title: 更新API文档的认证Token
  14. description: 通过手机号获取验证码并登录,然后更新API文档的认证Token
  15. authenticated: true
  16. custom: []
  17. headers:
  18. Authorization: 'Bearer 70|nUrmG4YMAXfrsQpjgxCp9TYu4ifnPRLxvIUV9jgc4ad47df3'
  19. urlParameters:
  20. mobile:
  21. name: mobile
  22. description: 手机号码.
  23. required: true
  24. example: '13800138000'
  25. type: string
  26. enumValues: []
  27. exampleWasSpecified: true
  28. nullable: false
  29. custom: []
  30. cleanUrlParameters:
  31. mobile: '13800138000'
  32. queryParameters: []
  33. cleanQueryParameters: []
  34. bodyParameters: []
  35. cleanBodyParameters: []
  36. fileParameters: []
  37. responses:
  38. -
  39. status: 200
  40. content: |-
  41. {
  42. "code": 200,
  43. "message": "Token更新成功",
  44. "data": {
  45. "token": "your_new_token_here"
  46. }
  47. }
  48. headers: []
  49. description: ''
  50. custom: []
  51. responseFields: []
  52. auth:
  53. - headers
  54. - Authorization
  55. - 'Bearer Bearer {YOUR_AUTH_KEY}'
  56. controller: null
  57. method: null
  58. route: null
  59. custom: []
  60. -
  61. httpMethods:
  62. - POST
  63. uri: api/account/send-code
  64. metadata:
  65. groupName: Endpoints
  66. groupDescription: ''
  67. subgroup: ''
  68. subgroupDescription: ''
  69. title: '[账户管理] 发送验证码'
  70. description: 向指定手机号发送验证码
  71. authenticated: true
  72. custom: []
  73. headers:
  74. Authorization: 'Bearer 70|nUrmG4YMAXfrsQpjgxCp9TYu4ifnPRLxvIUV9jgc4ad47df3'
  75. Content-Type: application/json
  76. urlParameters: []
  77. cleanUrlParameters: []
  78. queryParameters: []
  79. cleanQueryParameters: []
  80. bodyParameters:
  81. mobile:
  82. name: mobile
  83. description: 手机号码.
  84. required: true
  85. example: '13800138000'
  86. type: string
  87. enumValues: []
  88. exampleWasSpecified: true
  89. nullable: false
  90. custom: []
  91. cleanBodyParameters:
  92. mobile: '13800138000'
  93. fileParameters: []
  94. responses:
  95. -
  96. status: 200
  97. content: |-
  98. {
  99. "code": 200,
  100. "message": "验证码发送成功",
  101. "data": null
  102. }
  103. headers: []
  104. description: ''
  105. custom: []
  106. responseFields: []
  107. auth:
  108. - headers
  109. - Authorization
  110. - 'Bearer Bearer {YOUR_AUTH_KEY}'
  111. controller: null
  112. method: null
  113. route: null
  114. custom: []
  115. -
  116. httpMethods:
  117. - POST
  118. uri: api/account/login
  119. metadata:
  120. groupName: Endpoints
  121. groupDescription: ''
  122. subgroup: ''
  123. subgroupDescription: ''
  124. title: '[账户管理] 用户登录'
  125. description: 使用手机号和验证码登录账户
  126. authenticated: true
  127. custom: []
  128. headers:
  129. Authorization: 'Bearer 70|nUrmG4YMAXfrsQpjgxCp9TYu4ifnPRLxvIUV9jgc4ad47df3'
  130. Content-Type: application/json
  131. urlParameters: []
  132. cleanUrlParameters: []
  133. queryParameters: []
  134. cleanQueryParameters: []
  135. bodyParameters:
  136. mobile:
  137. name: mobile
  138. description: 手机号码.
  139. required: true
  140. example: '13800138000'
  141. type: string
  142. enumValues: []
  143. exampleWasSpecified: true
  144. nullable: false
  145. custom: []
  146. code:
  147. name: code
  148. description: 验证码.
  149. required: true
  150. example: '123456'
  151. type: string
  152. enumValues: []
  153. exampleWasSpecified: true
  154. nullable: false
  155. custom: []
  156. cleanBodyParameters:
  157. mobile: '13800138000'
  158. code: '123456'
  159. fileParameters: []
  160. responses:
  161. -
  162. status: 200
  163. content: |-
  164. {
  165. "code": 200,
  166. "message": "登录成功",
  167. "data": {
  168. "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...",
  169. "user": {
  170. "id": 1,
  171. "mobile": "13800138000",
  172. "nickname": "用户昵称"
  173. }
  174. }
  175. }
  176. headers: []
  177. description: ''
  178. custom: []
  179. responseFields: []
  180. auth:
  181. - headers
  182. - Authorization
  183. - 'Bearer Bearer {YOUR_AUTH_KEY}'
  184. controller: null
  185. method: null
  186. route: null
  187. custom: []
  188. -
  189. httpMethods:
  190. - POST
  191. uri: api/account/wx-login
  192. metadata:
  193. groupName: Endpoints
  194. groupDescription: ''
  195. subgroup: ''
  196. subgroupDescription: ''
  197. title: '[账户管理] 微信登录'
  198. description: 使用微信openid登录账户
  199. authenticated: true
  200. custom: []
  201. headers:
  202. Authorization: 'Bearer 70|nUrmG4YMAXfrsQpjgxCp9TYu4ifnPRLxvIUV9jgc4ad47df3'
  203. Content-Type: application/json
  204. urlParameters: []
  205. cleanUrlParameters: []
  206. queryParameters: []
  207. cleanQueryParameters: []
  208. bodyParameters:
  209. openid:
  210. name: openid
  211. description: 微信openid.
  212. required: true
  213. example: wx_123456789
  214. type: string
  215. enumValues: []
  216. exampleWasSpecified: true
  217. nullable: false
  218. custom: []
  219. cleanBodyParameters:
  220. openid: wx_123456789
  221. fileParameters: []
  222. responses:
  223. -
  224. status: 200
  225. content: |-
  226. {
  227. "code": 200,
  228. "message": "登录成功",
  229. "data": {
  230. "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...",
  231. "user": {
  232. "id": 1,
  233. "openid": "wx_123456789",
  234. "nickname": "微信昵称"
  235. }
  236. }
  237. }
  238. headers: []
  239. description: ''
  240. custom: []
  241. responseFields: []
  242. auth:
  243. - headers
  244. - Authorization
  245. - 'Bearer Bearer {YOUR_AUTH_KEY}'
  246. controller: null
  247. method: null
  248. route: null
  249. custom: []
  250. -
  251. httpMethods:
  252. - POST
  253. uri: api/account/logout
  254. metadata:
  255. groupName: Endpoints
  256. groupDescription: ''
  257. subgroup: ''
  258. subgroupDescription: ''
  259. title: '[账户管理] 用户退出'
  260. description: 退出当前账户登录状态
  261. authenticated: true
  262. custom: []
  263. headers:
  264. Authorization: 'Bearer 70|nUrmG4YMAXfrsQpjgxCp9TYu4ifnPRLxvIUV9jgc4ad47df3'
  265. urlParameters: []
  266. cleanUrlParameters: []
  267. queryParameters: []
  268. cleanQueryParameters: []
  269. bodyParameters: []
  270. cleanBodyParameters: []
  271. fileParameters: []
  272. responses:
  273. -
  274. status: 200
  275. content: |-
  276. {
  277. "code": 200,
  278. "message": "退出成功",
  279. "data": null
  280. }
  281. headers: []
  282. description: ''
  283. custom: []
  284. responseFields: []
  285. auth:
  286. - headers
  287. - Authorization
  288. - 'Bearer Bearer {YOUR_AUTH_KEY}'
  289. controller: null
  290. method: null
  291. route: null
  292. custom: []
  293. -
  294. httpMethods:
  295. - DELETE
  296. uri: api/account
  297. metadata:
  298. groupName: Endpoints
  299. groupDescription: ''
  300. subgroup: ''
  301. subgroupDescription: ''
  302. title: '[账户管理] 用户注销'
  303. description: 永久注销当前账户
  304. authenticated: true
  305. custom: []
  306. headers:
  307. Authorization: 'Bearer 70|nUrmG4YMAXfrsQpjgxCp9TYu4ifnPRLxvIUV9jgc4ad47df3'
  308. urlParameters: []
  309. cleanUrlParameters: []
  310. queryParameters: []
  311. cleanQueryParameters: []
  312. bodyParameters: []
  313. cleanBodyParameters: []
  314. fileParameters: []
  315. responses:
  316. -
  317. status: 200
  318. content: |-
  319. {
  320. "code": 200,
  321. "message": "注销成功",
  322. "data": null
  323. }
  324. headers: []
  325. description: ''
  326. custom: []
  327. responseFields: []
  328. auth:
  329. - headers
  330. - Authorization
  331. - 'Bearer Bearer {YOUR_AUTH_KEY}'
  332. controller: null
  333. method: null
  334. route: null
  335. custom: []
  336. -
  337. httpMethods:
  338. - POST
  339. uri: api/user/withdraw
  340. metadata:
  341. groupName: Endpoints
  342. groupDescription: ''
  343. subgroup: ''
  344. subgroupDescription: ''
  345. title: '[用户管理] 用户提现'
  346. description: 提现用户的余额
  347. authenticated: true
  348. custom: []
  349. headers:
  350. Authorization: 'Bearer 70|nUrmG4YMAXfrsQpjgxCp9TYu4ifnPRLxvIUV9jgc4ad47df3'
  351. Content-Type: application/json
  352. urlParameters: []
  353. cleanUrlParameters: []
  354. queryParameters: []
  355. cleanQueryParameters: []
  356. bodyParameters:
  357. amount:
  358. name: amount
  359. description: 提现金额.
  360. required: false
  361. example: '100.00'
  362. type: decimal
  363. enumValues: []
  364. exampleWasSpecified: true
  365. nullable: false
  366. custom: []
  367. cleanBodyParameters:
  368. amount: '100.00'
  369. fileParameters: []
  370. responses:
  371. -
  372. status: 200
  373. content: |-
  374. {
  375. "code": 200,
  376. "message": "提现成功",
  377. "data": null
  378. }
  379. headers: []
  380. description: ''
  381. custom: []
  382. responseFields: []
  383. auth:
  384. - headers
  385. - Authorization
  386. - 'Bearer Bearer {YOUR_AUTH_KEY}'
  387. controller: null
  388. method: null
  389. route: null
  390. custom: []
  391. -
  392. httpMethods:
  393. - POST
  394. uri: api/user/feedback
  395. metadata:
  396. groupName: Endpoints
  397. groupDescription: ''
  398. subgroup: ''
  399. subgroupDescription: ''
  400. title: '[用户管理] 用户反馈'
  401. description: 提交用户的反馈信息
  402. authenticated: true
  403. custom: []
  404. headers:
  405. Authorization: 'Bearer 70|nUrmG4YMAXfrsQpjgxCp9TYu4ifnPRLxvIUV9jgc4ad47df3'
  406. Content-Type: application/json
  407. urlParameters: []
  408. cleanUrlParameters: []
  409. queryParameters: []
  410. cleanQueryParameters: []
  411. bodyParameters:
  412. content:
  413. name: content
  414. description: 反馈内容.
  415. required: false
  416. example: 这是一个反馈信息
  417. type: string
  418. enumValues: []
  419. exampleWasSpecified: true
  420. nullable: false
  421. custom: []
  422. cleanBodyParameters:
  423. content: 这是一个反馈信息
  424. fileParameters: []
  425. responses:
  426. -
  427. status: 200
  428. content: |-
  429. {
  430. "code": 200,
  431. "message": "提交成功",
  432. "data": null
  433. }
  434. headers: []
  435. description: ''
  436. custom: []
  437. responseFields: []
  438. auth:
  439. - headers
  440. - Authorization
  441. - 'Bearer Bearer {YOUR_AUTH_KEY}'
  442. controller: null
  443. method: null
  444. route: null
  445. custom: []
  446. -
  447. httpMethods:
  448. - POST
  449. uri: api/user/apply-coach
  450. metadata:
  451. groupName: Endpoints
  452. groupDescription: ''
  453. subgroup: ''
  454. subgroupDescription: ''
  455. title: '[用户管理] 申请成为技师'
  456. description: 申请成为技师
  457. authenticated: true
  458. custom: []
  459. headers:
  460. Authorization: 'Bearer 70|nUrmG4YMAXfrsQpjgxCp9TYu4ifnPRLxvIUV9jgc4ad47df3'
  461. urlParameters: []
  462. cleanUrlParameters: []
  463. queryParameters: []
  464. cleanQueryParameters: []
  465. bodyParameters: []
  466. cleanBodyParameters: []
  467. fileParameters: []
  468. responses:
  469. -
  470. status: 200
  471. content: |-
  472. {
  473. "code": 200,
  474. "message": "申请成功",
  475. "data": null
  476. }
  477. headers: []
  478. description: ''
  479. custom: []
  480. responseFields: []
  481. auth:
  482. - headers
  483. - Authorization
  484. - 'Bearer Bearer {YOUR_AUTH_KEY}'
  485. controller: null
  486. method: null
  487. route: null
  488. custom: []