Procházet zdrojové kódy

Merge branch 'develop' of 139.9.53.143:HolaBIP/youngee_b_api into develop

shenzekai před 2 roky
rodič
revize
2203cc6c89

+ 1 - 1
consts/project.go

@@ -22,7 +22,7 @@ func GetProjectStatus(status int64) string {
 }
 
 var ProjectPlatformMap = map[int64]string{
-	1: "小红书",
+	1: "红book",
 	2: "抖音",
 	3: "微博",
 	4: "快手",

+ 1 - 1
docs/docs.go

@@ -792,7 +792,7 @@ const docTemplate = `{
                     }
                 },
                 "project_platform": {
-                    "description": "项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎",
+                    "description": "项目平台,1-7分别代表红book、抖音、微博、快手、b站、大众点评、知乎",
                     "type": "string"
                 },
                 "project_status": {

+ 2 - 2
docs/swagger.json

@@ -780,7 +780,7 @@
                     }
                 },
                 "project_platform": {
-                    "description": "项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎",
+                    "description": "项目平台,1-7分别代表红book、抖音、微博、快手、b站、大众点评、知乎",
                     "type": "string"
                 },
                 "project_status": {
@@ -859,4 +859,4 @@
             }
         }
     }
-}
+}

+ 1 - 1
docs/swagger.yaml

@@ -290,7 +290,7 @@ definitions:
           $ref: '#/definitions/http_model.ShowProjectPhoto'
         type: array
       project_platform:
-        description: 项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
+        description: 项目平台,1-7分别代表红book、抖音、微博、快手、b站、大众点评、知乎
         type: string
       project_status:
         description: 项目状态,1-7分别代表创建中、待审核、招募中、待支付、失效、执行中、已结案

+ 10 - 11
model/gorm_model/info_pricing_strategy.go

@@ -6,18 +6,18 @@ import (
 )
 
 type InfoPricingStrategy struct {
-	ID            int64       `gorm:"column:id;primary_key;AUTO_INCREMENT"` //  id
-	ProjectType   int64       `gorm:"column:project_type;NOT NULL"`         // 项目类型,0表示不限,1为全流程项目
+	ID            int64     `gorm:"column:id;primary_key;AUTO_INCREMENT"` //  id
+	ProjectType   int64     `gorm:"column:project_type;NOT NULL"`         // 项目类型,0表示不限,1为全流程项目
 	StrategyId    string    `gorm:"column:strategyId;NOT NULL"`           // 定价策略编号
-	FeeForm       int64       `gorm:"column:fee_form;NOT NULL"`             // 稿费形式,1,2,3分别代表产品置换、固定稿费、自报价
-	Platform      int64       `gorm:"column:platform;NOT NULL"`             // 项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
-	FansLow       int64       `gorm:"column:fans_low;NOT NULL"`             // 对应粉丝量下限
-	FansUp        int64       `gorm:"column:fans_up;NOT NULL"`              // 对应粉丝量上限
-	ServiceCharge float64       `gorm:"column:service_charge"`                // 服务费,稿费形式为产品置换时填写,可以为空
+	FeeForm       int64     `gorm:"column:fee_form;NOT NULL"`             // 稿费形式,1,2,3分别代表产品置换、固定稿费、自报价
+	Platform      int64     `gorm:"column:platform;NOT NULL"`             // 项目平台,1-7分别代表红book、抖音、微博、快手、b站、大众点评、知乎
+	FansLow       int64     `gorm:"column:fans_low;NOT NULL"`             // 对应粉丝量下限
+	FansUp        int64     `gorm:"column:fans_up;NOT NULL"`              // 对应粉丝量上限
+	ServiceCharge float64   `gorm:"column:service_charge"`                // 服务费,稿费形式为产品置换时填写,可以为空
 	BaseOffer     float64   `gorm:"column:base_offer"`                    // 基础报价
-	Status        int64       `gorm:"column:status;NOT NULL"`               // 定价策略当前状态,0表示正常,1表示禁用
-	ServiceRate   int64       `gorm:"column:service_rate"`                  // 服务费率*1000,稿费形式为固定稿费和自报价时填写,可以为空
-	UpdateID      int64       `gorm:"column:update_id"`                     // 修改管理人员id,对应user表中主键
+	Status        int64     `gorm:"column:status;NOT NULL"`               // 定价策略当前状态,0表示正常,1表示禁用
+	ServiceRate   int64     `gorm:"column:service_rate"`                  // 服务费率*1000,稿费形式为固定稿费和自报价时填写,可以为空
+	UpdateID      int64     `gorm:"column:update_id"`                     // 修改管理人员id,对应user表中主键
 	UpdateAt      time.Time `gorm:"column:update_at"`                     // 修改时间
 	CreateAt      time.Time `gorm:"column:create_at;NOT NULL"`            // 创建时间
 }
@@ -25,4 +25,3 @@ type InfoPricingStrategy struct {
 func (m *InfoPricingStrategy) TableName() string {
 	return "info_pricing_strategy"
 }
-

+ 2 - 2
model/gorm_model/project.go

@@ -10,7 +10,7 @@ type ProjectInfo struct {
 	ProjectName       string     `gorm:"column:project_name"`                          // 项目名称
 	ProjectStatus     int64      `gorm:"column:project_status"`                        // 项目状态,1-10分别代表创建中、待审核、审核通过、招募中、招募完毕、待支付、已支付、失效、执行中、已结案
 	ProjectType       int64      `gorm:"column:project_type"`                          // 项目类型,1代表全流程项目,2代表专项项目
-	ProjectPlatform   int64      `gorm:"column:project_platform"`                      // 项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
+	ProjectPlatform   int64      `gorm:"column:project_platform"`                      // 项目平台,1-7分别代表红book、抖音、微博、快手、b站、大众点评、知乎
 	ProjectForm       int64      `gorm:"column:project_form"`                          // 项目形式,1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创
 	TalentType        string     `gorm:"column:talent_type"`                           // 达人类型
 	RecruitDdl        *time.Time `gorm:"column:recruit_ddl"`                           // 招募截止时间
@@ -33,7 +33,7 @@ type ProjectInfo struct {
 	FailReason        int64      `gorm:"column:fail_reason"`                           // 失效原因,1、2分别表示逾期未支付、项目存在风险
 	PassAt            *time.Time `gorm:"column:pass_at"`                               // 审核通过时间
 	FinishAt          *time.Time `gorm:"column:finish_at"`                             // 结案时间
-	EstimatedCost     float64     `gorm:"column:estimated_cost"`                        // 预估成本
+	EstimatedCost     float64    `gorm:"column:estimated_cost"`                        // 预估成本
 	IsRead            int64      `gorm:"column:is_read"`                               // 是否已读
 }
 

+ 1 - 1
model/http_model/GetServiceFee.go

@@ -4,7 +4,7 @@ type GetServiceChargeRequest struct {
 	FollowersLow int64 `json:"followers_low"` // 达人粉丝数下限
 	FollowersUp  int64 `json:"followers_up"`  // 达人粉丝数上限
 	FeeForm      int64 `json:"fee_form"`      // 稿费形式
-	Platform     int64 `json:"platform"`      // 项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
+	Platform     int64 `json:"platform"`      // 项目平台,1-7分别代表红book、抖音、微博、快手、b站、大众点评、知乎
 }
 
 type ServiceChargeData struct {

+ 1 - 1
model/http_model/project_create.go

@@ -20,7 +20,7 @@ type CreateProjectRequest struct {
 	ProjectName      string                  `json:"project_name"`      // 项目名称
 	ProjectStatus    int64                   `json:"project_status"`    // 项目状态,1-7分别代表创建中、待审核、招募中、待支付、失效、执行中、已结案
 	ProjectType      int64                   `json:"project_type"`      // 项目类型,1代表全流程项目,2代表专项项目
-	ProjectPlatform  int64                   `json:"project_platform"`  // 项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
+	ProjectPlatform  int64                   `json:"project_platform"`  // 项目平台,1-7分别代表红book、抖音、微博、快手、b站、大众点评、知乎
 	ProjectForm      int64                   `json:"project_form"`      // 项目形式,1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创
 	TalentType       string                  `json:"talent_type"`       // 达人类型
 	RecruitDdl       string                  `json:"recruit_ddl"`       // 招募截止时间

+ 1 - 1
model/http_model/project_show.go

@@ -26,7 +26,7 @@ type ShowProjectData struct {
 	ProjectName      string                `json:"project_name"`      // 项目名称
 	ProjectStatus    string                `json:"project_status"`    // 项目状态,1-7分别代表创建中、待审核、招募中、待支付、失效、执行中、已结案
 	ProjectType      string                `json:"project_type"`      // 项目类型,1代表全流程项目,2代表专项项目
-	ProjectPlatform  string                `json:"project_platform"`  // 项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
+	ProjectPlatform  string                `json:"project_platform"`  // 项目平台,1-7分别代表红book、抖音、微博、快手、b站、大众点评、知乎
 	ProjectForm      string                `json:"project_form"`      // 项目形式,1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创
 	TalentType       string                `json:"talent_type"`       // 达人类型
 	RecruitDdl       time.Time             `json:"recruit_ddl"`       // 招募截止时间

+ 1 - 0
service/project.go

@@ -80,6 +80,7 @@ func (*project) Create(ctx context.Context, newProject http_model.CreateProjectR
 			AutoTaskID:      conv.MustInt64(AutoTaskID),
 			AutoDefaultID:   conv.MustInt64(AutoDefaultID),
 			EstimatedCost:   ECost,
+			IsRead:          0,
 		}
 	} else {
 		projectInfo = gorm_model.ProjectInfo{