locallife_task_info.go 12 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. package gorm_model
  2. import (
  3. "time"
  4. )
  5. // 种草子任务
  6. type YoungeeLocalTaskInfo struct {
  7. TaskId string `gorm:"column:task_id;type:char(15);primary_key;comment:任务id" json:"task_id"`
  8. LocalId string `gorm:"column:local_id;type:char(10);comment:项目id;NOT NULL" json:"local_id"`
  9. TalentId string `gorm:"column:talent_id;type:char(25);comment:达人id;NOT NULL" json:"talent_id"`
  10. AccountId int `gorm:"column:account_id;type:int(11);comment:账号id;NOT NULL" json:"account_id"`
  11. StrategyId int `gorm:"column:strategy_id;type:int(11);comment:报名选择的招募策略id" json:"strategy_id"`
  12. TalentPlatformInfoSnap string `gorm:"column:talent_platform_info_snap;type:json;comment:达人平台信息快照;NOT NULL" json:"talent_platform_info_snap"`
  13. TalentPersonalInfoSnap string `gorm:"column:talent_personal_info_snap;type:json;comment:达人个人信息快照;NOT NULL" json:"talent_personal_info_snap"`
  14. TalentPostAddrSnap string `gorm:"column:talent_post_addr_snap;type:json;comment:收货地址快照;NOT NULL" json:"talent_post_addr_snap"`
  15. TaskReward float64 `gorm:"column:task_reward;type:decimal(10,2);comment:达人报酬(3.0未用);NOT NULL" json:"task_reward"`
  16. SettleAmount float64 `gorm:"column:settle_amount;type:decimal(10,2);comment:达人实际所得(自动填充)(扣除违约扣款);NOT NULL" json:"settle_amount"`
  17. AllPayment float64 `gorm:"column:all_payment;type:decimal(10,2);comment:企业支付(3.0未用);NOT NULL" json:"all_payment"`
  18. RealPayment float64 `gorm:"column:real_payment;type:decimal(10,2);comment:企业实际支付(加上服务商的服务费)(扣除违约扣款);NOT NULL" json:"real_payment"`
  19. ServiceRate int `gorm:"column:service_rate;type:int(11);comment:服务费率,千分之" json:"service_rate"`
  20. ServiceCharge float64 `gorm:"column:service_charge;type:decimal(10,2);comment:服务费" json:"service_charge"`
  21. RealServiceCharge float64 `gorm:"column:real_service_charge;type:decimal(10,2);comment:服务商实际所得服务费(扣除违约)" json:"real_service_charge"`
  22. FeeForm int `gorm:"column:fee_form;type:tinyint(4);comment:稿费形式,1,2,3分别代表产品置换、一口价、自报价" json:"fee_form"`
  23. ErrBreakRate int `gorm:"column:err_break_rate;type:int(11);default:0;comment:未上传类型违约扣款比例,百分之;NOT NULL" json:"err_break_rate"`
  24. ScriptBreakRate int `gorm:"column:script_break_rate;type:int(11);default:0;comment:脚本上传超时违约扣款比例,百分之;NOT NULL" json:"script_break_rate"`
  25. SketchBreakRate int `gorm:"column:sketch_break_rate;type:int(11);default:0;comment:初稿上传超时违约扣款比例,百分之;NOT NULL" json:"sketch_break_rate"`
  26. LinkBreakRate int `gorm:"column:link_break_rate;type:int(11);default:0;comment:链接上传超时违约扣款比例,百分之;NOT NULL" json:"link_break_rate"`
  27. DataBreakRate int `gorm:"column:data_break_rate;type:int(11);default:0;comment:数据上传超时违约扣款比例,百分之;NOT NULL" json:"data_break_rate"`
  28. TaskStage int `gorm:"column:task_stage;type:tinyint(1);comment:任务阶段,1:已报名, 2:申请成功, 3:申请失败, 4:待预约探店, 5:预约确认中 6: , 7:待传脚本, 8:脚本待审, 9:待传初稿, 10:初稿待审, 11:待传链接, 12:链接待审, 13:待传数据, 14:数据待审, 15:已结案, 16:解约, 17:终止合作(过渡态);NOT NULL" json:"task_stage"`
  29. TaskStatus int `gorm:"column:task_status;type:tinyint(4);default:1;comment:商家任务状态 1待选 2已选 3落选;NOT NULL" json:"task_status"`
  30. LogisticsStatus int `gorm:"column:logistics_status;type:tinyint(1);default:1;comment:发货状态 1 待发货 2已发货 3 已签收" json:"logistics_status"`
  31. BookStatus uint `gorm:"column:book_status;type:tinyint(4) unsigned;default:1;comment:预约探店状态 1-5分别代表待预约、已预约、待修改、已修改、已通过" json:"book_status"`
  32. SketchStatus uint `gorm:"column:sketch_status;type:tinyint(4) unsigned;default:1;comment:初稿上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过" json:"sketch_status"`
  33. LinkStatus uint `gorm:"column:link_status;type:tinyint(4) unsigned;default:1;comment:链接上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过" json:"link_status"`
  34. DataStatus uint `gorm:"column:data_status;type:tinyint(4) unsigned;default:1;comment:数据上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过" json:"data_status"`
  35. CompleteStatus int `gorm:"column:complete_status;type:tinyint(1);default:1;comment:结束方式 1未结束 2正常结束 3反选失败 4被解约" json:"complete_status"`
  36. UpdateAt time.Time `gorm:"column:update_at;type:datetime;comment:更新时间" json:"update_at"`
  37. CreateDate time.Time `gorm:"column:create_date;type:datetime;comment:创建时间,即报名时间;NOT NULL" json:"create_date"`
  38. SelectDate time.Time `gorm:"column:select_date;type:datetime;comment:反选时间,即任务开始执行时间" json:"select_date"`
  39. DeliveryDate time.Time `gorm:"column:delivery_date;type:datetime;comment:发货时间" json:"delivery_date"`
  40. CompleteDate time.Time `gorm:"column:complete_date;type:datetime;comment:结束时间" json:"complete_date"`
  41. WithdrawDate time.Time `gorm:"column:withdraw_date;type:datetime;comment:提现时间" json:"withdraw_date"`
  42. CurDefaultType int `gorm:"column:cur_default_type;type:tinyint(4);comment:当前违约类型 0未违约 1脚本超时违约 2脚本未上传违约 3初稿超时违约 4初稿未上传违约 5链接超时违约 6链接未上传违约 7数据超时违约 8数据未上传违约 9解约待处理 10解约" json:"cur_default_type"`
  43. WithdrawStatus int `gorm:"column:withdraw_status;type:tinyint(4);default:1;comment:提现状态,1-4分别代表不可提现、可提现、提现中、已提现" json:"withdraw_status"`
  44. LeadTeamId string `gorm:"column:lead_team_id;type:char(10);comment:作为团长的young之团id,对应younggee_talent_team中的team_id字段" json:"lead_team_id"`
  45. TeamId string `gorm:"column:team_id;type:char(10);comment:作为团员的young之团id,对应younggee_talent_team中的team_id字段" json:"team_id"`
  46. SettleStatus int `gorm:"column:settle_status;type:tinyint(4);default:1;comment:结算状态,1、2分别表示待结算、已结算" json:"settle_status"`
  47. TeamIncome float64 `gorm:"column:team_income;type:decimal(10,2);comment:young之团团长现金收益" json:"team_income"`
  48. TeamPoint int `gorm:"column:team_point;type:int(11);comment:young之团团长积分收益" json:"team_point"`
  49. CurBreakAt time.Time `gorm:"column:cur_break_at;type:datetime;comment:当前阶段截止时间" json:"cur_break_at"`
  50. SupplierId int `gorm:"column:supplier_id;type:int(11);default:0;comment:服务商ID" json:"supplier_id"`
  51. SupplierStatus int `gorm:"column:supplier_status;type:int(11);default:0;comment:服务商任务状态 0表示达人来源非服务商 1待选 2已选 3落选" json:"supplier_status"`
  52. DraftFee float64 `gorm:"column:draft_fee;type:decimal(10,2);default:0.00;comment:达人稿费,达人所见的稿费金额" json:"draft_fee"`
  53. SignedTime time.Time `gorm:"column:signed_time;type:datetime;comment:签收时间" json:"signed_time"`
  54. FansNum int `gorm:"column:fans_num;type:int(11);comment:粉丝数" json:"fans_num"`
  55. VoteAvg int `gorm:"column:vote_avg;type:int(11);comment:平均点赞数" json:"vote_avg"`
  56. CommitAvg int `gorm:"column:commit_avg;type:int(11);comment:平均评论数" json:"commit_avg"`
  57. BOperator string `gorm:"column:b_operator;type:varchar(255);comment:商家确定达人操作人ID" json:"b_operator"`
  58. BOperatorType int `gorm:"column:b_operator_type;type:int(11);default:0;comment:商家操作人类型,1商家用户,2商家子账号,3管理后台" json:"b_operator_type"`
  59. SOperator int `gorm:"column:s_operator;type:int(11);default:0;comment:服务商提报达人操作人ID" json:"s_operator"`
  60. SOperatorType int `gorm:"column:s_operator_type;type:int(11);default:0;comment:服务商操作人类型,1服务商主账号,2服务商子账号,3管理后台" json:"s_operator_type"`
  61. OpenId string `gorm:"column:open_id;type:varchar(255);comment:达人报名的快手唯一标识" json:"open_id"`
  62. SLocalLifeId int `gorm:"column:s_local_life_id;type:int(11);comment:服务商种草任务ID" json:"s_local_life_id"`
  63. SupportFee float64 `gorm:"column:support_fee;type:decimal(10,2);comment:提报价格(达人自报价经过计算后,)" json:"support_fee"`
  64. SketchMissingTime time.Time `gorm:"column:sketch_missing_time;type:datetime;comment:未传初稿违约时间" json:"sketch_missing_time"`
  65. SketchMissingStatus int `gorm:"column:sketch_missing_status;type:int(11);default:0;comment:未传初稿违约状态,0无违约,1有违约" json:"sketch_missing_status"`
  66. LinkMissingTime time.Time `gorm:"column:link_missing_time;type:datetime;comment:未发作品违约时间" json:"link_missing_time"`
  67. LinkMissingStatus int `gorm:"column:link_missing_status;type:int(11);default:0;comment:未发作品违约状态,0无违约,1有违约" json:"link_missing_status"`
  68. DataMissingTime time.Time `gorm:"column:data_missing_time;type:datetime;comment:未传数据违约时间" json:"data_missing_time"`
  69. DataMissingStatus int `gorm:"column:data_missing_status;type:int(11);default:0;comment:未传数据违约状态,0无违约,1有违约" json:"data_missing_status"`
  70. TerminateOperatorType int `gorm:"column:terminate_operator_type;type:int(11);comment:终止合作操作人类型,1商家用户,2商家子账号,3管理后台" json:"terminate_operator_type"`
  71. TerminateOperator string `gorm:"column:terminate_operator;type:varchar(255);comment:终止合作操作人ID" json:"terminate_operator"`
  72. TerminateReason string `gorm:"column:terminate_reason;type:varchar(255);comment:终止理由" json:"terminate_reason"`
  73. TerminateTime time.Time `gorm:"column:terminate_time;type:datetime;comment:终止合作时间" json:"terminate_time"`
  74. CancelOperatorType int `gorm:"column:cancel_operator_type;type:int(11);comment:解约操作人类型,1商家用户,2商家子账号,3管理后台" json:"cancel_operator_type"`
  75. CancelOperator string `gorm:"column:cancel_operator;type:varchar(255);comment:解约操作人ID" json:"cancel_operator"`
  76. CancelReason string `gorm:"column:cancel_reason;type:varchar(255);comment:解约原因" json:"cancel_reason"`
  77. CancelTime time.Time `gorm:"column:cancel_time;type:datetime;comment:解约时间" json:"cancel_time"`
  78. PlatformId int `gorm:"column:platform_id;type:int(11);comment:平台" json:"platform_id"`
  79. City string `gorm:"column:city;type:varchar(255);comment:城市" json:"city"`
  80. }
  81. func (m *YoungeeLocalTaskInfo) TableName() string {
  82. return "youngee_local_task_info"
  83. }