面包店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

swagger.yaml 24 KiB

10 months ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084
  1. basePath: /
  2. definitions:
  3. hdl.PrivilegeOpenCardOrdQueryPageResp:
  4. properties:
  5. btn_bg_color_1:
  6. type: string
  7. btn_bg_color_2:
  8. type: string
  9. btn_text:
  10. type: string
  11. btn_text_color:
  12. type: string
  13. header_img:
  14. type: string
  15. logistic_company:
  16. items:
  17. $ref: '#/definitions/model.LogisticCompany'
  18. type: array
  19. type: object
  20. hdl.PrivilegeOpenCardOrdQueryReq:
  21. properties:
  22. com:
  23. description: 快递公司名称
  24. type: string
  25. num:
  26. description: 快递单号
  27. type: string
  28. required:
  29. - com
  30. - num
  31. type: object
  32. hdl.logisticQueryReq:
  33. properties:
  34. com:
  35. description: 快递公司名称
  36. type: string
  37. num:
  38. description: 快递单号
  39. type: string
  40. required:
  41. - com
  42. - num
  43. type: object
  44. hdl.privilegeOpenCardCheckReq:
  45. properties:
  46. key:
  47. description: 卡密
  48. type: string
  49. num:
  50. description: 卡号
  51. type: string
  52. required:
  53. - key
  54. - num
  55. type: object
  56. hdl.privilegeOpenCardPayPageResp:
  57. properties:
  58. amount:
  59. description: 付费金额
  60. type: string
  61. card_type:
  62. description: 卡的类型:"1"实体卡 "2"虚拟卡
  63. type: string
  64. date_type:
  65. description: 日期类型:month:月 season:季 year:年 forever:永久
  66. type: string
  67. page_style:
  68. $ref: '#/definitions/hdl.privilegeOpenCardPayStyle'
  69. description: 页面样式
  70. type: object
  71. hdl.privilegeOpenCardPayStyle:
  72. properties:
  73. exclusive_privilege:
  74. description: 专属特权
  75. items:
  76. properties:
  77. brand_id:
  78. type: string
  79. brand_img:
  80. type: string
  81. brand_img_url:
  82. type: string
  83. brand_name:
  84. type: string
  85. is_show:
  86. type: string
  87. sub_title:
  88. type: string
  89. type: object
  90. type: array
  91. payment_btn:
  92. description: 底部支付按钮
  93. items:
  94. properties:
  95. bg_img:
  96. type: string
  97. bg_img_url:
  98. type: string
  99. func:
  100. type: string
  101. name:
  102. type: string
  103. text:
  104. type: string
  105. text_color:
  106. type: string
  107. type:
  108. type: string
  109. type: object
  110. type: array
  111. payment_choose_icon:
  112. description: 支付方式选中、未选中图标
  113. items:
  114. properties:
  115. icon:
  116. type: string
  117. icon_url:
  118. type: string
  119. type:
  120. type: string
  121. type: object
  122. type: array
  123. payment_style:
  124. description: 支付方式
  125. items:
  126. properties:
  127. icon:
  128. type: string
  129. icon_url:
  130. type: string
  131. type:
  132. type: string
  133. type: object
  134. type: array
  135. style:
  136. description: 头部样式
  137. properties:
  138. header_bg_img:
  139. type: string
  140. header_bg_img_url:
  141. type: string
  142. special_deals_img:
  143. type: string
  144. special_deals_img_url:
  145. type: string
  146. special_deals_text:
  147. type: string
  148. type: object
  149. type: object
  150. hdl.resultItem:
  151. properties:
  152. id:
  153. example: "440100000000"
  154. type: string
  155. name:
  156. example: city
  157. type: string
  158. type: object
  159. hdl.updateAddressReq:
  160. properties:
  161. city_id:
  162. type: string
  163. county_id:
  164. type: string
  165. detail:
  166. type: string
  167. id:
  168. type: integer
  169. phone:
  170. type: string
  171. post_code:
  172. type: string
  173. province_id:
  174. type: string
  175. receiver:
  176. type: string
  177. tag:
  178. type: string
  179. required:
  180. - city_id
  181. - county_id
  182. - detail
  183. - phone
  184. - province_id
  185. - receiver
  186. type: object
  187. md.Apple:
  188. properties:
  189. token:
  190. type: string
  191. type: object
  192. md.FastLoginRequestBody:
  193. properties:
  194. apple:
  195. $ref: '#/definitions/md.Apple'
  196. captcha:
  197. type: string
  198. is_not_create:
  199. type: string
  200. mobile:
  201. type: string
  202. parent_uid:
  203. type: string
  204. qq:
  205. $ref: '#/definitions/md.QQLogin'
  206. return_user_msg:
  207. type: string
  208. taobao:
  209. $ref: '#/definitions/md.TaobaoLogin'
  210. wechat:
  211. $ref: '#/definitions/md.WeChat'
  212. wechat_mini:
  213. $ref: '#/definitions/md.WeChatMiniApp'
  214. zone:
  215. type: string
  216. type: object
  217. md.IndexRecommendList:
  218. properties:
  219. good:
  220. items:
  221. $ref: '#/definitions/md.RecommendGood'
  222. type: array
  223. provider:
  224. description: BarTitleList []BarTitle `json:"bar_title_list"`
  225. type: string
  226. type: object
  227. md.LoginResponse:
  228. properties:
  229. bind_phone_enable:
  230. type: string
  231. is_pid:
  232. type: string
  233. perms:
  234. items:
  235. type: string
  236. type: array
  237. phone:
  238. type: string
  239. register_invite_code_enable:
  240. type: string
  241. register_popup_condition:
  242. $ref: '#/definitions/md.RegisterPopupCondition'
  243. description: 弹出类型设置
  244. token:
  245. type: string
  246. user_id:
  247. type: string
  248. username:
  249. type: string
  250. wechat_applet_open_id:
  251. type: string
  252. wechat_union_id:
  253. type: string
  254. type: object
  255. md.Marquee:
  256. properties:
  257. avatar_url:
  258. type: string
  259. content:
  260. type: string
  261. name:
  262. type: string
  263. type: object
  264. md.ProductDetailResponse:
  265. properties:
  266. commission:
  267. type: string
  268. coupon_price:
  269. type: string
  270. good_id:
  271. type: string
  272. mod_list:
  273. items:
  274. additionalProperties: true
  275. type: object
  276. type: array
  277. provider:
  278. type: string
  279. provider_name:
  280. type: string
  281. shop_avatar:
  282. type: string
  283. type: object
  284. md.QQLogin:
  285. properties:
  286. access_token:
  287. type: string
  288. avatar_url:
  289. type: string
  290. city:
  291. type: string
  292. expires_in:
  293. type: string
  294. gender:
  295. type: string
  296. nickname:
  297. type: string
  298. open_id:
  299. type: string
  300. pay_token:
  301. type: string
  302. pf:
  303. type: string
  304. pf_key:
  305. type: string
  306. province:
  307. type: string
  308. ret:
  309. type: string
  310. unionid:
  311. type: string
  312. type: object
  313. md.RecommendGood:
  314. properties:
  315. commission:
  316. type: string
  317. coupon:
  318. type: string
  319. current_price:
  320. type: string
  321. detail_data:
  322. $ref: '#/definitions/md.ProductDetailResponse'
  323. good_id:
  324. type: string
  325. good_image:
  326. type: string
  327. good_title:
  328. type: string
  329. inorder_count:
  330. type: string
  331. is_collect:
  332. type: integer
  333. is_coupons:
  334. type: integer
  335. is_share:
  336. type: integer
  337. market_price:
  338. type: string
  339. marquee_list:
  340. items:
  341. $ref: '#/definitions/md.Marquee'
  342. type: array
  343. provider:
  344. type: string
  345. provider_name:
  346. type: string
  347. pvd:
  348. type: string
  349. shop_avatar:
  350. type: string
  351. shop_name:
  352. type: string
  353. video:
  354. type: string
  355. type: object
  356. md.RegisterPopupCondition:
  357. properties:
  358. invite_code:
  359. description: 邀请码设置:弹出类型是激活码的时候起作用
  360. properties:
  361. popup:
  362. description: 是否弹出 “0”否 “1”是
  363. type: string
  364. should_input:
  365. description: 是否必填 “0”否 “1”是
  366. type: string
  367. type: object
  368. popup_type:
  369. description: 弹出类型:“0”关闭 ”1”激活码 “2”邀请码
  370. type: string
  371. should_input:
  372. description: 是否必填 “0”否 “1”是
  373. type: string
  374. type: object
  375. md.TaobaoLogin:
  376. properties:
  377. access_token:
  378. type: string
  379. auth_code:
  380. type: string
  381. avatar_url:
  382. type: string
  383. nick_name:
  384. type: string
  385. open_id:
  386. type: string
  387. sid:
  388. type: string
  389. type: object
  390. md.WeChat:
  391. properties:
  392. access_token:
  393. type: string
  394. avatar_url:
  395. type: string
  396. city:
  397. type: string
  398. expires_in:
  399. type: string
  400. gender:
  401. type: string
  402. nickname:
  403. type: string
  404. open_id:
  405. type: string
  406. pay_token:
  407. type: string
  408. pf:
  409. type: string
  410. pf_key:
  411. type: string
  412. province:
  413. type: string
  414. ret:
  415. type: string
  416. unionid:
  417. type: string
  418. type: object
  419. md.WeChatMiniApp:
  420. properties:
  421. avatar:
  422. type: string
  423. code:
  424. type: string
  425. nickname:
  426. type: string
  427. open_id:
  428. type: string
  429. unionid:
  430. type: string
  431. type: object
  432. model.LogisticCompany:
  433. properties:
  434. code:
  435. type: string
  436. name:
  437. type: string
  438. type: object
  439. model.PrivilegeOpenCardOrd:
  440. properties:
  441. address:
  442. type: string
  443. after_sale_id:
  444. type: integer
  445. card_key:
  446. type: string
  447. card_num:
  448. type: string
  449. card_type:
  450. type: integer
  451. cost_price:
  452. type: string
  453. create_time:
  454. type: string
  455. date_type:
  456. type: integer
  457. given_data:
  458. type: string
  459. logistic_company:
  460. type: string
  461. logistic_num:
  462. type: string
  463. ord_id:
  464. type: integer
  465. pay_channel:
  466. type: integer
  467. pay_time:
  468. type: string
  469. phone:
  470. type: string
  471. receiver:
  472. type: string
  473. settle_at:
  474. type: integer
  475. state:
  476. type: integer
  477. uid:
  478. type: integer
  479. update_time:
  480. type: string
  481. type: object
  482. model.UserAddress:
  483. properties:
  484. city_id:
  485. type: string
  486. city_name:
  487. type: string
  488. county_id:
  489. type: string
  490. county_name:
  491. type: string
  492. detail:
  493. type: string
  494. id:
  495. type: integer
  496. phone:
  497. type: string
  498. post_code:
  499. type: string
  500. province_id:
  501. type: string
  502. province_name:
  503. type: string
  504. receiver:
  505. type: string
  506. tag:
  507. type: string
  508. uid:
  509. type: integer
  510. type: object
  511. host: localhost:5000
  512. info:
  513. contact:
  514. name: sherlockwhite
  515. description: 移动端接口
  516. termsOfService: 智莺生活后端组
  517. title: 智莺生活移动端接口
  518. version: "1.0"
  519. paths:
  520. /api/v1/acq/fix:
  521. get:
  522. consumes:
  523. - application/json
  524. description: 拉新活动--fix
  525. produces:
  526. - application/json
  527. responses:
  528. "200":
  529. description: ok
  530. schema:
  531. type: string
  532. summary: 拉新活动--fix
  533. tags:
  534. - 拉新活动
  535. /api/v1/acquisition/home:
  536. post:
  537. consumes:
  538. - application/json
  539. description: 本期榜单/上期榜单/我的邀请人数和奖励/任务列表
  540. produces:
  541. - application/json
  542. responses:
  543. "200":
  544. description: ok
  545. schema:
  546. type: string
  547. summary: 拉新--首页数据
  548. tags:
  549. - 拉新活动
  550. /api/v1/acquisition/qrcode:
  551. get:
  552. consumes:
  553. - application/json
  554. description: 二维码
  555. produces:
  556. - application/json
  557. responses:
  558. "200":
  559. description: ok
  560. schema:
  561. type: string
  562. summary: 拉新--邀请二维码
  563. tags:
  564. - 拉新活动
  565. /api/v1/acquisition/reward/detail:
  566. post:
  567. consumes:
  568. - application/json
  569. description: 拉新活动--我的奖励明细
  570. parameters:
  571. - description: 1为以发放,2为待发放,3为失效
  572. in: body
  573. name: state
  574. required: true
  575. schema:
  576. type: string
  577. produces:
  578. - application/json
  579. responses:
  580. "200":
  581. description: ok
  582. schema:
  583. type: string
  584. summary: 拉新活动--我的奖励明细
  585. tags:
  586. - 拉新活动
  587. /api/v1/acquisition/reward_receive:
  588. post:
  589. consumes:
  590. - application/json
  591. description: 拉新活动--领取奖励
  592. parameters:
  593. - description: 任务ID
  594. in: body
  595. name: job_id
  596. required: true
  597. schema:
  598. type: string
  599. produces:
  600. - application/json
  601. responses:
  602. "200":
  603. description: ok
  604. schema:
  605. type: string
  606. summary: 拉新活动--领取奖励
  607. tags:
  608. - 拉新活动
  609. /api/v1/credit/card/config:
  610. get:
  611. consumes:
  612. - application/json
  613. description: 获取信用卡配置
  614. produces:
  615. - application/json
  616. responses:
  617. "200":
  618. description: ok
  619. schema:
  620. type: string
  621. summary: 获取信用卡配置
  622. tags:
  623. - 信用卡
  624. /api/v1/duomai/mall/detail:
  625. post:
  626. consumes:
  627. - application/json
  628. description: 多麦商城--商城详情
  629. parameters:
  630. - description: 商城id
  631. in: body
  632. name: brand_id
  633. required: true
  634. schema:
  635. type: string
  636. produces:
  637. - application/json
  638. responses:
  639. "200":
  640. description: ok
  641. schema:
  642. type: string
  643. summary: 多麦商城--商城详情
  644. tags:
  645. - 多麦商城
  646. /api/v1/duomai/mall/home:
  647. get:
  648. consumes:
  649. - application/json
  650. description: 多麦商城--首页数据
  651. produces:
  652. - application/json
  653. responses:
  654. "200":
  655. description: ok
  656. schema:
  657. type: string
  658. summary: 多麦商城--首页数据
  659. tags:
  660. - 多麦商城
  661. /api/v1/duomai/mall/search:
  662. post:
  663. consumes:
  664. - application/json
  665. description: 多麦商城--搜索
  666. parameters:
  667. - description: 搜索关键词
  668. in: body
  669. name: key
  670. required: true
  671. schema:
  672. type: string
  673. produces:
  674. - application/json
  675. responses:
  676. "200":
  677. description: ok
  678. schema:
  679. type: string
  680. summary: 多麦商城--搜索
  681. tags:
  682. - 多麦商城
  683. /api/v1/duomai/mall/update:
  684. get:
  685. consumes:
  686. - application/json
  687. description: 多麦商城--更新数据
  688. produces:
  689. - application/json
  690. responses:
  691. "200":
  692. description: ok
  693. schema:
  694. type: string
  695. summary: 多麦商城--更新数据
  696. tags:
  697. - 多麦商城
  698. /api/v1/logistic/query:
  699. post:
  700. consumes:
  701. - application/json
  702. parameters:
  703. - description: logisticQueryReq
  704. in: body
  705. name: req
  706. required: true
  707. schema:
  708. $ref: '#/definitions/hdl.logisticQueryReq'
  709. produces:
  710. - application/json
  711. responses:
  712. "200":
  713. description: ok
  714. schema:
  715. type: string
  716. "400":
  717. description: '{"code":400000,"data":[],"msg":"该快递公司不支持查询"}'
  718. schema:
  719. type: string
  720. summary: 快递100物流查询
  721. tags:
  722. - 物流
  723. /api/v1/mod/pub.flutter.duomai.mall.detail.page:
  724. get:
  725. consumes:
  726. - application/json
  727. description: 多麦商城详情页样式
  728. produces:
  729. - application/json
  730. responses:
  731. "200":
  732. description: ok
  733. schema:
  734. type: string
  735. summary: 多麦商城详情页样式
  736. tags:
  737. - 多麦商城
  738. /api/v1/mod/pub.flutter.duomai.mall.home.page:
  739. get:
  740. consumes:
  741. - application/json
  742. description: 多麦商城首页样式
  743. produces:
  744. - application/json
  745. responses:
  746. "200":
  747. description: ok
  748. schema:
  749. type: string
  750. summary: 多麦商城首页样式
  751. tags:
  752. - 多麦商城
  753. /api/v1/mod/pub.flutter.duomai.mall.search.page:
  754. get:
  755. consumes:
  756. - application/json
  757. description: 多麦商城搜索页样式
  758. produces:
  759. - application/json
  760. responses:
  761. "200":
  762. description: ok
  763. schema:
  764. type: string
  765. summary: 多麦商城搜索页样式
  766. tags:
  767. - 多麦商城
  768. /api/v1/privilege/card/activation:
  769. post:
  770. consumes:
  771. - application/json
  772. description: 权益卡激活
  773. parameters:
  774. - description: json
  775. in: body
  776. name: body
  777. required: true
  778. schema:
  779. $ref: '#/definitions/hdl.privilegeOpenCardCheckReq'
  780. produces:
  781. - application/json
  782. responses:
  783. "200":
  784. description: ok
  785. schema:
  786. type: string
  787. summary: 权益卡激活
  788. tags:
  789. - 权益卡
  790. /api/v1/privilege/open_card/check:
  791. get:
  792. consumes:
  793. - application/json
  794. parameters:
  795. - description: json
  796. in: body
  797. name: body
  798. required: true
  799. schema:
  800. $ref: '#/definitions/hdl.privilegeOpenCardCheckReq'
  801. produces:
  802. - application/json
  803. responses:
  804. "200":
  805. description: 0:不存在 1:已经被使用 2:可用
  806. schema:
  807. type: string
  808. summary: 权益卡卡号卡密检测
  809. tags:
  810. - 权益卡
  811. /api/v1/privilege/open_card/order_query:
  812. get:
  813. produces:
  814. - application/json
  815. responses:
  816. "200":
  817. description: ok
  818. schema:
  819. $ref: '#/definitions/hdl.PrivilegeOpenCardOrdQueryPageResp'
  820. "400":
  821. description: '{"code":400000,"data":[],"msg":"验证码错误"}'
  822. schema:
  823. type: string
  824. summary: 权益卡开卡订单查询页面
  825. tags:
  826. - 权益卡
  827. post:
  828. parameters:
  829. - description: json
  830. in: body
  831. name: body
  832. required: true
  833. schema:
  834. $ref: '#/definitions/hdl.PrivilegeOpenCardOrdQueryReq'
  835. produces:
  836. - application/json
  837. responses:
  838. "200":
  839. description: ok
  840. schema:
  841. $ref: '#/definitions/model.PrivilegeOpenCardOrd'
  842. "400":
  843. description: '{"code":400000,"data":[],"msg":"验证码错误"}'
  844. schema:
  845. type: string
  846. summary: 权益卡开卡订单查询
  847. tags:
  848. - 权益卡
  849. /api/v1/privilege/open_card/order_suc:
  850. get:
  851. produces:
  852. - application/json
  853. responses:
  854. "200":
  855. description: ok
  856. schema:
  857. $ref: '#/definitions/model.PrivilegeOpenCardOrd'
  858. summary: 订单支付成功页面
  859. tags:
  860. - 权益卡
  861. /api/v1/privilege/open_card/pay_page:
  862. get:
  863. produces:
  864. - application/json
  865. responses:
  866. "200":
  867. description: ok
  868. schema:
  869. $ref: '#/definitions/hdl.privilegeOpenCardPayPageResp'
  870. "400":
  871. description: '{"code":400000,"data":[],"msg":"权益卡配置缺失"}'
  872. schema:
  873. type: string
  874. summary: 权益卡开卡支付页面
  875. tags:
  876. - 权益卡
  877. /api/v1/shake_ticket/:goods_id/:type:
  878. get:
  879. consumes:
  880. - application/json
  881. description: 收藏/领券买/分享赚
  882. parameters:
  883. - description: 商品id
  884. in: path
  885. name: goods_id
  886. required: true
  887. type: string
  888. - description: 类型(0取消收藏,1收藏,2点击 领券买,3点击分享赚)
  889. in: path
  890. name: type
  891. required: true
  892. type: string
  893. produces:
  894. - application/json
  895. responses:
  896. "200":
  897. description: ok
  898. schema:
  899. type: string
  900. summary: 抖券商品收藏/领券买/分享赚
  901. tags:
  902. - 抖券
  903. /api/v1/shake_ticket_list:
  904. get:
  905. consumes:
  906. - application/json
  907. description: 定向计划/高佣专场/精选低价包邮/偏远地区包邮/抖货商品/各大榜单商品/今日值得买
  908. parameters:
  909. - description: 页码
  910. in: query
  911. name: page
  912. required: true
  913. type: string
  914. - description: 页数
  915. in: query
  916. name: page_size
  917. required: true
  918. type: string
  919. - description: 分类id(3定向计划/4高佣专场/5精选低价包邮/6偏远地区包邮/7抖货商品/8各大榜单商品/9今日值得买)
  920. in: query
  921. name: category_id
  922. required: true
  923. type: string
  924. - description: 渠道
  925. in: query
  926. name: pvd
  927. required: true
  928. type: string
  929. produces:
  930. - application/json
  931. responses:
  932. "200":
  933. description: OK
  934. schema:
  935. $ref: '#/definitions/md.IndexRecommendList'
  936. summary: 抖券商品推荐列表
  937. tags:
  938. - 抖券
  939. /api/v1/sign/fast/in:
  940. post:
  941. parameters:
  942. - description: json
  943. in: body
  944. name: body
  945. required: true
  946. schema:
  947. $ref: '#/definitions/md.FastLoginRequestBody'
  948. produces:
  949. - application/json
  950. responses:
  951. "200":
  952. description: ok
  953. schema:
  954. $ref: '#/definitions/md.LoginResponse'
  955. "400":
  956. description: '{"code":400001,"data":[],"msg":"请求参数错误"}'
  957. schema:
  958. type: string
  959. summary: 用户手机快速登录
  960. tags:
  961. - 登录、注册
  962. /api/v1/sub_region_list:
  963. get:
  964. parameters:
  965. - description: 上级地区类型:root(查询省级列表)、province(省级ID下的城市)、city(市级id下的区域)
  966. in: query
  967. name: parent
  968. required: true
  969. type: string
  970. - description: 上级地区id
  971. in: query
  972. name: id
  973. type: string
  974. produces:
  975. - application/json
  976. responses:
  977. "200":
  978. description: ok
  979. schema:
  980. items:
  981. $ref: '#/definitions/hdl.resultItem'
  982. type: array
  983. "400":
  984. description: '{"code":400001,"data":[],"msg":"请求参数错误"}'
  985. schema:
  986. type: string
  987. summary: 获取区域id下的区域
  988. tags:
  989. - 地址
  990. /api/v1/user/address/:id:
  991. get:
  992. parameters:
  993. - description: 地址id
  994. in: path
  995. name: id
  996. required: true
  997. type: string
  998. produces:
  999. - application/json
  1000. responses:
  1001. "200":
  1002. description: ok
  1003. schema:
  1004. $ref: '#/definitions/model.UserAddress'
  1005. "400":
  1006. description: '{"code":400000,"data":[],"msg":"地址不存在"}'
  1007. schema:
  1008. type: string
  1009. summary: 用户地址详情
  1010. tags:
  1011. - 地址
  1012. /api/v1/user/address/delete/:id:
  1013. post:
  1014. consumes:
  1015. - application/json
  1016. parameters:
  1017. - description: ID
  1018. in: path
  1019. name: id
  1020. required: true
  1021. type: string
  1022. produces:
  1023. - application/json
  1024. responses:
  1025. "200":
  1026. description: ok
  1027. schema:
  1028. type: string
  1029. "400":
  1030. description: '{"code":400000,"data":[],"msg":"地址不存在"}'
  1031. schema:
  1032. type: string
  1033. summary: 用户地址删除
  1034. tags:
  1035. - 地址
  1036. /api/v1/user/address/update:
  1037. post:
  1038. consumes:
  1039. - application/json
  1040. parameters:
  1041. - description: json参数,Id不传为新增
  1042. in: body
  1043. name: '""'
  1044. required: true
  1045. schema:
  1046. $ref: '#/definitions/hdl.updateAddressReq'
  1047. produces:
  1048. - application/json
  1049. responses:
  1050. "200":
  1051. description: ok
  1052. schema:
  1053. type: string
  1054. "400":
  1055. description: '{"code":400000,"data":[],"msg":"地址不存在"}'
  1056. schema:
  1057. type: string
  1058. summary: 用户地址新增、编辑
  1059. tags:
  1060. - 地址
  1061. /api/v1/user/addresses:
  1062. get:
  1063. produces:
  1064. - application/json
  1065. responses:
  1066. "200":
  1067. description: ok
  1068. schema:
  1069. items:
  1070. $ref: '#/definitions/model.UserAddress'
  1071. type: array
  1072. "500":
  1073. description: '{"code":500000,"data":[],"msg":"数据库操作失败"}'
  1074. schema:
  1075. type: string
  1076. summary: 用户地址列表
  1077. tags:
  1078. - 地址
  1079. securityDefinitions:
  1080. MasterID:
  1081. in: header
  1082. name: MasterID
  1083. type: apiKey
  1084. swagger: "2.0"