|
@@ -2,6 +2,7 @@ package youngee_talent_model
|
|
|
|
|
|
import (
|
|
import (
|
|
"github.com/gogf/gf/os/gtime"
|
|
"github.com/gogf/gf/os/gtime"
|
|
|
|
+ "github.com/gogf/gf/util/gmeta"
|
|
"youngmini_server/app/model"
|
|
"youngmini_server/app/model"
|
|
)
|
|
)
|
|
|
|
|
|
@@ -20,80 +21,99 @@ type SignSecTaskResp struct {
|
|
}
|
|
}
|
|
|
|
|
|
type SecTaskInfoDetail struct {
|
|
type SecTaskInfoDetail struct {
|
|
- Id int `orm:"id,primary" json:"id"` // 递增id
|
|
|
|
- TaskId string `orm:"task_id" json:"task_id"` // 选品任务id
|
|
|
|
- SelectionId string `orm:"selection_id" json:"selection_id"` // 选品id
|
|
|
|
- ProductId int `orm:"product_id" json:"product_id"`
|
|
|
|
- TalentId string `orm:"talent_id" json:"talent_id"` // 达人id
|
|
|
|
- AccountId int `orm:"account_id" json:"account_id"` // 账号id
|
|
|
|
- TalentPlatformInfoSnap string `orm:"talent_platform_info_snap" json:"talent_platform_info_snap"` // 达人平台信息快照
|
|
|
|
- TalentPersonalInfoSnap string `orm:"talent_personal_info_snap" json:"talent_personal_info_snap"` // 达人个人信息快照
|
|
|
|
- TalentPostAddrSnap string `orm:"talent_post_addr_snap" json:"talent_post_addr_snap"` // 收货地址快照
|
|
|
|
- TaskReward float64 `orm:"task_reward" json:"task_reward"` // 达人赏金
|
|
|
|
- TalentPayment float64 `orm:"talent_payment" json:"talent_payment"` // 达人垫付金额
|
|
|
|
- IsPayPayment int `orm:"is_pay_payment" json:"is_pay_payment"` // 企业是否返样品钱
|
|
|
|
- IsPayReward int `orm:"is_pay_reward" json:"is_pay_reward"` // 企业是否结算悬赏
|
|
|
|
- TaskMode int `orm:"task_mode" json:"task_mode"` // 任务形式,1、2分别表示悬赏任务、纯佣带货',
|
|
|
|
- SampleMode int `orm:"sample_mode" json:"sample_mode"` // 领样形式,1-3分别表示免费领样、垫付买样、不提供样品
|
|
|
|
- TaskStatus int `orm:"task_status" json:"task_status"` // 任务状态 1待选 2已选 3落选
|
|
|
|
- TaskStage int `orm:"task_stage" json:"task_stage"` // 任务阶段,详情见info_sec_task_stage表
|
|
|
|
- CreateDate *gtime.Time `orm:"create_date" json:"create_date"` // 创建时间
|
|
|
|
- SelectDate *gtime.Time `orm:"select_date" json:"select_date"` // 反选时间
|
|
|
|
- DeliveryDate *gtime.Time `orm:"delivery_date" json:"delivery_date"` // 发货时间
|
|
|
|
- CompleteDate *gtime.Time `orm:"complete_date" json:"complete_date"` // 结束时间
|
|
|
|
- WithdrawDate *gtime.Time `orm:"withdraw_date" json:"withdraw_date"` // 提现时间
|
|
|
|
- CompleteStatus int `orm:"complete_status" json:"complete_status"` // 结束方式 1未结束 2正常结束 3反选失败
|
|
|
|
- LogisticsStatus int `orm:"logistics_status" json:"logistics_status"` // 发货状态 1 待发货 2已发货 3 已签收
|
|
|
|
- AssignmentStatus uint `orm:"assignment_status" json:"assignment_status"` // 作业上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过
|
|
|
|
- UpdateAt *gtime.Time `orm:"update_at" json:"update_at"` // 更新时间
|
|
|
|
- WithdrawStatus int `orm:"withdraw_status" json:"withdraw_status"` // 提现状态,1-4分别代表不可提现、可提现、提现中、已提现
|
|
|
|
- LeadTeamId string `orm:"lead_team_id" json:"lead_team_id"` // 作为团长的young之团id,对应younggee_talent_team中的team_id字段
|
|
|
|
- TeamId string `orm:"team_id" json:"team_id"` // 作为团员的young之团id,对应younggee_talent_team中的team_id字段
|
|
|
|
- TeamIncome int `orm:"team_income" json:"team_income"` // young之团团长现金收益
|
|
|
|
- TeamPoint int `orm:"team_point" json:"team_point"` // young之团团长积分收益
|
|
|
|
- SelectionDetail *SelectionDetail //含选品所有信息
|
|
|
|
- FansNum int `orm:"fans_num" json:"fans_num"` // 粉丝数
|
|
|
|
- SaleNum int `orm:"sale_num" json:"sale_num"` // 粉丝数
|
|
|
|
- FreeStage int `orm:"free_stage" json:"free_stage"` // 免费领样阶段,1-5分别代表已申请、已拒绝、待发货、已发货、已收货',
|
|
|
|
- RewardStage int `orm:"reward_stage" json:"reward_stage"` //悬赏阶段,1-2分别代表待结算、已结算',
|
|
|
|
- SaleNumAll int `orm:"sale_num_all" json:"sale_num_all"` //达人对此商品的全部销售量(大于1表示已出单)
|
|
|
|
|
|
+ gmeta.Meta `orm:"table:younggee_sec_task_info"`
|
|
|
|
+ Id int `orm:"id,primary" json:"id"` // 递增id
|
|
|
|
+ TaskId string `orm:"task_id" json:"task_id"` // 选品任务id
|
|
|
|
+ SelectionId string `orm:"selection_id" json:"selection_id"` // 选品id
|
|
|
|
+ ProductId int `orm:"product_id" json:"product_id"`
|
|
|
|
+ TalentId string `orm:"talent_id" json:"talent_id"` // 达人id
|
|
|
|
+ AccountId int `orm:"account_id" json:"account_id"` // 账号id
|
|
|
|
+ PlatformId int `orm:"platform_id" json:"platform_id"` // 平台id
|
|
|
|
+ TalentPlatformInfoSnap string `orm:"talent_platform_info_snap" json:"talent_platform_info_snap"` // 达人平台信息快照
|
|
|
|
+ TalentPersonalInfoSnap string `orm:"talent_personal_info_snap" json:"talent_personal_info_snap"` // 达人个人信息快照
|
|
|
|
+ TalentPostAddrSnap string `orm:"talent_post_addr_snap" json:"talent_post_addr_snap"` // 收货地址快照
|
|
|
|
+ TaskReward float64 `orm:"task_reward" json:"task_reward"` // 达人赏金
|
|
|
|
+ TalentPayment float64 `orm:"talent_payment" json:"talent_payment"` // 达人垫付金额
|
|
|
|
+ IsPayPayment int `orm:"is_pay_payment" json:"is_pay_payment"` // 企业是否返样品钱
|
|
|
|
+ IsPayReward int `orm:"is_pay_reward" json:"is_pay_reward"` // 企业是否结算悬赏
|
|
|
|
+ TaskMode int `orm:"task_mode" json:"task_mode"` // 任务形式,1、2分别表示悬赏任务、纯佣带货',
|
|
|
|
+ SampleMode int `orm:"sample_mode" json:"sample_mode"` // 领样形式,1-3分别表示免费领样、垫付买样、不提供样品
|
|
|
|
+ TaskStatus int `orm:"task_status" json:"task_status"` // 任务状态 1待选 2已选 3落选
|
|
|
|
+ TaskStage int `orm:"task_stage" json:"task_stage"` // 任务阶段,详情见info_sec_task_stage表
|
|
|
|
+ CreateDate *gtime.Time `orm:"create_date" json:"create_date"` // 创建时间
|
|
|
|
+ SelectDate *gtime.Time `orm:"select_date" json:"select_date"` // 反选时间
|
|
|
|
+ DeliveryDate *gtime.Time `orm:"delivery_date" json:"delivery_date"` // 发货时间
|
|
|
|
+ CompleteDate *gtime.Time `orm:"complete_date" json:"complete_date"` // 结束时间
|
|
|
|
+ WithdrawDate *gtime.Time `orm:"withdraw_date" json:"withdraw_date"` // 提现时间
|
|
|
|
+ CompleteStatus int `orm:"complete_status" json:"complete_status"` // 结束方式 1未结束 2正常结束 3反选失败
|
|
|
|
+ LogisticsStatus int `orm:"logistics_status" json:"logistics_status"` // 发货状态 1 待发货 2已发货 3 已签收
|
|
|
|
+ AssignmentStatus uint `orm:"assignment_status" json:"assignment_status"` // 作业上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过
|
|
|
|
+ UpdateAt *gtime.Time `orm:"update_at" json:"update_at"` // 更新时间
|
|
|
|
+ WithdrawStatus int `orm:"withdraw_status" json:"withdraw_status"` // 提现状态,1-4分别代表不可提现、可提现、提现中、已提现
|
|
|
|
+ LeadTeamId string `orm:"lead_team_id" json:"lead_team_id"` // 作为团长的young之团id,对应younggee_talent_team中的team_id字段
|
|
|
|
+ TeamId string `orm:"team_id" json:"team_id"` // 作为团员的young之团id,对应younggee_talent_team中的team_id字段
|
|
|
|
+ TeamIncome int `orm:"team_income" json:"team_income"` // young之团团长现金收益
|
|
|
|
+ TeamPoint int `orm:"team_point" json:"team_point"` // young之团团长积分收益
|
|
|
|
+ FansNum int `orm:"fans_num" json:"fans_num"` // 粉丝数
|
|
|
|
+ SaleNum int `orm:"sale_num" json:"sale_num"` // 30天橱窗销量
|
|
|
|
+ FreeStage int `orm:"free_stage" json:"free_stage"` // 免费领样阶段,1-5分别代表已申请、已拒绝、待发货、已发货、已收货',
|
|
|
|
+ RewardStage int `orm:"reward_stage" json:"reward_stage"` //悬赏阶段,1-2分别代表待结算、已结算',
|
|
|
|
+ SaleActual int `orm:"sale_actual" json:"sale_actual"`
|
|
|
|
+ SaleNumAll int `orm:"sale_num_all" json:"sale_num_all"` //达人对此商品的全部销售量(大于1表示已出单)
|
|
|
|
+ RewardStrategy []*RewardStrategy `orm:"with:selection_id=selection_id"` // 悬赏策略表
|
|
|
|
+ SelectionInfo *model.YounggeeSelectionInfo `orm:"with:selection_id=selection_id"` //选品表
|
|
|
|
+ YounggeeProduct *YounggeeProduct `orm:"with:product_id=product_id"` // 商品基本表
|
|
|
|
+ YounggeeProductPhoto []*YounggeeProductPhoto `orm:"with:product_id=product_id"` // 商品图片表
|
|
|
|
+ PlatformInfo *PlatformInfo `orm:"with:platform_id=platform_id"`
|
|
|
|
+ TaskDdl *gtime.Time `json:"task_ddl"`
|
|
}
|
|
}
|
|
|
|
|
|
type SecTaskInfoWindowDetail struct {
|
|
type SecTaskInfoWindowDetail struct {
|
|
|
|
+ gmeta.Meta `orm:"table:younggee_sec_task_info"`
|
|
Id int `orm:"id,primary" json:"id"` // 递增id
|
|
Id int `orm:"id,primary" json:"id"` // 递增id
|
|
TaskId string `orm:"task_id" json:"task_id"` // 选品任务id
|
|
TaskId string `orm:"task_id" json:"task_id"` // 选品任务id
|
|
SelectionId string `orm:"selection_id" json:"selection_id"` // 选品id
|
|
SelectionId string `orm:"selection_id" json:"selection_id"` // 选品id
|
|
ProductId int `orm:"product_id" json:"product_id"`
|
|
ProductId int `orm:"product_id" json:"product_id"`
|
|
TalentId string `orm:"talent_id" json:"talent_id"` // 达人id
|
|
TalentId string `orm:"talent_id" json:"talent_id"` // 达人id
|
|
AccountId int `orm:"account_id" json:"account_id"` // 账号id
|
|
AccountId int `orm:"account_id" json:"account_id"` // 账号id
|
|
|
|
+ PlatformId int `orm:"platform_id" json:"platform_id"` // 平台id
|
|
TalentPlatformInfoSnap string `orm:"talent_platform_info_snap" json:"talent_platform_info_snap"` // 达人平台信息快照
|
|
TalentPlatformInfoSnap string `orm:"talent_platform_info_snap" json:"talent_platform_info_snap"` // 达人平台信息快照
|
|
TalentPersonalInfoSnap string `orm:"talent_personal_info_snap" json:"talent_personal_info_snap"` // 达人个人信息快照
|
|
TalentPersonalInfoSnap string `orm:"talent_personal_info_snap" json:"talent_personal_info_snap"` // 达人个人信息快照
|
|
- //TalentPostAddrSnap string `orm:"talent_post_addr_snap" json:"talent_post_addr_snap"` // 收货地址快照
|
|
|
|
- TaskReward float64 `orm:"task_reward" json:"task_reward"` // 达人赏金
|
|
|
|
- TalentPayment float64 `orm:"talent_payment" json:"talent_payment"` // 达人垫付金额
|
|
|
|
- IsPayPayment int `orm:"is_pay_payment" json:"is_pay_payment"` // 企业是否返样品钱
|
|
|
|
- IsPayReward int `orm:"is_pay_reward" json:"is_pay_reward"` // 企业是否结算悬赏
|
|
|
|
- TaskMode int `orm:"task_mode" json:"task_mode"` // 任务形式,1、2分别表示纯佣带货、悬赏任务
|
|
|
|
- SampleMode int `orm:"sample_mode" json:"sample_mode"` // 领样形式,1-3分别表示免费领样、垫付买样、不提供样品
|
|
|
|
- TaskStatus int `orm:"task_status" json:"task_status"` // 任务状态 1待选 2已选 3落选
|
|
|
|
- TaskStage int `orm:"task_stage" json:"task_stage"` // 任务阶段,详情见info_sec_task_stage表
|
|
|
|
- CreateDate *gtime.Time `orm:"create_date" json:"create_date"` // 创建时间
|
|
|
|
- SelectDate *gtime.Time `orm:"select_date" json:"select_date"` // 反选时间
|
|
|
|
- DeliveryDate *gtime.Time `orm:"delivery_date" json:"delivery_date"` // 发货时间
|
|
|
|
- CompleteDate *gtime.Time `orm:"complete_date" json:"complete_date"` // 结束时间
|
|
|
|
- WithdrawDate *gtime.Time `orm:"withdraw_date" json:"withdraw_date"` // 提现时间
|
|
|
|
- CompleteStatus int `orm:"complete_status" json:"complete_status"` // 结束方式 1未结束 2正常结束 3反选失败
|
|
|
|
- LogisticsStatus int `orm:"logistics_status" json:"logistics_status"` // 发货状态 1 待发货 2已发货 3 已签收
|
|
|
|
- AssignmentStatus uint `orm:"assignment_status" json:"assignment_status"` // 作业上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过
|
|
|
|
- UpdateAt *gtime.Time `orm:"update_at" json:"update_at"` // 更新时间
|
|
|
|
- WithdrawStatus int `orm:"withdraw_status" json:"withdraw_status"` // 提现状态,1-4分别代表不可提现、可提现、提现中、已提现
|
|
|
|
- LeadTeamId string `orm:"lead_team_id" json:"lead_team_id"` // 作为团长的young之团id,对应younggee_talent_team中的team_id字段
|
|
|
|
- TeamId string `orm:"team_id" json:"team_id"` // 作为团员的young之团id,对应younggee_talent_team中的team_id字段
|
|
|
|
- TeamIncome int `orm:"team_income" json:"team_income"` // young之团团长现金收益
|
|
|
|
- TeamPoint int `orm:"team_point" json:"team_point"` // young之团团长积分收益
|
|
|
|
- SelectionDetail *SelectionDetail //含选品所有信息
|
|
|
|
- FansNum int `orm:"fans_num" json:"fans_num"` // 粉丝数
|
|
|
|
- SaleNum int `orm:"sale_num" json:"sale_num"` // 粉丝数
|
|
|
|
|
|
+ //TalentPostAddrSnap string `orm:"talent_post_addr_snap" json:"talent_post_addr_snap"` // 收货地址快照 加入橱窗不需要收获地址
|
|
|
|
+ TaskReward float64 `orm:"task_reward" json:"task_reward"` // 达人赏金
|
|
|
|
+ TalentPayment float64 `orm:"talent_payment" json:"talent_payment"` // 达人垫付金额
|
|
|
|
+ IsPayPayment int `orm:"is_pay_payment" json:"is_pay_payment"` // 企业是否返样品钱
|
|
|
|
+ IsPayReward int `orm:"is_pay_reward" json:"is_pay_reward"` // 企业是否结算悬赏
|
|
|
|
+ TaskMode int `orm:"task_mode" json:"task_mode"` // 任务形式,1、2分别表示悬赏任务、纯佣带货',
|
|
|
|
+ SampleMode int `orm:"sample_mode" json:"sample_mode"` // 领样形式,1-3分别表示免费领样、垫付买样、不提供样品
|
|
|
|
+ TaskStatus int `orm:"task_status" json:"task_status"` // 任务状态 1待选 2已选 3落选
|
|
|
|
+ TaskStage int `orm:"task_stage" json:"task_stage"` // 任务阶段,详情见info_sec_task_stage表
|
|
|
|
+ CreateDate *gtime.Time `orm:"create_date" json:"create_date"` // 创建时间
|
|
|
|
+ SelectDate *gtime.Time `orm:"select_date" json:"select_date"` // 反选时间
|
|
|
|
+ DeliveryDate *gtime.Time `orm:"delivery_date" json:"delivery_date"` // 发货时间
|
|
|
|
+ CompleteDate *gtime.Time `orm:"complete_date" json:"complete_date"` // 结束时间
|
|
|
|
+ WithdrawDate *gtime.Time `orm:"withdraw_date" json:"withdraw_date"` // 提现时间
|
|
|
|
+ CompleteStatus int `orm:"complete_status" json:"complete_status"` // 结束方式 1未结束 2正常结束 3反选失败
|
|
|
|
+ LogisticsStatus int `orm:"logistics_status" json:"logistics_status"` // 发货状态 1 待发货 2已发货 3 已签收
|
|
|
|
+ AssignmentStatus uint `orm:"assignment_status" json:"assignment_status"` // 作业上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过
|
|
|
|
+ UpdateAt *gtime.Time `orm:"update_at" json:"update_at"` // 更新时间
|
|
|
|
+ WithdrawStatus int `orm:"withdraw_status" json:"withdraw_status"` // 提现状态,1-4分别代表不可提现、可提现、提现中、已提现
|
|
|
|
+ LeadTeamId string `orm:"lead_team_id" json:"lead_team_id"` // 作为团长的young之团id,对应younggee_talent_team中的team_id字段
|
|
|
|
+ TeamId string `orm:"team_id" json:"team_id"` // 作为团员的young之团id,对应younggee_talent_team中的team_id字段
|
|
|
|
+ TeamIncome int `orm:"team_income" json:"team_income"` // young之团团长现金收益
|
|
|
|
+ TeamPoint int `orm:"team_point" json:"team_point"` // young之团团长积分收益
|
|
|
|
+ FansNum int `orm:"fans_num" json:"fans_num"` // 粉丝数
|
|
|
|
+ SaleNum int `orm:"sale_num" json:"sale_num"` // 30天橱窗销量
|
|
|
|
+ FreeStage int `orm:"free_stage" json:"free_stage"` // 免费领样阶段,1-5分别代表已申请、已拒绝、待发货、已发货、已收货',
|
|
|
|
+ RewardStage int `orm:"reward_stage" json:"reward_stage"` //悬赏阶段,1-2分别代表待结算、已结算',
|
|
|
|
+ SaleActual int `orm:"sale_actual" json:"sale_actual"`
|
|
|
|
+ SaleNumAll int `orm:"sale_num_all" json:"sale_num_all"` //达人对此商品的全部销售量(大于1表示已出单)
|
|
|
|
+ RewardStrategy []*RewardStrategy `orm:"with:selection_id=selection_id"` // 悬赏策略表
|
|
|
|
+ SelectionInfo *model.YounggeeSelectionInfo `orm:"with:selection_id=selection_id"` //选品表
|
|
|
|
+ YounggeeProduct *YounggeeProduct `orm:"with:product_id=product_id"` // 商品基本表
|
|
|
|
+ YounggeeProductPhoto []*YounggeeProductPhoto `orm:"with:product_id=product_id"` // 商品图片表
|
|
|
|
+ PlatformInfo *PlatformInfo `orm:"with:platform_id=platform_id"`
|
|
|
|
+ TaskDdl *gtime.Time `json:"task_ddl"`
|
|
}
|
|
}
|
|
|
|
|
|
type SecTaskInfoBrief struct {
|
|
type SecTaskInfoBrief struct {
|