|
@@ -1,4 +1,4 @@
|
|
-// Package docs GENERATED BY SWAG; DO NOT EDIT
|
|
|
|
|
|
+// Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
|
// This file was generated by swaggo/swag
|
|
// This file was generated by swaggo/swag
|
|
package docs
|
|
package docs
|
|
|
|
|
|
@@ -16,6 +16,49 @@ const docTemplate = `{
|
|
"host": "{{.Host}}",
|
|
"host": "{{.Host}}",
|
|
"basePath": "{{.BasePath}}",
|
|
"basePath": "{{.BasePath}}",
|
|
"paths": {
|
|
"paths": {
|
|
|
|
+ "/login": {
|
|
|
|
+ "post": {
|
|
|
|
+ "description": "输入手机号和验证码,并登录",
|
|
|
|
+ "consumes": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "produces": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "summary": "login 登录",
|
|
|
|
+ "parameters": [
|
|
|
|
+ {
|
|
|
|
+ "description": "登录输入内容请求参数结构体",
|
|
|
|
+ "name": "req",
|
|
|
|
+ "in": "body",
|
|
|
|
+ "required": true,
|
|
|
|
+ "schema": {
|
|
|
|
+ "$ref": "#/definitions/http_model.CodeLoginRequest"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "responses": {
|
|
|
|
+ "200": {
|
|
|
|
+ "description": "登录返回相应结构体",
|
|
|
|
+ "schema": {
|
|
|
|
+ "allOf": [
|
|
|
|
+ {
|
|
|
|
+ "$ref": "#/definitions/http_model.CommonResponse"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "properties": {
|
|
|
|
+ "data": {
|
|
|
|
+ "$ref": "#/definitions/http_model.CodeLoginData"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
"/product/create": {
|
|
"/product/create": {
|
|
"post": {
|
|
"post": {
|
|
"description": "企业创建商品,添加到商品库",
|
|
"description": "企业创建商品,添加到商品库",
|
|
@@ -66,8 +109,58 @@ const docTemplate = `{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ "/product/find": {
|
|
|
|
+ "post": {
|
|
|
|
+ "description": "根据产品名称查询产品信息",
|
|
|
|
+ "consumes": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "produces": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "summary": "findProduct 根据产品名称查询产品信息",
|
|
|
|
+ "parameters": [
|
|
|
|
+ {
|
|
|
|
+ "type": "string",
|
|
|
|
+ "description": "登录TOKEN信息",
|
|
|
|
+ "name": "Authorization",
|
|
|
|
+ "in": "header",
|
|
|
|
+ "required": true
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "description": "发送产品id请求参数结构体",
|
|
|
|
+ "name": "req",
|
|
|
|
+ "in": "body",
|
|
|
|
+ "required": true,
|
|
|
|
+ "schema": {
|
|
|
|
+ "$ref": "#/definitions/http_model.FindProductRequest"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "responses": {
|
|
|
|
+ "200": {
|
|
|
|
+ "description": "查询对应产品返回相应结构体",
|
|
|
|
+ "schema": {
|
|
|
|
+ "allOf": [
|
|
|
|
+ {
|
|
|
|
+ "$ref": "#/definitions/http_model.CommonResponse"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "properties": {
|
|
|
|
+ "data": {
|
|
|
|
+ "$ref": "#/definitions/http_model.FindProductData"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
"/product/list": {
|
|
"/product/list": {
|
|
- "get": {
|
|
|
|
|
|
+ "post": {
|
|
"description": "展示企业的商品列表",
|
|
"description": "展示企业的商品列表",
|
|
"consumes": [
|
|
"consumes": [
|
|
"application/json"
|
|
"application/json"
|
|
@@ -116,6 +209,56 @@ const docTemplate = `{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ "/project/show": {
|
|
|
|
+ "post": {
|
|
|
|
+ "description": "企业查看执行中项目",
|
|
|
|
+ "consumes": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "produces": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "summary": "CreateProduct 创建商品",
|
|
|
|
+ "parameters": [
|
|
|
|
+ {
|
|
|
|
+ "type": "string",
|
|
|
|
+ "description": "登录TOKEN信息",
|
|
|
|
+ "name": "Authorization",
|
|
|
|
+ "in": "header",
|
|
|
|
+ "required": true
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "description": "查看项目请求结构体",
|
|
|
|
+ "name": "req",
|
|
|
|
+ "in": "body",
|
|
|
|
+ "required": true,
|
|
|
|
+ "schema": {
|
|
|
|
+ "$ref": "#/definitions/http_model.ShowProjectRequest"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "responses": {
|
|
|
|
+ "200": {
|
|
|
|
+ "description": "查看项目相应结构体",
|
|
|
|
+ "schema": {
|
|
|
|
+ "allOf": [
|
|
|
|
+ {
|
|
|
|
+ "$ref": "#/definitions/http_model.CommonResponse"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "properties": {
|
|
|
|
+ "data": {
|
|
|
|
+ "$ref": "#/definitions/http_model.ShowProjectData"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
"/sendCode": {
|
|
"/sendCode": {
|
|
"post": {
|
|
"post": {
|
|
"description": "发送验证码,每次发送到邮箱",
|
|
"description": "发送验证码,每次发送到邮箱",
|
|
@@ -161,6 +304,25 @@ const docTemplate = `{
|
|
}
|
|
}
|
|
},
|
|
},
|
|
"definitions": {
|
|
"definitions": {
|
|
|
|
+ "http_model.CodeLoginData": {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "properties": {
|
|
|
|
+ "token": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "http_model.CodeLoginRequest": {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "properties": {
|
|
|
|
+ "code": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "phone": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
"http_model.CommonResponse": {
|
|
"http_model.CommonResponse": {
|
|
"type": "object",
|
|
"type": "object",
|
|
"properties": {
|
|
"properties": {
|
|
@@ -239,6 +401,60 @@ const docTemplate = `{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ "http_model.FindProductData": {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "properties": {
|
|
|
|
+ "brand_name": {
|
|
|
|
+ "description": "品牌名称",
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "enterprise_id": {
|
|
|
|
+ "description": "所属企业id",
|
|
|
|
+ "type": "integer"
|
|
|
|
+ },
|
|
|
|
+ "product_detail": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "product_id": {
|
|
|
|
+ "type": "integer"
|
|
|
|
+ },
|
|
|
|
+ "product_name": {
|
|
|
|
+ "description": "商品名称",
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "product_photos": {
|
|
|
|
+ "description": "商品图片列表",
|
|
|
|
+ "type": "array",
|
|
|
|
+ "items": {
|
|
|
|
+ "$ref": "#/definitions/http_model.ProductPhoto"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "product_price": {
|
|
|
|
+ "description": "商品价值",
|
|
|
|
+ "type": "integer"
|
|
|
|
+ },
|
|
|
|
+ "product_type": {
|
|
|
|
+ "description": "商品类型",
|
|
|
|
+ "type": "integer"
|
|
|
|
+ },
|
|
|
|
+ "product_url": {
|
|
|
|
+ "description": "商品链接,可为电商网址、公司官网、大众点评的店铺地址等可以说明商品信息或者品牌信息的线上地址;",
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "shop_address": {
|
|
|
|
+ "description": "店铺地址,商品类型为线下品牌时需填写",
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "http_model.FindProductRequest": {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "properties": {
|
|
|
|
+ "product_id": {
|
|
|
|
+ "type": "integer"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
"http_model.FullProjectListData": {
|
|
"http_model.FullProjectListData": {
|
|
"type": "object",
|
|
"type": "object",
|
|
"properties": {
|
|
"properties": {
|
|
@@ -328,6 +544,22 @@ const docTemplate = `{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ "http_model.ProductPhoto": {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "properties": {
|
|
|
|
+ "photo_uid": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "photo_url": {
|
|
|
|
+ "description": "图片或视频url",
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "symbol": {
|
|
|
|
+ "description": "图片为主图或详情图标志位,1为主图,2为详情图,3为视频",
|
|
|
|
+ "type": "integer"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
"http_model.SendCodeData": {
|
|
"http_model.SendCodeData": {
|
|
"type": "object"
|
|
"type": "object"
|
|
},
|
|
},
|
|
@@ -338,6 +570,119 @@ const docTemplate = `{
|
|
"type": "string"
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ "http_model.ShowProjectData": {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "properties": {
|
|
|
|
+ "Project_id": {
|
|
|
|
+ "description": "项目id",
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "content_type": {
|
|
|
|
+ "description": "内容形式,1代表图文,2代表视频",
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "product_id": {
|
|
|
|
+ "description": "关联商品id",
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "project_detail": {
|
|
|
|
+ "description": "项目详情",
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "project_form": {
|
|
|
|
+ "description": "项目形式,1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创",
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "project_name": {
|
|
|
|
+ "description": "项目名称",
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "project_photos": {
|
|
|
|
+ "description": "项目图片",
|
|
|
|
+ "type": "array",
|
|
|
|
+ "items": {
|
|
|
|
+ "$ref": "#/definitions/http_model.ShowProjectPhoto"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "project_platform": {
|
|
|
|
+ "description": "项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎",
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "project_status": {
|
|
|
|
+ "description": "项目状态,1-7分别代表创建中、待审核、招募中、待支付、失效、执行中、已结案",
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "project_type": {
|
|
|
|
+ "description": "项目类型,1代表全流程项目,2代表专项项目",
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "recruit_ddl": {
|
|
|
|
+ "description": "招募截止时间",
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "recruit_strategys": {
|
|
|
|
+ "description": "定价策略",
|
|
|
|
+ "type": "array",
|
|
|
|
+ "items": {
|
|
|
|
+ "$ref": "#/definitions/http_model.ShowRecruitStrategy"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "talent_type": {
|
|
|
|
+ "description": "达人类型",
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "http_model.ShowProjectPhoto": {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "properties": {
|
|
|
|
+ "photo_uid": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "photo_url": {
|
|
|
|
+ "description": "图片url",
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "http_model.ShowProjectRequest": {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "properties": {
|
|
|
|
+ "Project_id": {
|
|
|
|
+ "description": "项目id",
|
|
|
|
+ "type": "integer"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "http_model.ShowRecruitStrategy": {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "properties": {
|
|
|
|
+ "fee_form": {
|
|
|
|
+ "description": "稿费形式,1-3分别代表自报价、固定稿费、产品置换",
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "followers_low": {
|
|
|
|
+ "description": "达人粉丝数下限",
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "followers_up": {
|
|
|
|
+ "description": "达人粉丝数上限",
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "offer": {
|
|
|
|
+ "description": "报价",
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "recruit_number": {
|
|
|
|
+ "description": "招募数量",
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "strategy_id": {
|
|
|
|
+ "description": "策略id",
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}`
|
|
}`
|