swagger.yaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. definitions:
  2. http_model.CodeLoginData:
  3. properties:
  4. token:
  5. type: string
  6. type: object
  7. http_model.CodeLoginRequest:
  8. properties:
  9. code:
  10. type: string
  11. phone:
  12. type: string
  13. type: object
  14. http_model.CommonResponse:
  15. properties:
  16. data: {}
  17. message:
  18. type: string
  19. status:
  20. type: integer
  21. type: object
  22. http_model.CreateProductData:
  23. properties:
  24. product_id:
  25. description: 商品id
  26. type: integer
  27. type: object
  28. http_model.CreateProductPhoto:
  29. properties:
  30. photo_uid:
  31. type: string
  32. photo_url:
  33. description: 图片或视频url
  34. type: string
  35. symbol:
  36. description: 图片为主图或详情图标志位,1为主图,2为详情图,3为视频
  37. type: integer
  38. type: object
  39. http_model.CreateProductRequest:
  40. properties:
  41. brand_name:
  42. type: string
  43. product_detail:
  44. type: string
  45. product_id:
  46. type: integer
  47. product_name:
  48. description: 商品名称
  49. type: string
  50. product_photos:
  51. description: 商品图片列表
  52. items:
  53. $ref: '#/definitions/http_model.CreateProductPhoto'
  54. type: array
  55. product_price:
  56. description: 商品价值
  57. type: integer
  58. product_type:
  59. description: 商品类型
  60. type: integer
  61. product_url:
  62. description: 商品链接,可为电商网址、公司官网、大众点评的店铺地址等可以说明商品信息或者品牌信息的线上地址;
  63. type: string
  64. shop_address:
  65. description: 店铺地址,商品类型为线下品牌时需填写
  66. type: string
  67. type: object
  68. http_model.FindProductData:
  69. properties:
  70. brand_name:
  71. description: 品牌名称
  72. type: string
  73. enterprise_id:
  74. description: 所属企业id
  75. type: integer
  76. product_detail:
  77. type: string
  78. product_id:
  79. type: integer
  80. product_name:
  81. description: 商品名称
  82. type: string
  83. product_photos:
  84. description: 商品图片列表
  85. items:
  86. $ref: '#/definitions/http_model.ProductPhoto'
  87. type: array
  88. product_price:
  89. description: 商品价值
  90. type: integer
  91. product_type:
  92. description: 商品类型
  93. type: integer
  94. product_url:
  95. description: 商品链接,可为电商网址、公司官网、大众点评的店铺地址等可以说明商品信息或者品牌信息的线上地址;
  96. type: string
  97. shop_address:
  98. description: 店铺地址,商品类型为线下品牌时需填写
  99. type: string
  100. type: object
  101. http_model.FindProductRequest:
  102. properties:
  103. product_id:
  104. type: integer
  105. type: object
  106. http_model.FullProjectListData:
  107. properties:
  108. full_project_pre_view:
  109. items:
  110. $ref: '#/definitions/http_model.FullProjectPreview'
  111. type: array
  112. total:
  113. type: string
  114. type: object
  115. http_model.FullProjectListRequest:
  116. properties:
  117. page_num:
  118. type: integer
  119. page_size:
  120. type: integer
  121. project_content_type:
  122. description: 内容形式
  123. type: string
  124. project_fee_forms:
  125. description: 稿费形式
  126. type: string
  127. project_form:
  128. description: 项目形式
  129. type: string
  130. project_platform:
  131. description: 项目平台
  132. type: string
  133. project_status:
  134. description: 项目状态
  135. type: string
  136. project_updated:
  137. description: 最后操作时间
  138. type: string
  139. type: object
  140. http_model.FullProjectPreview:
  141. properties:
  142. project_content_type:
  143. description: 内容形式
  144. type: string
  145. project_fee_forms:
  146. description: 稿费形式
  147. items:
  148. type: string
  149. type: array
  150. project_form:
  151. description: 项目形式
  152. type: string
  153. project_id:
  154. description: 项目ID
  155. type: string
  156. project_name:
  157. description: 项目名
  158. type: string
  159. project_platform:
  160. description: 项目平台
  161. type: string
  162. project_status:
  163. description: 项目状态
  164. type: string
  165. project_updated:
  166. description: 最后操作时间
  167. type: string
  168. type: object
  169. http_model.ProductPhoto:
  170. properties:
  171. photo_uid:
  172. type: string
  173. photo_url:
  174. description: 图片或视频url
  175. type: string
  176. symbol:
  177. description: 图片为主图或详情图标志位,1为主图,2为详情图,3为视频
  178. type: integer
  179. type: object
  180. http_model.SendCodeData:
  181. type: object
  182. http_model.SendCodeRequest:
  183. properties:
  184. phone:
  185. type: string
  186. type: object
  187. http_model.ShowProjectData:
  188. properties:
  189. Project_id:
  190. description: 项目id
  191. type: string
  192. content_type:
  193. description: 内容形式,1代表图文,2代表视频
  194. type: string
  195. product_id:
  196. description: 关联商品id
  197. type: string
  198. project_detail:
  199. description: 项目详情
  200. type: string
  201. project_form:
  202. description: 项目形式,1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创
  203. type: string
  204. project_name:
  205. description: 项目名称
  206. type: string
  207. project_photos:
  208. description: 项目图片
  209. items:
  210. $ref: '#/definitions/http_model.ShowProjectPhoto'
  211. type: array
  212. project_platform:
  213. description: 项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
  214. type: string
  215. project_status:
  216. description: 项目状态,1-7分别代表创建中、待审核、招募中、待支付、失效、执行中、已结案
  217. type: string
  218. project_type:
  219. description: 项目类型,1代表全流程项目,2代表专项项目
  220. type: string
  221. recruit_ddl:
  222. description: 招募截止时间
  223. type: string
  224. recruit_strategys:
  225. description: 定价策略
  226. items:
  227. $ref: '#/definitions/http_model.ShowRecruitStrategy'
  228. type: array
  229. talent_type:
  230. description: 达人类型
  231. type: string
  232. type: object
  233. http_model.ShowProjectPhoto:
  234. properties:
  235. photo_uid:
  236. type: string
  237. photo_url:
  238. description: 图片url
  239. type: string
  240. type: object
  241. http_model.ShowProjectRequest:
  242. properties:
  243. Project_id:
  244. description: 项目id
  245. type: integer
  246. type: object
  247. http_model.ShowRecruitStrategy:
  248. properties:
  249. fee_form:
  250. description: 稿费形式,1-3分别代表自报价、固定稿费、产品置换
  251. type: string
  252. followers_low:
  253. description: 达人粉丝数下限
  254. type: string
  255. followers_up:
  256. description: 达人粉丝数上限
  257. type: string
  258. offer:
  259. description: 报价
  260. type: string
  261. recruit_number:
  262. description: 招募数量
  263. type: string
  264. strategy_id:
  265. description: 策略id
  266. type: string
  267. type: object
  268. info:
  269. contact: {}
  270. paths:
  271. /login:
  272. post:
  273. consumes:
  274. - application/json
  275. description: 输入手机号和验证码,并登录
  276. parameters:
  277. - description: 登录输入内容请求参数结构体
  278. in: body
  279. name: req
  280. required: true
  281. schema:
  282. $ref: '#/definitions/http_model.CodeLoginRequest'
  283. produces:
  284. - application/json
  285. responses:
  286. "200":
  287. description: 登录返回相应结构体
  288. schema:
  289. allOf:
  290. - $ref: '#/definitions/http_model.CommonResponse'
  291. - properties:
  292. data:
  293. $ref: '#/definitions/http_model.CodeLoginData'
  294. type: object
  295. summary: login 登录
  296. /product/create:
  297. post:
  298. consumes:
  299. - application/json
  300. description: 企业创建商品,添加到商品库
  301. parameters:
  302. - description: 登录TOKEN信息
  303. in: header
  304. name: Authorization
  305. required: true
  306. type: string
  307. - description: 创建商品请求结构体
  308. in: body
  309. name: req
  310. required: true
  311. schema:
  312. $ref: '#/definitions/http_model.CreateProductRequest'
  313. produces:
  314. - application/json
  315. responses:
  316. "200":
  317. description: 创建商品相应结构体
  318. schema:
  319. allOf:
  320. - $ref: '#/definitions/http_model.CommonResponse'
  321. - properties:
  322. data:
  323. $ref: '#/definitions/http_model.CreateProductData'
  324. type: object
  325. summary: CreateProduct 创建商品
  326. /product/find:
  327. post:
  328. consumes:
  329. - application/json
  330. description: 根据产品名称查询产品信息
  331. parameters:
  332. - description: 登录TOKEN信息
  333. in: header
  334. name: Authorization
  335. required: true
  336. type: string
  337. - description: 发送产品id请求参数结构体
  338. in: body
  339. name: req
  340. required: true
  341. schema:
  342. $ref: '#/definitions/http_model.FindProductRequest'
  343. produces:
  344. - application/json
  345. responses:
  346. "200":
  347. description: 查询对应产品返回相应结构体
  348. schema:
  349. allOf:
  350. - $ref: '#/definitions/http_model.CommonResponse'
  351. - properties:
  352. data:
  353. $ref: '#/definitions/http_model.FindProductData'
  354. type: object
  355. summary: findProduct 根据产品名称查询产品信息
  356. /product/list:
  357. post:
  358. consumes:
  359. - application/json
  360. description: 展示企业的商品列表
  361. parameters:
  362. - description: 登录TOKEN信息
  363. in: header
  364. name: Authorization
  365. required: true
  366. type: string
  367. - description: 创建全部商品请求结构体
  368. in: body
  369. name: req
  370. required: true
  371. schema:
  372. $ref: '#/definitions/http_model.FullProjectListRequest'
  373. produces:
  374. - application/json
  375. responses:
  376. "200":
  377. description: 创建全部商品列表相应结构体
  378. schema:
  379. allOf:
  380. - $ref: '#/definitions/http_model.CommonResponse'
  381. - properties:
  382. data:
  383. $ref: '#/definitions/http_model.FullProjectListData'
  384. type: object
  385. summary: ProjectList 商品列表
  386. /project/show:
  387. post:
  388. consumes:
  389. - application/json
  390. description: 企业查看执行中项目
  391. parameters:
  392. - description: 登录TOKEN信息
  393. in: header
  394. name: Authorization
  395. required: true
  396. type: string
  397. - description: 查看项目请求结构体
  398. in: body
  399. name: req
  400. required: true
  401. schema:
  402. $ref: '#/definitions/http_model.ShowProjectRequest'
  403. produces:
  404. - application/json
  405. responses:
  406. "200":
  407. description: 查看项目相应结构体
  408. schema:
  409. allOf:
  410. - $ref: '#/definitions/http_model.CommonResponse'
  411. - properties:
  412. data:
  413. $ref: '#/definitions/http_model.ShowProjectData'
  414. type: object
  415. summary: CreateProduct 创建商品
  416. /sendCode:
  417. post:
  418. consumes:
  419. - application/json
  420. description: 发送验证码,每次发送到邮箱
  421. parameters:
  422. - description: 发送验证码请求参数结构体
  423. in: body
  424. name: req
  425. required: true
  426. schema:
  427. $ref: '#/definitions/http_model.SendCodeRequest'
  428. produces:
  429. - application/json
  430. responses:
  431. "200":
  432. description: 发送验证码请求相应结构体
  433. schema:
  434. allOf:
  435. - $ref: '#/definitions/http_model.CommonResponse'
  436. - properties:
  437. data:
  438. $ref: '#/definitions/http_model.SendCodeData'
  439. type: object
  440. summary: sendCode 发送验证码
  441. swagger: "2.0"