广告涉及的mq都放这里
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

swagger.json 51 KiB

2 달 전
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "description": "移动端接口",
  5. "title": "智莺生活移动端接口",
  6. "termsOfService": "智莺生活后端组",
  7. "contact": {
  8. "name": "sherlockwhite"
  9. },
  10. "version": "1.0"
  11. },
  12. "host": "localhost:5000",
  13. "basePath": "/",
  14. "paths": {
  15. "/api/v1/acq/fix": {
  16. "get": {
  17. "description": "拉新活动--fix",
  18. "consumes": [
  19. "application/json"
  20. ],
  21. "produces": [
  22. "application/json"
  23. ],
  24. "tags": [
  25. "拉新活动"
  26. ],
  27. "summary": "拉新活动--fix",
  28. "responses": {
  29. "200": {
  30. "description": "ok",
  31. "schema": {
  32. "type": "string"
  33. }
  34. }
  35. }
  36. }
  37. },
  38. "/api/v1/acquisition/home": {
  39. "post": {
  40. "description": "本期榜单/上期榜单/我的邀请人数和奖励/任务列表",
  41. "consumes": [
  42. "application/json"
  43. ],
  44. "produces": [
  45. "application/json"
  46. ],
  47. "tags": [
  48. "拉新活动"
  49. ],
  50. "summary": "拉新--首页数据",
  51. "responses": {
  52. "200": {
  53. "description": "ok",
  54. "schema": {
  55. "type": "string"
  56. }
  57. }
  58. }
  59. }
  60. },
  61. "/api/v1/acquisition/qrcode": {
  62. "get": {
  63. "description": "二维码",
  64. "consumes": [
  65. "application/json"
  66. ],
  67. "produces": [
  68. "application/json"
  69. ],
  70. "tags": [
  71. "拉新活动"
  72. ],
  73. "summary": "拉新--邀请二维码",
  74. "responses": {
  75. "200": {
  76. "description": "ok",
  77. "schema": {
  78. "type": "string"
  79. }
  80. }
  81. }
  82. }
  83. },
  84. "/api/v1/acquisition/reward/detail": {
  85. "post": {
  86. "description": "拉新活动--我的奖励明细",
  87. "consumes": [
  88. "application/json"
  89. ],
  90. "produces": [
  91. "application/json"
  92. ],
  93. "tags": [
  94. "拉新活动"
  95. ],
  96. "summary": "拉新活动--我的奖励明细",
  97. "parameters": [
  98. {
  99. "description": "1为以发放,2为待发放,3为失效",
  100. "name": "state",
  101. "in": "body",
  102. "required": true,
  103. "schema": {
  104. "type": "string"
  105. }
  106. }
  107. ],
  108. "responses": {
  109. "200": {
  110. "description": "ok",
  111. "schema": {
  112. "type": "string"
  113. }
  114. }
  115. }
  116. }
  117. },
  118. "/api/v1/acquisition/reward_receive": {
  119. "post": {
  120. "description": "拉新活动--领取奖励",
  121. "consumes": [
  122. "application/json"
  123. ],
  124. "produces": [
  125. "application/json"
  126. ],
  127. "tags": [
  128. "拉新活动"
  129. ],
  130. "summary": "拉新活动--领取奖励",
  131. "parameters": [
  132. {
  133. "description": "任务ID",
  134. "name": "job_id",
  135. "in": "body",
  136. "required": true,
  137. "schema": {
  138. "type": "string"
  139. }
  140. }
  141. ],
  142. "responses": {
  143. "200": {
  144. "description": "ok",
  145. "schema": {
  146. "type": "string"
  147. }
  148. }
  149. }
  150. }
  151. },
  152. "/api/v1/credit/card/config": {
  153. "get": {
  154. "description": "获取信用卡配置",
  155. "consumes": [
  156. "application/json"
  157. ],
  158. "produces": [
  159. "application/json"
  160. ],
  161. "tags": [
  162. "信用卡"
  163. ],
  164. "summary": "获取信用卡配置",
  165. "responses": {
  166. "200": {
  167. "description": "ok",
  168. "schema": {
  169. "type": "string"
  170. }
  171. }
  172. }
  173. }
  174. },
  175. "/api/v1/duomai/mall/detail": {
  176. "post": {
  177. "description": "多麦商城--商城详情",
  178. "consumes": [
  179. "application/json"
  180. ],
  181. "produces": [
  182. "application/json"
  183. ],
  184. "tags": [
  185. "多麦商城"
  186. ],
  187. "summary": "多麦商城--商城详情",
  188. "parameters": [
  189. {
  190. "description": "商城id",
  191. "name": "brand_id",
  192. "in": "body",
  193. "required": true,
  194. "schema": {
  195. "type": "string"
  196. }
  197. }
  198. ],
  199. "responses": {
  200. "200": {
  201. "description": "ok",
  202. "schema": {
  203. "type": "string"
  204. }
  205. }
  206. }
  207. }
  208. },
  209. "/api/v1/duomai/mall/home": {
  210. "get": {
  211. "description": "多麦商城--首页数据",
  212. "consumes": [
  213. "application/json"
  214. ],
  215. "produces": [
  216. "application/json"
  217. ],
  218. "tags": [
  219. "多麦商城"
  220. ],
  221. "summary": "多麦商城--首页数据",
  222. "responses": {
  223. "200": {
  224. "description": "ok",
  225. "schema": {
  226. "type": "string"
  227. }
  228. }
  229. }
  230. }
  231. },
  232. "/api/v1/duomai/mall/search": {
  233. "post": {
  234. "description": "多麦商城--搜索",
  235. "consumes": [
  236. "application/json"
  237. ],
  238. "produces": [
  239. "application/json"
  240. ],
  241. "tags": [
  242. "多麦商城"
  243. ],
  244. "summary": "多麦商城--搜索",
  245. "parameters": [
  246. {
  247. "description": "搜索关键词",
  248. "name": "key",
  249. "in": "body",
  250. "required": true,
  251. "schema": {
  252. "type": "string"
  253. }
  254. }
  255. ],
  256. "responses": {
  257. "200": {
  258. "description": "ok",
  259. "schema": {
  260. "type": "string"
  261. }
  262. }
  263. }
  264. }
  265. },
  266. "/api/v1/duomai/mall/update": {
  267. "get": {
  268. "description": "多麦商城--更新数据",
  269. "consumes": [
  270. "application/json"
  271. ],
  272. "produces": [
  273. "application/json"
  274. ],
  275. "tags": [
  276. "多麦商城"
  277. ],
  278. "summary": "多麦商城--更新数据",
  279. "responses": {
  280. "200": {
  281. "description": "ok",
  282. "schema": {
  283. "type": "string"
  284. }
  285. }
  286. }
  287. }
  288. },
  289. "/api/v1/logistic/query": {
  290. "post": {
  291. "consumes": [
  292. "application/json"
  293. ],
  294. "produces": [
  295. "application/json"
  296. ],
  297. "tags": [
  298. "物流"
  299. ],
  300. "summary": "快递100物流查询",
  301. "parameters": [
  302. {
  303. "description": "logisticQueryReq",
  304. "name": "req",
  305. "in": "body",
  306. "required": true,
  307. "schema": {
  308. "$ref": "#/definitions/hdl.logisticQueryReq"
  309. }
  310. }
  311. ],
  312. "responses": {
  313. "200": {
  314. "description": "ok",
  315. "schema": {
  316. "type": "string"
  317. }
  318. },
  319. "400": {
  320. "description": "{\"code\":400000,\"data\":[],\"msg\":\"该快递公司不支持查询\"}",
  321. "schema": {
  322. "type": "string"
  323. }
  324. }
  325. }
  326. }
  327. },
  328. "/api/v1/mod/pub.flutter.duomai.mall.detail.page": {
  329. "get": {
  330. "description": "多麦商城详情页样式",
  331. "consumes": [
  332. "application/json"
  333. ],
  334. "produces": [
  335. "application/json"
  336. ],
  337. "tags": [
  338. "多麦商城"
  339. ],
  340. "summary": "多麦商城详情页样式",
  341. "responses": {
  342. "200": {
  343. "description": "ok",
  344. "schema": {
  345. "type": "string"
  346. }
  347. }
  348. }
  349. }
  350. },
  351. "/api/v1/mod/pub.flutter.duomai.mall.home.page": {
  352. "get": {
  353. "description": "多麦商城首页样式",
  354. "consumes": [
  355. "application/json"
  356. ],
  357. "produces": [
  358. "application/json"
  359. ],
  360. "tags": [
  361. "多麦商城"
  362. ],
  363. "summary": "多麦商城首页样式",
  364. "responses": {
  365. "200": {
  366. "description": "ok",
  367. "schema": {
  368. "type": "string"
  369. }
  370. }
  371. }
  372. }
  373. },
  374. "/api/v1/mod/pub.flutter.duomai.mall.search.page": {
  375. "get": {
  376. "description": "多麦商城搜索页样式",
  377. "consumes": [
  378. "application/json"
  379. ],
  380. "produces": [
  381. "application/json"
  382. ],
  383. "tags": [
  384. "多麦商城"
  385. ],
  386. "summary": "多麦商城搜索页样式",
  387. "responses": {
  388. "200": {
  389. "description": "ok",
  390. "schema": {
  391. "type": "string"
  392. }
  393. }
  394. }
  395. }
  396. },
  397. "/api/v1/privilege/card/activation": {
  398. "post": {
  399. "description": "权益卡激活",
  400. "consumes": [
  401. "application/json"
  402. ],
  403. "produces": [
  404. "application/json"
  405. ],
  406. "tags": [
  407. "权益卡"
  408. ],
  409. "summary": "权益卡激活",
  410. "parameters": [
  411. {
  412. "description": "json",
  413. "name": "body",
  414. "in": "body",
  415. "required": true,
  416. "schema": {
  417. "$ref": "#/definitions/hdl.privilegeOpenCardCheckReq"
  418. }
  419. }
  420. ],
  421. "responses": {
  422. "200": {
  423. "description": "ok",
  424. "schema": {
  425. "type": "string"
  426. }
  427. }
  428. }
  429. }
  430. },
  431. "/api/v1/privilege/open_card/check": {
  432. "get": {
  433. "consumes": [
  434. "application/json"
  435. ],
  436. "produces": [
  437. "application/json"
  438. ],
  439. "tags": [
  440. "权益卡"
  441. ],
  442. "summary": "权益卡卡号卡密检测",
  443. "parameters": [
  444. {
  445. "description": "json",
  446. "name": "body",
  447. "in": "body",
  448. "required": true,
  449. "schema": {
  450. "$ref": "#/definitions/hdl.privilegeOpenCardCheckReq"
  451. }
  452. }
  453. ],
  454. "responses": {
  455. "200": {
  456. "description": "0:不存在 1:已经被使用 2:可用",
  457. "schema": {
  458. "type": "string"
  459. }
  460. }
  461. }
  462. }
  463. },
  464. "/api/v1/privilege/open_card/order_query": {
  465. "get": {
  466. "produces": [
  467. "application/json"
  468. ],
  469. "tags": [
  470. "权益卡"
  471. ],
  472. "summary": "权益卡开卡订单查询页面",
  473. "responses": {
  474. "200": {
  475. "description": "ok",
  476. "schema": {
  477. "$ref": "#/definitions/hdl.PrivilegeOpenCardOrdQueryPageResp"
  478. }
  479. },
  480. "400": {
  481. "description": "{\"code\":400000,\"data\":[],\"msg\":\"验证码错误\"}",
  482. "schema": {
  483. "type": "string"
  484. }
  485. }
  486. }
  487. },
  488. "post": {
  489. "produces": [
  490. "application/json"
  491. ],
  492. "tags": [
  493. "权益卡"
  494. ],
  495. "summary": "权益卡开卡订单查询",
  496. "parameters": [
  497. {
  498. "description": "json",
  499. "name": "body",
  500. "in": "body",
  501. "required": true,
  502. "schema": {
  503. "$ref": "#/definitions/hdl.PrivilegeOpenCardOrdQueryReq"
  504. }
  505. }
  506. ],
  507. "responses": {
  508. "200": {
  509. "description": "ok",
  510. "schema": {
  511. "$ref": "#/definitions/model.PrivilegeOpenCardOrd"
  512. }
  513. },
  514. "400": {
  515. "description": "{\"code\":400000,\"data\":[],\"msg\":\"验证码错误\"}",
  516. "schema": {
  517. "type": "string"
  518. }
  519. }
  520. }
  521. }
  522. },
  523. "/api/v1/privilege/open_card/order_suc": {
  524. "get": {
  525. "produces": [
  526. "application/json"
  527. ],
  528. "tags": [
  529. "权益卡"
  530. ],
  531. "summary": "订单支付成功页面",
  532. "responses": {
  533. "200": {
  534. "description": "ok",
  535. "schema": {
  536. "$ref": "#/definitions/model.PrivilegeOpenCardOrd"
  537. }
  538. }
  539. }
  540. }
  541. },
  542. "/api/v1/privilege/open_card/pay_page": {
  543. "get": {
  544. "produces": [
  545. "application/json"
  546. ],
  547. "tags": [
  548. "权益卡"
  549. ],
  550. "summary": "权益卡开卡支付页面",
  551. "responses": {
  552. "200": {
  553. "description": "ok",
  554. "schema": {
  555. "$ref": "#/definitions/hdl.privilegeOpenCardPayPageResp"
  556. }
  557. },
  558. "400": {
  559. "description": "{\"code\":400000,\"data\":[],\"msg\":\"权益卡配置缺失\"}",
  560. "schema": {
  561. "type": "string"
  562. }
  563. }
  564. }
  565. }
  566. },
  567. "/api/v1/shake_ticket/:goods_id/:type": {
  568. "get": {
  569. "description": "收藏/领券买/分享赚",
  570. "consumes": [
  571. "application/json"
  572. ],
  573. "produces": [
  574. "application/json"
  575. ],
  576. "tags": [
  577. "抖券"
  578. ],
  579. "summary": "抖券商品收藏/领券买/分享赚",
  580. "parameters": [
  581. {
  582. "type": "string",
  583. "description": "商品id",
  584. "name": "goods_id",
  585. "in": "path",
  586. "required": true
  587. },
  588. {
  589. "type": "string",
  590. "description": "类型(0取消收藏,1收藏,2点击 领券买,3点击分享赚)",
  591. "name": "type",
  592. "in": "path",
  593. "required": true
  594. }
  595. ],
  596. "responses": {
  597. "200": {
  598. "description": "ok",
  599. "schema": {
  600. "type": "string"
  601. }
  602. }
  603. }
  604. }
  605. },
  606. "/api/v1/shake_ticket_list": {
  607. "get": {
  608. "description": "定向计划/高佣专场/精选低价包邮/偏远地区包邮/抖货商品/各大榜单商品/今日值得买",
  609. "consumes": [
  610. "application/json"
  611. ],
  612. "produces": [
  613. "application/json"
  614. ],
  615. "tags": [
  616. "抖券"
  617. ],
  618. "summary": "抖券商品推荐列表",
  619. "parameters": [
  620. {
  621. "type": "string",
  622. "description": "页码",
  623. "name": "page",
  624. "in": "query",
  625. "required": true
  626. },
  627. {
  628. "type": "string",
  629. "description": "页数",
  630. "name": "page_size",
  631. "in": "query",
  632. "required": true
  633. },
  634. {
  635. "type": "string",
  636. "description": "分类id(3定向计划/4高佣专场/5精选低价包邮/6偏远地区包邮/7抖货商品/8各大榜单商品/9今日值得买)",
  637. "name": "category_id",
  638. "in": "query",
  639. "required": true
  640. },
  641. {
  642. "type": "string",
  643. "description": "渠道",
  644. "name": "pvd",
  645. "in": "query",
  646. "required": true
  647. }
  648. ],
  649. "responses": {
  650. "200": {
  651. "description": "OK",
  652. "schema": {
  653. "$ref": "#/definitions/md.IndexRecommendList"
  654. }
  655. }
  656. }
  657. }
  658. },
  659. "/api/v1/sign/fast/in": {
  660. "post": {
  661. "produces": [
  662. "application/json"
  663. ],
  664. "tags": [
  665. "登录、注册"
  666. ],
  667. "summary": "用户手机快速登录",
  668. "parameters": [
  669. {
  670. "description": "json",
  671. "name": "body",
  672. "in": "body",
  673. "required": true,
  674. "schema": {
  675. "$ref": "#/definitions/md.FastLoginRequestBody"
  676. }
  677. }
  678. ],
  679. "responses": {
  680. "200": {
  681. "description": "ok",
  682. "schema": {
  683. "$ref": "#/definitions/md.LoginResponse"
  684. }
  685. },
  686. "400": {
  687. "description": "{\"code\":400001,\"data\":[],\"msg\":\"请求参数错误\"}",
  688. "schema": {
  689. "type": "string"
  690. }
  691. }
  692. }
  693. }
  694. },
  695. "/api/v1/sub_region_list": {
  696. "get": {
  697. "produces": [
  698. "application/json"
  699. ],
  700. "tags": [
  701. "地址"
  702. ],
  703. "summary": "获取区域id下的区域",
  704. "parameters": [
  705. {
  706. "type": "string",
  707. "description": "上级地区类型:root(查询省级列表)、province(省级ID下的城市)、city(市级id下的区域)",
  708. "name": "parent",
  709. "in": "query",
  710. "required": true
  711. },
  712. {
  713. "type": "string",
  714. "description": "上级地区id",
  715. "name": "id",
  716. "in": "query"
  717. }
  718. ],
  719. "responses": {
  720. "200": {
  721. "description": "ok",
  722. "schema": {
  723. "type": "array",
  724. "items": {
  725. "$ref": "#/definitions/hdl.resultItem"
  726. }
  727. }
  728. },
  729. "400": {
  730. "description": "{\"code\":400001,\"data\":[],\"msg\":\"请求参数错误\"}",
  731. "schema": {
  732. "type": "string"
  733. }
  734. }
  735. }
  736. }
  737. },
  738. "/api/v1/user/address/:id": {
  739. "get": {
  740. "produces": [
  741. "application/json"
  742. ],
  743. "tags": [
  744. "地址"
  745. ],
  746. "summary": "用户地址详情",
  747. "parameters": [
  748. {
  749. "type": "string",
  750. "description": "地址id",
  751. "name": "id",
  752. "in": "path",
  753. "required": true
  754. }
  755. ],
  756. "responses": {
  757. "200": {
  758. "description": "ok",
  759. "schema": {
  760. "$ref": "#/definitions/model.UserAddress"
  761. }
  762. },
  763. "400": {
  764. "description": "{\"code\":400000,\"data\":[],\"msg\":\"地址不存在\"}",
  765. "schema": {
  766. "type": "string"
  767. }
  768. }
  769. }
  770. }
  771. },
  772. "/api/v1/user/address/delete/:id": {
  773. "post": {
  774. "consumes": [
  775. "application/json"
  776. ],
  777. "produces": [
  778. "application/json"
  779. ],
  780. "tags": [
  781. "地址"
  782. ],
  783. "summary": "用户地址删除",
  784. "parameters": [
  785. {
  786. "type": "string",
  787. "description": "ID",
  788. "name": "id",
  789. "in": "path",
  790. "required": true
  791. }
  792. ],
  793. "responses": {
  794. "200": {
  795. "description": "ok",
  796. "schema": {
  797. "type": "string"
  798. }
  799. },
  800. "400": {
  801. "description": "{\"code\":400000,\"data\":[],\"msg\":\"地址不存在\"}",
  802. "schema": {
  803. "type": "string"
  804. }
  805. }
  806. }
  807. }
  808. },
  809. "/api/v1/user/address/update": {
  810. "post": {
  811. "consumes": [
  812. "application/json"
  813. ],
  814. "produces": [
  815. "application/json"
  816. ],
  817. "tags": [
  818. "地址"
  819. ],
  820. "summary": "用户地址新增、编辑",
  821. "parameters": [
  822. {
  823. "description": "json参数,Id不传为新增",
  824. "name": "\"\"",
  825. "in": "body",
  826. "required": true,
  827. "schema": {
  828. "$ref": "#/definitions/hdl.updateAddressReq"
  829. }
  830. }
  831. ],
  832. "responses": {
  833. "200": {
  834. "description": "ok",
  835. "schema": {
  836. "type": "string"
  837. }
  838. },
  839. "400": {
  840. "description": "{\"code\":400000,\"data\":[],\"msg\":\"地址不存在\"}",
  841. "schema": {
  842. "type": "string"
  843. }
  844. }
  845. }
  846. }
  847. },
  848. "/api/v1/user/addresses": {
  849. "get": {
  850. "produces": [
  851. "application/json"
  852. ],
  853. "tags": [
  854. "地址"
  855. ],
  856. "summary": "用户地址列表",
  857. "responses": {
  858. "200": {
  859. "description": "ok",
  860. "schema": {
  861. "type": "array",
  862. "items": {
  863. "$ref": "#/definitions/model.UserAddress"
  864. }
  865. }
  866. },
  867. "500": {
  868. "description": "{\"code\":500000,\"data\":[],\"msg\":\"数据库操作失败\"}",
  869. "schema": {
  870. "type": "string"
  871. }
  872. }
  873. }
  874. }
  875. }
  876. },
  877. "definitions": {
  878. "hdl.PrivilegeOpenCardOrdQueryPageResp": {
  879. "type": "object",
  880. "properties": {
  881. "btn_bg_color_1": {
  882. "type": "string"
  883. },
  884. "btn_bg_color_2": {
  885. "type": "string"
  886. },
  887. "btn_text": {
  888. "type": "string"
  889. },
  890. "btn_text_color": {
  891. "type": "string"
  892. },
  893. "header_img": {
  894. "type": "string"
  895. },
  896. "logistic_company": {
  897. "type": "array",
  898. "items": {
  899. "$ref": "#/definitions/model.LogisticCompany"
  900. }
  901. }
  902. }
  903. },
  904. "hdl.PrivilegeOpenCardOrdQueryReq": {
  905. "type": "object",
  906. "required": [
  907. "com",
  908. "num"
  909. ],
  910. "properties": {
  911. "com": {
  912. "description": "快递公司名称",
  913. "type": "string"
  914. },
  915. "num": {
  916. "description": "快递单号",
  917. "type": "string"
  918. }
  919. }
  920. },
  921. "hdl.logisticQueryReq": {
  922. "type": "object",
  923. "required": [
  924. "com",
  925. "num"
  926. ],
  927. "properties": {
  928. "com": {
  929. "description": "快递公司名称",
  930. "type": "string"
  931. },
  932. "num": {
  933. "description": "快递单号",
  934. "type": "string"
  935. }
  936. }
  937. },
  938. "hdl.privilegeOpenCardCheckReq": {
  939. "type": "object",
  940. "required": [
  941. "key",
  942. "num"
  943. ],
  944. "properties": {
  945. "key": {
  946. "description": "卡密",
  947. "type": "string"
  948. },
  949. "num": {
  950. "description": "卡号",
  951. "type": "string"
  952. }
  953. }
  954. },
  955. "hdl.privilegeOpenCardPayPageResp": {
  956. "type": "object",
  957. "properties": {
  958. "amount": {
  959. "description": "付费金额",
  960. "type": "string"
  961. },
  962. "card_type": {
  963. "description": "卡的类型:\"1\"实体卡 \"2\"虚拟卡",
  964. "type": "string"
  965. },
  966. "date_type": {
  967. "description": "日期类型:month:月 season:季 year:年 forever:永久",
  968. "type": "string"
  969. },
  970. "page_style": {
  971. "description": "页面样式",
  972. "$ref": "#/definitions/hdl.privilegeOpenCardPayStyle"
  973. }
  974. }
  975. },
  976. "hdl.privilegeOpenCardPayStyle": {
  977. "type": "object",
  978. "properties": {
  979. "exclusive_privilege": {
  980. "description": "专属特权",
  981. "type": "array",
  982. "items": {
  983. "type": "object",
  984. "properties": {
  985. "brand_id": {
  986. "type": "string"
  987. },
  988. "brand_img": {
  989. "type": "string"
  990. },
  991. "brand_img_url": {
  992. "type": "string"
  993. },
  994. "brand_name": {
  995. "type": "string"
  996. },
  997. "is_show": {
  998. "type": "string"
  999. },
  1000. "sub_title": {
  1001. "type": "string"
  1002. }
  1003. }
  1004. }
  1005. },
  1006. "payment_btn": {
  1007. "description": "底部支付按钮",
  1008. "type": "array",
  1009. "items": {
  1010. "type": "object",
  1011. "properties": {
  1012. "bg_img": {
  1013. "type": "string"
  1014. },
  1015. "bg_img_url": {
  1016. "type": "string"
  1017. },
  1018. "func": {
  1019. "type": "string"
  1020. },
  1021. "name": {
  1022. "type": "string"
  1023. },
  1024. "text": {
  1025. "type": "string"
  1026. },
  1027. "text_color": {
  1028. "type": "string"
  1029. },
  1030. "type": {
  1031. "type": "string"
  1032. }
  1033. }
  1034. }
  1035. },
  1036. "payment_choose_icon": {
  1037. "description": "支付方式选中、未选中图标",
  1038. "type": "array",
  1039. "items": {
  1040. "type": "object",
  1041. "properties": {
  1042. "icon": {
  1043. "type": "string"
  1044. },
  1045. "icon_url": {
  1046. "type": "string"
  1047. },
  1048. "type": {
  1049. "type": "string"
  1050. }
  1051. }
  1052. }
  1053. },
  1054. "payment_style": {
  1055. "description": "支付方式",
  1056. "type": "array",
  1057. "items": {
  1058. "type": "object",
  1059. "properties": {
  1060. "icon": {
  1061. "type": "string"
  1062. },
  1063. "icon_url": {
  1064. "type": "string"
  1065. },
  1066. "type": {
  1067. "type": "string"
  1068. }
  1069. }
  1070. }
  1071. },
  1072. "style": {
  1073. "description": "头部样式",
  1074. "type": "object",
  1075. "properties": {
  1076. "header_bg_img": {
  1077. "type": "string"
  1078. },
  1079. "header_bg_img_url": {
  1080. "type": "string"
  1081. },
  1082. "special_deals_img": {
  1083. "type": "string"
  1084. },
  1085. "special_deals_img_url": {
  1086. "type": "string"
  1087. },
  1088. "special_deals_text": {
  1089. "type": "string"
  1090. }
  1091. }
  1092. }
  1093. }
  1094. },
  1095. "hdl.resultItem": {
  1096. "type": "object",
  1097. "properties": {
  1098. "id": {
  1099. "type": "string",
  1100. "example": "440100000000"
  1101. },
  1102. "name": {
  1103. "type": "string",
  1104. "example": "city"
  1105. }
  1106. }
  1107. },
  1108. "hdl.updateAddressReq": {
  1109. "type": "object",
  1110. "required": [
  1111. "city_id",
  1112. "county_id",
  1113. "detail",
  1114. "phone",
  1115. "province_id",
  1116. "receiver"
  1117. ],
  1118. "properties": {
  1119. "city_id": {
  1120. "type": "string"
  1121. },
  1122. "county_id": {
  1123. "type": "string"
  1124. },
  1125. "detail": {
  1126. "type": "string"
  1127. },
  1128. "id": {
  1129. "type": "integer"
  1130. },
  1131. "phone": {
  1132. "type": "string"
  1133. },
  1134. "post_code": {
  1135. "type": "string"
  1136. },
  1137. "province_id": {
  1138. "type": "string"
  1139. },
  1140. "receiver": {
  1141. "type": "string"
  1142. },
  1143. "tag": {
  1144. "type": "string"
  1145. }
  1146. }
  1147. },
  1148. "md.Apple": {
  1149. "type": "object",
  1150. "properties": {
  1151. "token": {
  1152. "type": "string"
  1153. }
  1154. }
  1155. },
  1156. "md.FastLoginRequestBody": {
  1157. "type": "object",
  1158. "properties": {
  1159. "apple": {
  1160. "$ref": "#/definitions/md.Apple"
  1161. },
  1162. "captcha": {
  1163. "type": "string"
  1164. },
  1165. "is_not_create": {
  1166. "type": "string"
  1167. },
  1168. "mobile": {
  1169. "type": "string"
  1170. },
  1171. "parent_uid": {
  1172. "type": "string"
  1173. },
  1174. "qq": {
  1175. "$ref": "#/definitions/md.QQLogin"
  1176. },
  1177. "return_user_msg": {
  1178. "type": "string"
  1179. },
  1180. "taobao": {
  1181. "$ref": "#/definitions/md.TaobaoLogin"
  1182. },
  1183. "wechat": {
  1184. "$ref": "#/definitions/md.WeChat"
  1185. },
  1186. "wechat_mini": {
  1187. "$ref": "#/definitions/md.WeChatMiniApp"
  1188. },
  1189. "zone": {
  1190. "type": "string"
  1191. }
  1192. }
  1193. },
  1194. "md.IndexRecommendList": {
  1195. "type": "object",
  1196. "properties": {
  1197. "good": {
  1198. "type": "array",
  1199. "items": {
  1200. "$ref": "#/definitions/md.RecommendGood"
  1201. }
  1202. },
  1203. "provider": {
  1204. "description": "BarTitleList []BarTitle `json:\"bar_title_list\"`",
  1205. "type": "string"
  1206. }
  1207. }
  1208. },
  1209. "md.LoginResponse": {
  1210. "type": "object",
  1211. "properties": {
  1212. "bind_phone_enable": {
  1213. "type": "string"
  1214. },
  1215. "is_pid": {
  1216. "type": "string"
  1217. },
  1218. "perms": {
  1219. "type": "array",
  1220. "items": {
  1221. "type": "string"
  1222. }
  1223. },
  1224. "phone": {
  1225. "type": "string"
  1226. },
  1227. "register_invite_code_enable": {
  1228. "type": "string"
  1229. },
  1230. "register_popup_condition": {
  1231. "description": "弹出类型设置",
  1232. "$ref": "#/definitions/md.RegisterPopupCondition"
  1233. },
  1234. "token": {
  1235. "type": "string"
  1236. },
  1237. "user_id": {
  1238. "type": "string"
  1239. },
  1240. "username": {
  1241. "type": "string"
  1242. },
  1243. "wechat_applet_open_id": {
  1244. "type": "string"
  1245. },
  1246. "wechat_union_id": {
  1247. "type": "string"
  1248. }
  1249. }
  1250. },
  1251. "md.Marquee": {
  1252. "type": "object",
  1253. "properties": {
  1254. "avatar_url": {
  1255. "type": "string"
  1256. },
  1257. "content": {
  1258. "type": "string"
  1259. },
  1260. "name": {
  1261. "type": "string"
  1262. }
  1263. }
  1264. },
  1265. "md.ProductDetailResponse": {
  1266. "type": "object",
  1267. "properties": {
  1268. "commission": {
  1269. "type": "string"
  1270. },
  1271. "coupon_price": {
  1272. "type": "string"
  1273. },
  1274. "good_id": {
  1275. "type": "string"
  1276. },
  1277. "mod_list": {
  1278. "type": "array",
  1279. "items": {
  1280. "type": "object",
  1281. "additionalProperties": true
  1282. }
  1283. },
  1284. "provider": {
  1285. "type": "string"
  1286. },
  1287. "provider_name": {
  1288. "type": "string"
  1289. },
  1290. "shop_avatar": {
  1291. "type": "string"
  1292. }
  1293. }
  1294. },
  1295. "md.QQLogin": {
  1296. "type": "object",
  1297. "properties": {
  1298. "access_token": {
  1299. "type": "string"
  1300. },
  1301. "avatar_url": {
  1302. "type": "string"
  1303. },
  1304. "city": {
  1305. "type": "string"
  1306. },
  1307. "expires_in": {
  1308. "type": "string"
  1309. },
  1310. "gender": {
  1311. "type": "string"
  1312. },
  1313. "nickname": {
  1314. "type": "string"
  1315. },
  1316. "open_id": {
  1317. "type": "string"
  1318. },
  1319. "pay_token": {
  1320. "type": "string"
  1321. },
  1322. "pf": {
  1323. "type": "string"
  1324. },
  1325. "pf_key": {
  1326. "type": "string"
  1327. },
  1328. "province": {
  1329. "type": "string"
  1330. },
  1331. "ret": {
  1332. "type": "string"
  1333. },
  1334. "unionid": {
  1335. "type": "string"
  1336. }
  1337. }
  1338. },
  1339. "md.RecommendGood": {
  1340. "type": "object",
  1341. "properties": {
  1342. "commission": {
  1343. "type": "string"
  1344. },
  1345. "coupon": {
  1346. "type": "string"
  1347. },
  1348. "current_price": {
  1349. "type": "string"
  1350. },
  1351. "detail_data": {
  1352. "$ref": "#/definitions/md.ProductDetailResponse"
  1353. },
  1354. "good_id": {
  1355. "type": "string"
  1356. },
  1357. "good_image": {
  1358. "type": "string"
  1359. },
  1360. "good_title": {
  1361. "type": "string"
  1362. },
  1363. "inorder_count": {
  1364. "type": "string"
  1365. },
  1366. "is_collect": {
  1367. "type": "integer"
  1368. },
  1369. "is_coupons": {
  1370. "type": "integer"
  1371. },
  1372. "is_share": {
  1373. "type": "integer"
  1374. },
  1375. "market_price": {
  1376. "type": "string"
  1377. },
  1378. "marquee_list": {
  1379. "type": "array",
  1380. "items": {
  1381. "$ref": "#/definitions/md.Marquee"
  1382. }
  1383. },
  1384. "provider": {
  1385. "type": "string"
  1386. },
  1387. "provider_name": {
  1388. "type": "string"
  1389. },
  1390. "pvd": {
  1391. "type": "string"
  1392. },
  1393. "shop_avatar": {
  1394. "type": "string"
  1395. },
  1396. "shop_name": {
  1397. "type": "string"
  1398. },
  1399. "video": {
  1400. "type": "string"
  1401. }
  1402. }
  1403. },
  1404. "md.RegisterPopupCondition": {
  1405. "type": "object",
  1406. "properties": {
  1407. "invite_code": {
  1408. "description": "邀请码设置:弹出类型是激活码的时候起作用",
  1409. "type": "object",
  1410. "properties": {
  1411. "popup": {
  1412. "description": "是否弹出 “0”否 “1”是",
  1413. "type": "string"
  1414. },
  1415. "should_input": {
  1416. "description": "是否必填 “0”否 “1”是",
  1417. "type": "string"
  1418. }
  1419. }
  1420. },
  1421. "popup_type": {
  1422. "description": "弹出类型:“0”关闭 ”1”激活码 “2”邀请码",
  1423. "type": "string"
  1424. },
  1425. "should_input": {
  1426. "description": "是否必填 “0”否 “1”是",
  1427. "type": "string"
  1428. }
  1429. }
  1430. },
  1431. "md.TaobaoLogin": {
  1432. "type": "object",
  1433. "properties": {
  1434. "access_token": {
  1435. "type": "string"
  1436. },
  1437. "auth_code": {
  1438. "type": "string"
  1439. },
  1440. "avatar_url": {
  1441. "type": "string"
  1442. },
  1443. "nick_name": {
  1444. "type": "string"
  1445. },
  1446. "open_id": {
  1447. "type": "string"
  1448. },
  1449. "sid": {
  1450. "type": "string"
  1451. }
  1452. }
  1453. },
  1454. "md.WeChat": {
  1455. "type": "object",
  1456. "properties": {
  1457. "access_token": {
  1458. "type": "string"
  1459. },
  1460. "avatar_url": {
  1461. "type": "string"
  1462. },
  1463. "city": {
  1464. "type": "string"
  1465. },
  1466. "expires_in": {
  1467. "type": "string"
  1468. },
  1469. "gender": {
  1470. "type": "string"
  1471. },
  1472. "nickname": {
  1473. "type": "string"
  1474. },
  1475. "open_id": {
  1476. "type": "string"
  1477. },
  1478. "pay_token": {
  1479. "type": "string"
  1480. },
  1481. "pf": {
  1482. "type": "string"
  1483. },
  1484. "pf_key": {
  1485. "type": "string"
  1486. },
  1487. "province": {
  1488. "type": "string"
  1489. },
  1490. "ret": {
  1491. "type": "string"
  1492. },
  1493. "unionid": {
  1494. "type": "string"
  1495. }
  1496. }
  1497. },
  1498. "md.WeChatMiniApp": {
  1499. "type": "object",
  1500. "properties": {
  1501. "avatar": {
  1502. "type": "string"
  1503. },
  1504. "code": {
  1505. "type": "string"
  1506. },
  1507. "nickname": {
  1508. "type": "string"
  1509. },
  1510. "open_id": {
  1511. "type": "string"
  1512. },
  1513. "unionid": {
  1514. "type": "string"
  1515. }
  1516. }
  1517. },
  1518. "model.LogisticCompany": {
  1519. "type": "object",
  1520. "properties": {
  1521. "code": {
  1522. "type": "string"
  1523. },
  1524. "name": {
  1525. "type": "string"
  1526. }
  1527. }
  1528. },
  1529. "model.PrivilegeOpenCardOrd": {
  1530. "type": "object",
  1531. "properties": {
  1532. "address": {
  1533. "type": "string"
  1534. },
  1535. "after_sale_id": {
  1536. "type": "integer"
  1537. },
  1538. "card_key": {
  1539. "type": "string"
  1540. },
  1541. "card_num": {
  1542. "type": "string"
  1543. },
  1544. "card_type": {
  1545. "type": "integer"
  1546. },
  1547. "cost_price": {
  1548. "type": "string"
  1549. },
  1550. "create_time": {
  1551. "type": "string"
  1552. },
  1553. "date_type": {
  1554. "type": "integer"
  1555. },
  1556. "given_data": {
  1557. "type": "string"
  1558. },
  1559. "logistic_company": {
  1560. "type": "string"
  1561. },
  1562. "logistic_num": {
  1563. "type": "string"
  1564. },
  1565. "ord_id": {
  1566. "type": "integer"
  1567. },
  1568. "pay_channel": {
  1569. "type": "integer"
  1570. },
  1571. "pay_time": {
  1572. "type": "string"
  1573. },
  1574. "phone": {
  1575. "type": "string"
  1576. },
  1577. "receiver": {
  1578. "type": "string"
  1579. },
  1580. "settle_at": {
  1581. "type": "integer"
  1582. },
  1583. "state": {
  1584. "type": "integer"
  1585. },
  1586. "uid": {
  1587. "type": "integer"
  1588. },
  1589. "update_time": {
  1590. "type": "string"
  1591. }
  1592. }
  1593. },
  1594. "model.UserAddress": {
  1595. "type": "object",
  1596. "properties": {
  1597. "city_id": {
  1598. "type": "string"
  1599. },
  1600. "city_name": {
  1601. "type": "string"
  1602. },
  1603. "county_id": {
  1604. "type": "string"
  1605. },
  1606. "county_name": {
  1607. "type": "string"
  1608. },
  1609. "detail": {
  1610. "type": "string"
  1611. },
  1612. "id": {
  1613. "type": "integer"
  1614. },
  1615. "phone": {
  1616. "type": "string"
  1617. },
  1618. "post_code": {
  1619. "type": "string"
  1620. },
  1621. "province_id": {
  1622. "type": "string"
  1623. },
  1624. "province_name": {
  1625. "type": "string"
  1626. },
  1627. "receiver": {
  1628. "type": "string"
  1629. },
  1630. "tag": {
  1631. "type": "string"
  1632. },
  1633. "uid": {
  1634. "type": "integer"
  1635. }
  1636. }
  1637. }
  1638. },
  1639. "securityDefinitions": {
  1640. "MasterID": {
  1641. "type": "apiKey",
  1642. "name": "MasterID",
  1643. "in": "header"
  1644. }
  1645. }
  1646. }