|
@@ -6,21 +6,28 @@ import (
|
|
|
)
|
|
|
|
|
|
type YoungeeTaskInfo struct {
|
|
|
- TaskID int `gorm:"column:task_id;primary_key;AUTO_INCREMENT"` // 任务id
|
|
|
- ProjectID int `gorm:"column:project_id;NOT NULL"` // 项目id
|
|
|
- AccountID int `gorm:"column:account_id;NOT NULL"` // 账号id
|
|
|
- TalentPlatformInfoSnap string `gorm:"column:talent_platform_info_snap;NOT NULL"` // 达人平台信息快照
|
|
|
- TalentPersonalInfoSnap string `gorm:"column:talent_personal_info_snap;NOT NULL"` // 达人个人信息快照
|
|
|
- TalentPostAddrSnap string `gorm:"column:talent_post_addr_snap;NOT NULL"` // 收货地址快照
|
|
|
- StrategyID int `gorm:"column:strategy_id"` // 报名选择的招募策略id
|
|
|
- TaskReward int64 `gorm:"column:task_reward"` // 任务奖励金额
|
|
|
- SettleAmount int64 `gorm:"column:settle_amount;NOT NULL"` // 待结算金额(任务奖励扣除违规扣款)
|
|
|
- TaskStatus int `gorm:"column:task_status;default:1;NOT NULL"` // 任务状态 1待选 2已选 3落选
|
|
|
- CreateDate time.Time `gorm:"column:create_date;NOT NULL"` // 创建时间
|
|
|
- SelectDate time.Time `gorm:"column:select_date"` // 反选时间
|
|
|
- CompleteStatus int `gorm:"column:complete_status;default:1;NOT NULL"` // 结束方式 1未结束 2正常结束 3反选失败 4被解约
|
|
|
- CompleteDate time.Time `gorm:"column:complete_date"` // 结束时间
|
|
|
- TaskStage int `gorm:"column:task_stage;NOT NULL"` // 任务阶段
|
|
|
+ TaskId int `gorm:"column:task_id;type:int(11);primary_key;AUTO_INCREMENT;comment:任务id" json:"task_id"`
|
|
|
+ ProjectId int `gorm:"column:project_id;type:int(11);comment:项目id;NOT NULL" json:"project_id"`
|
|
|
+ TalentId string `gorm:"column:talent_id;type:varchar(25);comment:达人id;NOT NULL" json:"talent_id"`
|
|
|
+ AccountId int `gorm:"column:account_id;type:int(11);comment:账号id;NOT NULL" json:"account_id"`
|
|
|
+ TalentPlatformInfoSnap string `gorm:"column:talent_platform_info_snap;type:json;comment:达人平台信息快照;NOT NULL" json:"talent_platform_info_snap"`
|
|
|
+ TalentPersonalInfoSnap string `gorm:"column:talent_personal_info_snap;type:json;comment:达人个人信息快照;NOT NULL" json:"talent_personal_info_snap"`
|
|
|
+ TalentPostAddrSnap string `gorm:"column:talent_post_addr_snap;type:json;comment:收货地址快照;NOT NULL" json:"talent_post_addr_snap"`
|
|
|
+ StrategyId int `gorm:"column:strategy_id;type:int(11);comment:报名选择的招募策略id" json:"strategy_id"`
|
|
|
+ TaskReward float64 `gorm:"column:task_reward;type:float;comment:达人报酬;NOT NULL" json:"task_reward"`
|
|
|
+ SettleAmount float64 `gorm:"column:settle_amount;type:float;comment:达人实际所得(扣除违约扣款);NOT NULL" json:"settle_amount"`
|
|
|
+ AllPayment float64 `gorm:"column:all_payment;type:float;comment:企业支付;NOT NULL" json:"all_payment"`
|
|
|
+ RealPayment float64 `gorm:"column:real_payment;type:float;comment:企业实际支付(扣除违约扣款);NOT NULL" json:"real_payment"`
|
|
|
+ Penalty int `gorm:"column:penalty;type:int(11);comment:违约扣款比例,百分之;NOT NULL" json:"penalty"`
|
|
|
+ FeeForm int `gorm:"column:fee_form;type:tinyint(4);comment:稿费形式,1,2,3分别代表产品置换、固定稿费、自报价;NOT NULL" json:"fee_form"`
|
|
|
+ ServiceCharge float64 `gorm:"column:service_charge;type:float;comment:服务费" json:"service_charge"`
|
|
|
+ ServiceRate int `gorm:"column:service_rate;type:int(11);comment:服务费率,千分之" json:"service_rate"`
|
|
|
+ TaskStatus int `gorm:"column:task_status;type:tinyint(4);default:1;comment:任务状态 1待选 2已选 3落选;NOT NULL" json:"task_status"`
|
|
|
+ TaskStage int `gorm:"column:task_stage;type:tinyint(1);comment:任务阶段;NOT NULL" json:"task_stage"`
|
|
|
+ CreateDate time.Time `gorm:"column:create_date;type:datetime;comment:创建时间;NOT NULL" json:"create_date"`
|
|
|
+ SelectDate time.Time `gorm:"column:select_date;type:datetime;comment:反选时间" json:"select_date"`
|
|
|
+ CompleteStatus int `gorm:"column:complete_status;type:tinyint(1);default:1;comment:结束方式 1未结束 2正常结束 3反选失败 4被解约;NOT NULL" json:"complete_status"`
|
|
|
+ CompleteDate time.Time `gorm:"column:complete_date;type:datetime;comment:结束时间" json:"complete_date"`
|
|
|
}
|
|
|
|
|
|
func (m *YoungeeTaskInfo) TableName() string {
|