|
@@ -1,4 +1,4 @@
|
|
|
-// Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
|
|
+// Package docs GENERATED BY SWAG; DO NOT EDIT
|
|
|
// This file was generated by swaggo/swag
|
|
|
package docs
|
|
|
|
|
@@ -59,6 +59,37 @@ const docTemplate = `{
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ "/product/changeTaskStatus": {
|
|
|
+ "post": {
|
|
|
+ "description": "更改项目任务的状态",
|
|
|
+ "consumes": [
|
|
|
+ "application/json"
|
|
|
+ ],
|
|
|
+ "produces": [
|
|
|
+ "application/json"
|
|
|
+ ],
|
|
|
+ "summary": "ProjectChangeTaskStatus 更改项目任务状态",
|
|
|
+ "parameters": [
|
|
|
+ {
|
|
|
+ "description": "更改项目任务状态的请求结构体",
|
|
|
+ "name": "req",
|
|
|
+ "in": "body",
|
|
|
+ "required": true,
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/http_model.ProjectChangeTaskStatusRequest"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "更改项目任务状态相应结构体",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/http_model.CommonResponse"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
"/product/create": {
|
|
|
"post": {
|
|
|
"description": "企业创建商品,添加到商品库",
|
|
@@ -209,6 +240,49 @@ const docTemplate = `{
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ "/product/taskList": {
|
|
|
+ "post": {
|
|
|
+ "description": "展示某个项目的任务列表",
|
|
|
+ "consumes": [
|
|
|
+ "application/json"
|
|
|
+ ],
|
|
|
+ "produces": [
|
|
|
+ "application/json"
|
|
|
+ ],
|
|
|
+ "summary": "ProjectTaskList 项目任务列表",
|
|
|
+ "parameters": [
|
|
|
+ {
|
|
|
+ "description": "查询项目的任务列表的请求结构体",
|
|
|
+ "name": "req",
|
|
|
+ "in": "body",
|
|
|
+ "required": true,
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/http_model.ProjectTaskListRequest"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "查询项目的任务列表相应结构体",
|
|
|
+ "schema": {
|
|
|
+ "allOf": [
|
|
|
+ {
|
|
|
+ "$ref": "#/definitions/http_model.CommonResponse"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "data": {
|
|
|
+ "$ref": "#/definitions/http_model.ProjectTaskListData"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
"/project/show": {
|
|
|
"post": {
|
|
|
"description": "企业查看执行中项目",
|
|
@@ -482,14 +556,18 @@ const docTemplate = `{
|
|
|
"description": "内容形式",
|
|
|
"type": "string"
|
|
|
},
|
|
|
- "project_fee_forms": {
|
|
|
- "description": "稿费形式",
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
"project_form": {
|
|
|
"description": "项目形式",
|
|
|
"type": "string"
|
|
|
},
|
|
|
+ "project_id": {
|
|
|
+ "description": "项目ID",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "project_name": {
|
|
|
+ "description": "项目名",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
"project_platform": {
|
|
|
"description": "项目平台",
|
|
|
"type": "string"
|
|
@@ -508,16 +586,9 @@ const docTemplate = `{
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"project_content_type": {
|
|
|
- "description": "内容形式",
|
|
|
+ "description": "ProjectFeeForms []string ` + "`" + `json:\"project_fee_forms\"` + "`" + ` // 稿费形式",
|
|
|
"type": "string"
|
|
|
},
|
|
|
- "project_fee_forms": {
|
|
|
- "description": "稿费形式",
|
|
|
- "type": "array",
|
|
|
- "items": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
"project_form": {
|
|
|
"description": "项目形式",
|
|
|
"type": "string"
|
|
@@ -560,12 +631,115 @@ const docTemplate = `{
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ "http_model.ProjectChangeTaskStatusRequest": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "taskIds": {
|
|
|
+ "type": "array",
|
|
|
+ "items": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "task_status": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "http_model.ProjectTaskListData": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "project_task_pre_view": {
|
|
|
+ "type": "array",
|
|
|
+ "items": {
|
|
|
+ "$ref": "#/definitions/http_model.ProjectTaskPreview"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "total": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "http_model.ProjectTaskListRequest": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "page_num": {
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "page_size": {
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "platform_nickname": {
|
|
|
+ "description": "账号昵称",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "project_id": {
|
|
|
+ "description": "项目ID",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "strategy_id": {
|
|
|
+ "description": "策略ID",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "task_id": {
|
|
|
+ "description": "任务ID",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "task_status": {
|
|
|
+ "description": "任务状态",
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "http_model.ProjectTaskPreview": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "create_date": {
|
|
|
+ "description": "创建时间",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "fans_count": {
|
|
|
+ "description": "粉丝数",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "home_page_capture_url": {
|
|
|
+ "description": "主页链接",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "platform_nickname": {
|
|
|
+ "description": "账号昵称",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "strategy_id": {
|
|
|
+ "description": "报名选择的招募策略id",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "talent_personal_info_snap": {
|
|
|
+ "description": "达人个人信息快照",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "task_id": {
|
|
|
+ "description": "任务ID",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "task_reward": {
|
|
|
+ "description": "任务奖励金额",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "task_status": {
|
|
|
+ "description": "任务状态",
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
"http_model.SendCodeData": {
|
|
|
"type": "object"
|
|
|
},
|
|
|
"http_model.SendCodeRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
+ "email": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
"phone": {
|
|
|
"type": "string"
|
|
|
}
|
|
@@ -574,14 +748,22 @@ const docTemplate = `{
|
|
|
"http_model.ShowProjectData": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
- "Project_id": {
|
|
|
- "description": "项目id",
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
"content_type": {
|
|
|
"description": "内容形式,1代表图文,2代表视频",
|
|
|
"type": "string"
|
|
|
},
|
|
|
+ "create_at": {
|
|
|
+ "description": "创建时间",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "enterprise_id": {
|
|
|
+ "description": "企业id",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "phone": {
|
|
|
+ "description": "联系方式",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
"product_id": {
|
|
|
"description": "关联商品id",
|
|
|
"type": "string"
|
|
@@ -594,6 +776,10 @@ const docTemplate = `{
|
|
|
"description": "项目形式,1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创",
|
|
|
"type": "string"
|
|
|
},
|
|
|
+ "project_id": {
|
|
|
+ "description": "项目id",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
"project_name": {
|
|
|
"description": "项目名称",
|
|
|
"type": "string"
|