package sectask import ( "github.com/gogf/gf/os/gtime" "youngmini_server/app/model/youngee_talent_model" _ "youngmini_server/app/model/youngee_talent_model" ) type ListSecTaskReq struct { TaskStage int `json:"task_stage"` } type ListSecTaskTabReq struct { TabStage int `json:"tab_stage"` } type ListSecTaskRes struct { Count int `json:"count"` //任务列表有几个 SecTask []*ListSecTaskSql `json:"sec_task"` //这几个对应的sectask信息 //SelectionDetail []*youngee_talent_model.SelectionDetail //可动态改变的详细的selectiondetail } type ListSecTaskTabRes struct { Msg string `json:"msg"` Count int `json:"count"` //任务列表有几个 SecTaskTable []youngee_talent_model.SecTaskInfoDetail //这几个对应的sectask信息 } type ListSecTaskTabSql struct { TaskId string `json:"task_id"` // 选品任务id SelectionId string `json:"selection_id"` // 选品id ProductId int `json:"product_id"` // 商品id TalentId string `json:"talent_id"` // 达人id RewardStrategy []*youngee_talent_model.RewardStrategy `orm:"with:selection_id=selection_id"` // 悬赏策略表 SecTaskTable *youngee_talent_model.SecTaskInfoDetail `orm:"with:task_id=task_id"` ProductPhotoSnap string `json:"product_photo_snap"` YounggeeProductPhoto []*youngee_talent_model.YounggeeProductPhoto // 商品图片表 TaskDdl *gtime.Time `json:"task_ddl"` FreeStage int `json:"free_stage" ` // 免费领样阶段,1-5分别代表已申请、已拒绝、待发货、已发货、已收货', } type ListSecTaskSql struct { TaskId string `json:"task_id"` // 选品任务id SelectionId string `json:"selection_id"` // 选品id ProductId int `json:"product_id"` // 商品id TalentId string `json:"talent_id"` // 达人id AccountId int `json:"account_id"` // 账号id TalentPlatformInfoSnap string `json:"talent_platform_info_snap"` // 达人平台信息快照 TalentPersonalInfoSnap string `json:"talent_personal_info_snap"` // 达人个人信息快照 TalentPostAddrSnap string `json:"talent_post_addr_snap"` // 收货地址快照 TaskReward float64 `json:"task_reward"` // 达人赏金 TalentPayment float64 `json:"talent_payment"` // 达人垫付金额 IsPayPayment int `json:"is_pay_payment"` // 企业是否返样品钱 IsPayReward int `json:"is_pay_reward"` // 企业是否结算悬赏 TaskMode int `json:"task_mode"` // 任务形式,1、2分别表示纯佣带货、悬赏任务 SampleMode int `json:"sample_mode"` // 领样形式,1-3分别表示免费领样、垫付买样、不提供样品 TaskStatus int `json:"task_status"` // 任务状态 1待选 2已选 3落选 TaskStage int `json:"task_stage"` // 任务阶段,详情见info_sec_task_stage表 CreateDate *gtime.Time `json:"create_date"` // 创建时间 SelectDate *gtime.Time `json:"select_date"` // 反选时间 DeliveryDate *gtime.Time `json:"delivery_date"` // 发货时间 CompleteDate *gtime.Time `json:"complete_date"` // 结束时间 WithdrawDate *gtime.Time `json:"withdraw_date"` // 提现时间 CompleteStatus int `json:"complete_status"` // 结束方式 1未结束 2正常结束 3反选失败 LogisticsStatus int `json:"logistics_status"` // 发货状态 1 待发货 2已发货 3 已签收 AssignmentStatus uint `json:"assignment_status"` // 作业上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过 UpdateAt *gtime.Time `json:"update_at"` // 更新时间 WithdrawStatus int `json:"withdraw_status"` // 提现状态,1-4分别代表不可提现、可提现、提现中、已提现 LeadTeamId string `json:"lead_team_id"` // 作为团长的young之团id,对应younggee_talent_team中的team_id字段 TeamId string `json:"team_id"` // 作为团员的young之团id,对应younggee_talent_team中的team_id字段 TeamIncome float64 `json:"team_income"` // young之团团长现金收益 TeamPoint int `json:"team_point"` // young之团团长积分收益 RewardStrategy []*youngee_talent_model.RewardStrategy `orm:"with:selection_id=selection_id"` // 悬赏策略表 SecTaskTable *youngee_talent_model.SecTaskInfoDetail `orm:"with:task_id=task_id"` SaleActual int `json:"sale_actual"` //达人带出此商品的有效销量 PlatformIconUrl string `json:"platform_icon_url"` PlatformName string `json:"platform_name"` PlatformNickName string `json:"platform_nick_name"` SelectionName string `json:"selection_name"` ProductPhotoSnap string `json:"product_photo_snap"` //YounggeeProductPhoto *[]model.YounggeeProductPhoto // 商品图片表 TaskDdl *gtime.Time `json:"task_ddl"` FreeStage int `json:"free_stage" ` // 免费领样阶段,1-5分别代表已申请、已拒绝、待发货、已发货、已收货', } type UpdateStageReq struct { TaskId string `json:"task_id"` // 选品任务id TaskStage int `json:"task_stage"` // 任务阶段,详情见info_sec_task_stage表 AssignmentStatus uint `json:"assignment_status"` // 作业上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过 RewardStage int `json:"reward_stage"` } type LogisticsDetail struct { AddressSnap string `json:"address_snap"` LogisticsContext *youngee_talent_model.KdState `json:"logistics_context"` LogisticsCompany string `json:"logistics_company"` LogisticsNumber string `json:"logistics_number"` }