广告平台(媒体使用)
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.
 
 
 
 
 
 

1709 rivejä
53 KiB

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