swagger.json 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "contact": {}
  5. },
  6. "paths": {
  7. "/talent/g/get-project-list": {
  8. "get": {
  9. "description": "GetProjectListInfo",
  10. "consumes": [
  11. "application/json"
  12. ],
  13. "produces": [
  14. "application/json"
  15. ],
  16. "tags": [
  17. "Project"
  18. ],
  19. "summary": "GetProjectList",
  20. "parameters": [
  21. {
  22. "type": "integer",
  23. "description": "index of page",
  24. "name": "idx",
  25. "in": "query",
  26. "required": true
  27. },
  28. {
  29. "type": "integer",
  30. "description": "size of page",
  31. "name": "cnt",
  32. "in": "query",
  33. "required": true
  34. },
  35. {
  36. "type": "string",
  37. "description": "search by platform",
  38. "name": "platform",
  39. "in": "query"
  40. },
  41. {
  42. "type": "string",
  43. "description": "search by mode",
  44. "name": "mode",
  45. "in": "query"
  46. }
  47. ],
  48. "responses": {
  49. "200": {
  50. "description": "OK",
  51. "schema": {
  52. "$ref": "#/definitions/youngee_talent_model.ProjectInfoList"
  53. }
  54. }
  55. }
  56. }
  57. }
  58. },
  59. "definitions": {
  60. "youngee_talent_model.ProductCoverInfo": {
  61. "type": "object",
  62. "properties": {
  63. "productCovers": {
  64. "type": "array",
  65. "items": {
  66. "$ref": "#/definitions/youngee_talent_model.YounggeeProductPhoto"
  67. }
  68. },
  69. "product_id": {
  70. "description": "gmeta.Meta `orm:\"table:younggee_product\"`",
  71. "type": "integer"
  72. },
  73. "product_price": {
  74. "type": "integer"
  75. }
  76. }
  77. },
  78. "youngee_talent_model.ProjectInfo": {
  79. "type": "object",
  80. "properties": {
  81. "content_type": {
  82. "description": "内容形式,1代表图文,2代表视频",
  83. "type": "integer"
  84. },
  85. "enterprise_id": {
  86. "description": "所属企业id",
  87. "type": "integer"
  88. },
  89. "productInfo": {
  90. "$ref": "#/definitions/youngee_talent_model.ProductCoverInfo"
  91. },
  92. "product_id": {
  93. "description": "关联商品id",
  94. "type": "integer"
  95. },
  96. "project_detail": {
  97. "description": "项目详情",
  98. "type": "string"
  99. },
  100. "project_form": {
  101. "description": "项目形式,1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创",
  102. "type": "integer"
  103. },
  104. "project_id": {
  105. "description": "gmeta.Meta `orm:\"table:project_info\"`",
  106. "type": "integer"
  107. },
  108. "project_name": {
  109. "description": "项目名称",
  110. "type": "string"
  111. },
  112. "project_platform": {
  113. "description": "项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎",
  114. "type": "integer"
  115. },
  116. "project_status": {
  117. "description": "项目状态,1-7分别代表创建中、待审核、招募中、待支付、失效、执行中、已结案",
  118. "type": "integer"
  119. },
  120. "recruitStrategys": {
  121. "type": "array",
  122. "items": {
  123. "$ref": "#/definitions/youngee_talent_model.RecruitStrategy"
  124. }
  125. },
  126. "recruit_ddl": {
  127. "description": "招募截止时间",
  128. "type": "string"
  129. },
  130. "taskInfos": {
  131. "$ref": "#/definitions/youngee_talent_model.TaskInfo"
  132. }
  133. }
  134. },
  135. "youngee_talent_model.ProjectInfoList": {
  136. "type": "object",
  137. "properties": {
  138. "max_page": {
  139. "type": "integer"
  140. },
  141. "projectInfos": {
  142. "type": "array",
  143. "items": {
  144. "$ref": "#/definitions/youngee_talent_model.ProjectInfo"
  145. }
  146. }
  147. }
  148. },
  149. "youngee_talent_model.RecruitStrategy": {
  150. "type": "object",
  151. "properties": {
  152. "fee_form": {
  153. "description": "稿费形式,1-3分别代表产品置换、固定稿费、自报价",
  154. "type": "integer"
  155. },
  156. "followers_low": {
  157. "description": "达人粉丝数下限",
  158. "type": "integer"
  159. },
  160. "followers_up": {
  161. "description": "达人粉丝数上限",
  162. "type": "integer"
  163. },
  164. "offer": {
  165. "description": "报价",
  166. "type": "integer"
  167. },
  168. "project_id": {
  169. "description": "所属项目id",
  170. "type": "integer"
  171. },
  172. "recruit_number": {
  173. "description": "招募数量",
  174. "type": "integer"
  175. },
  176. "recruit_strategy_id": {
  177. "description": "gmeta.Meta `orm:\"table:recruit_strategy\"`",
  178. "type": "integer"
  179. },
  180. "strategy_id": {
  181. "description": "策略id",
  182. "type": "integer"
  183. }
  184. }
  185. },
  186. "youngee_talent_model.TaskInfo": {
  187. "type": "object",
  188. "properties": {
  189. "complete_date": {
  190. "description": "结束时间",
  191. "type": "string"
  192. },
  193. "complete_status": {
  194. "description": "结束方式 1未结束 2正常结束 3反选失败 4被解约",
  195. "type": "integer"
  196. },
  197. "create_date": {
  198. "description": "创建时间",
  199. "type": "string"
  200. },
  201. "project_id": {
  202. "description": "任务id",
  203. "type": "integer"
  204. },
  205. "select_date": {
  206. "description": "反选时间",
  207. "type": "string"
  208. },
  209. "settle_amount": {
  210. "description": "待结算金额(任务奖励扣除违规扣款)",
  211. "type": "integer"
  212. },
  213. "strategy_id": {
  214. "description": "报名选择的招募策略id",
  215. "type": "integer"
  216. },
  217. "talent_id": {
  218. "description": "达人id",
  219. "type": "integer"
  220. },
  221. "talent_personal_info_snap": {
  222. "description": "达人个人信息快照",
  223. "type": "string"
  224. },
  225. "talent_platform_info_snap": {
  226. "description": "达人平台信息快照",
  227. "type": "string"
  228. },
  229. "talent_post_addr_snap": {
  230. "description": "收货地址快照",
  231. "type": "string"
  232. },
  233. "task_id": {
  234. "description": "gmeta.Meta `orm:\"table:youngee_task_info\"`",
  235. "type": "integer"
  236. },
  237. "task_reward": {
  238. "description": "任务奖励金额",
  239. "type": "integer"
  240. },
  241. "task_status": {
  242. "description": "任务状态",
  243. "type": "integer"
  244. }
  245. }
  246. },
  247. "youngee_talent_model.YounggeeProductPhoto": {
  248. "type": "object",
  249. "properties": {
  250. "created_at": {
  251. "description": "创建时间",
  252. "type": "string"
  253. },
  254. "photo_uid": {
  255. "type": "string"
  256. },
  257. "photo_url": {
  258. "description": "图片或视频url",
  259. "type": "string"
  260. },
  261. "product_id": {
  262. "description": "所属商品id",
  263. "type": "integer"
  264. },
  265. "product_photo_id": {
  266. "description": "gmeta.Meta `orm:\"table:younggee_product_photo\"`",
  267. "type": "integer"
  268. },
  269. "symbol": {
  270. "description": "图片为主图或详情图标志位,1为主图,2为详情图,3为视频",
  271. "type": "integer"
  272. }
  273. }
  274. }
  275. }
  276. }