docs.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. // Package docs GENERATED BY SWAG; DO NOT EDIT
  2. // This file was generated by swaggo/swag
  3. package docs
  4. import "github.com/swaggo/swag"
  5. const docTemplate = `{
  6. "schemes": {{ marshal .Schemes }},
  7. "swagger": "2.0",
  8. "info": {
  9. "description": "{{escape .Description}}",
  10. "title": "{{.Title}}",
  11. "contact": {},
  12. "version": "{{.Version}}"
  13. },
  14. "host": "{{.Host}}",
  15. "basePath": "{{.BasePath}}",
  16. "paths": {
  17. "/product/create": {
  18. "post": {
  19. "description": "企业创建商品,添加到商品库",
  20. "consumes": [
  21. "application/json"
  22. ],
  23. "produces": [
  24. "application/json"
  25. ],
  26. "summary": "CreateProduct 创建商品",
  27. "parameters": [
  28. {
  29. "type": "string",
  30. "description": "登录TOKEN信息",
  31. "name": "Authorization",
  32. "in": "header",
  33. "required": true
  34. },
  35. {
  36. "description": "创建商品请求结构体",
  37. "name": "req",
  38. "in": "body",
  39. "required": true,
  40. "schema": {
  41. "$ref": "#/definitions/http_model.CreateProductRequest"
  42. }
  43. }
  44. ],
  45. "responses": {
  46. "200": {
  47. "description": "创建商品相应结构体",
  48. "schema": {
  49. "allOf": [
  50. {
  51. "$ref": "#/definitions/http_model.CommonResponse"
  52. },
  53. {
  54. "type": "object",
  55. "properties": {
  56. "data": {
  57. "$ref": "#/definitions/http_model.CreateProductData"
  58. }
  59. }
  60. }
  61. ]
  62. }
  63. }
  64. }
  65. }
  66. },
  67. "/product/list": {
  68. "get": {
  69. "description": "展示企业的商品列表",
  70. "consumes": [
  71. "application/json"
  72. ],
  73. "produces": [
  74. "application/json"
  75. ],
  76. "summary": "ProjectList 商品列表",
  77. "parameters": [
  78. {
  79. "type": "string",
  80. "description": "登录TOKEN信息",
  81. "name": "Authorization",
  82. "in": "header",
  83. "required": true
  84. },
  85. {
  86. "description": "创建全部商品请求结构体",
  87. "name": "req",
  88. "in": "body",
  89. "required": true,
  90. "schema": {
  91. "$ref": "#/definitions/http_model.FullProjectListRequest"
  92. }
  93. }
  94. ],
  95. "responses": {
  96. "200": {
  97. "description": "创建全部商品列表相应结构体",
  98. "schema": {
  99. "allOf": [
  100. {
  101. "$ref": "#/definitions/http_model.CommonResponse"
  102. },
  103. {
  104. "type": "object",
  105. "properties": {
  106. "data": {
  107. "$ref": "#/definitions/http_model.FullProjectListData"
  108. }
  109. }
  110. }
  111. ]
  112. }
  113. }
  114. }
  115. }
  116. },
  117. "/sendCode": {
  118. "post": {
  119. "description": "发送验证码,每次发送到邮箱",
  120. "consumes": [
  121. "application/json"
  122. ],
  123. "produces": [
  124. "application/json"
  125. ],
  126. "summary": "sendCode 发送验证码",
  127. "parameters": [
  128. {
  129. "description": "发送验证码请求参数结构体",
  130. "name": "req",
  131. "in": "body",
  132. "required": true,
  133. "schema": {
  134. "$ref": "#/definitions/http_model.SendCodeRequest"
  135. }
  136. }
  137. ],
  138. "responses": {
  139. "200": {
  140. "description": "发送验证码请求相应结构体",
  141. "schema": {
  142. "allOf": [
  143. {
  144. "$ref": "#/definitions/http_model.CommonResponse"
  145. },
  146. {
  147. "type": "object",
  148. "properties": {
  149. "data": {
  150. "$ref": "#/definitions/http_model.SendCodeData"
  151. }
  152. }
  153. }
  154. ]
  155. }
  156. }
  157. }
  158. }
  159. }
  160. },
  161. "definitions": {
  162. "http_model.CommonResponse": {
  163. "type": "object",
  164. "properties": {
  165. "data": {},
  166. "message": {
  167. "type": "string"
  168. },
  169. "status": {
  170. "type": "integer"
  171. }
  172. }
  173. },
  174. "http_model.CreateProductData": {
  175. "type": "object",
  176. "properties": {
  177. "product_id": {
  178. "description": "商品id",
  179. "type": "integer"
  180. }
  181. }
  182. },
  183. "http_model.CreateProductPhoto": {
  184. "type": "object",
  185. "properties": {
  186. "photo_uid": {
  187. "type": "string"
  188. },
  189. "photo_url": {
  190. "description": "图片或视频url",
  191. "type": "string"
  192. },
  193. "symbol": {
  194. "description": "图片为主图或详情图标志位,1为主图,2为详情图,3为视频",
  195. "type": "integer"
  196. }
  197. }
  198. },
  199. "http_model.CreateProductRequest": {
  200. "type": "object",
  201. "properties": {
  202. "brand_name": {
  203. "type": "string"
  204. },
  205. "product_detail": {
  206. "type": "string"
  207. },
  208. "product_id": {
  209. "type": "integer"
  210. },
  211. "product_name": {
  212. "description": "商品名称",
  213. "type": "string"
  214. },
  215. "product_photos": {
  216. "description": "商品图片列表",
  217. "type": "array",
  218. "items": {
  219. "$ref": "#/definitions/http_model.CreateProductPhoto"
  220. }
  221. },
  222. "product_price": {
  223. "description": "商品价值",
  224. "type": "integer"
  225. },
  226. "product_type": {
  227. "description": "商品类型",
  228. "type": "integer"
  229. },
  230. "product_url": {
  231. "description": "商品链接,可为电商网址、公司官网、大众点评的店铺地址等可以说明商品信息或者品牌信息的线上地址;",
  232. "type": "string"
  233. },
  234. "shop_address": {
  235. "description": "店铺地址,商品类型为线下品牌时需填写",
  236. "type": "string"
  237. }
  238. }
  239. },
  240. "http_model.FullProjectListData": {
  241. "type": "object",
  242. "properties": {
  243. "full_project_pre_view": {
  244. "type": "array",
  245. "items": {
  246. "$ref": "#/definitions/http_model.FullProjectPreview"
  247. }
  248. },
  249. "total": {
  250. "type": "string"
  251. }
  252. }
  253. },
  254. "http_model.FullProjectListRequest": {
  255. "type": "object",
  256. "properties": {
  257. "page_num": {
  258. "type": "integer"
  259. },
  260. "page_size": {
  261. "type": "integer"
  262. },
  263. "project_content_type": {
  264. "description": "内容形式",
  265. "type": "string"
  266. },
  267. "project_fee_forms": {
  268. "description": "稿费形式",
  269. "type": "string"
  270. },
  271. "project_form": {
  272. "description": "项目形式",
  273. "type": "string"
  274. },
  275. "project_platform": {
  276. "description": "项目平台",
  277. "type": "string"
  278. },
  279. "project_status": {
  280. "description": "项目状态",
  281. "type": "string"
  282. },
  283. "project_updated": {
  284. "description": "最后操作时间",
  285. "type": "string"
  286. }
  287. }
  288. },
  289. "http_model.FullProjectPreview": {
  290. "type": "object",
  291. "properties": {
  292. "project_content_type": {
  293. "description": "内容形式",
  294. "type": "string"
  295. },
  296. "project_fee_forms": {
  297. "description": "稿费形式",
  298. "type": "array",
  299. "items": {
  300. "type": "string"
  301. }
  302. },
  303. "project_form": {
  304. "description": "项目形式",
  305. "type": "string"
  306. },
  307. "project_id": {
  308. "description": "项目ID",
  309. "type": "string"
  310. },
  311. "project_name": {
  312. "description": "项目名",
  313. "type": "string"
  314. },
  315. "project_platform": {
  316. "description": "项目平台",
  317. "type": "string"
  318. },
  319. "project_status": {
  320. "description": "项目状态",
  321. "type": "string"
  322. },
  323. "project_updated": {
  324. "description": "最后操作时间",
  325. "type": "string"
  326. }
  327. }
  328. },
  329. "http_model.SendCodeData": {
  330. "type": "object"
  331. },
  332. "http_model.SendCodeRequest": {
  333. "type": "object",
  334. "properties": {
  335. "phone": {
  336. "type": "string"
  337. }
  338. }
  339. }
  340. }
  341. }`
  342. // SwaggerInfo holds exported Swagger Info so clients can modify it
  343. var SwaggerInfo = &swag.Spec{
  344. Version: "",
  345. Host: "",
  346. BasePath: "",
  347. Schemes: []string{},
  348. Title: "",
  349. Description: "",
  350. InfoInstanceName: "swagger",
  351. SwaggerTemplate: docTemplate,
  352. }
  353. func init() {
  354. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  355. }