task_info.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. package youngee_talent_model
  2. import (
  3. "github.com/gogf/gf/util/gmeta"
  4. "youngmini_server/app/model"
  5. "github.com/gogf/gf/os/gtime"
  6. )
  7. // type YoungeeTaskInfo struct {
  8. // gmeta.Meta `orm:"table:youngee_task_info"`
  9. // TaskId string `json:"task_id"` // 任务id
  10. // ProjectId string `json:"project_id"` // 项目id
  11. // TalentId string `json:"talent_id"` // 达人id
  12. // OpenId string `json:"open_id"` //快手唯一标识
  13. // TalentPlatformInfoSnap string `json:"talent_platform_info_snap"` // 达人平台信息快照
  14. // TalentPersonalInfoSnap string `json:"talent_personal_info_snap"` // 达人个人信息快照
  15. // TalentPostAddrSnap string `json:"talent_post_addr_snap"` // 收货地址快照
  16. // StrategyId int `json:"strategy_id"` // 报名选择的招募策略id
  17. // TaskReward float64 `json:"task_reward"` // 达人报酬
  18. // SettleAmount float64 `json:"settle_amount"` // 达人实际所得(扣除违约扣款)
  19. // AllPayment float64 `json:"all_payment"` // 企业支付
  20. // RealPayment float64 `json:"real_payment"` // 企业实际支付(扣除违约扣款)
  21. // Penalty int `json:"penalty"` // 违约扣款比例,百分之
  22. // FeeForm int `json:"fee_form"` // 稿费形式,1,2,3分别代表产品置换、固定稿费、自报价
  23. // ServiceCharge float64 `json:"service_charge"` // 服务费
  24. // ServiceRate int `json:"service_rate"` // 服务费率,千分之
  25. // TaskStatus int `json:"task_status"` // 任务状态 1待选 2已选 3落选
  26. // TaskStage int `json:"task_stage"` // 任务阶段
  27. // CreateDate *gtime.Time `json:"create_date"` // 创建时间
  28. // SelectDate *gtime.Time `json:"select_date"` // 反选时间
  29. // CompleteStatus int `json:"complete_status"` // 结束方式 1未结束 2正常结束 3反选失败 4被解约
  30. // CompleteDate *gtime.Time `json:"complete_date"` // 结束时间
  31. // }
  32. type YoungeeTaskInfo struct {
  33. gmeta.Meta `orm:"table:youngee_task_info"`
  34. TaskId string `json:"task_id"` // 任务ID
  35. ProjectId string `json:"project_id"` // 项目ID
  36. TalentId string `json:"talent_id"` // 达人ID
  37. AccountId int `json:"account_id"` // 账号ID
  38. OpenId string `json:"open_id"` // 快手唯一标识
  39. StrategyId int `json:"strategy_id"` // 报名选择的招募策略ID
  40. TalentPlatformInfoSnap string `json:"talent_platform_info_snap"` // 达人平台信息快照
  41. TalentPersonalInfoSnap string `json:"talent_personal_info_snap"` // 达人个人信息快照
  42. TalentPostAddrSnap string `json:"talent_post_addr_snap"` // 收货地址快照
  43. TaskReward float64 `json:"task_reward"` // 达人报酬
  44. SettleAmount float64 `json:"settle_amount"` // 达人实际所得(扣除违约扣款)
  45. AllPayment float64 `json:"all_payment"` // 企业支付总额
  46. RealPayment float64 `json:"real_payment"` // 企业实际支付(扣除违约扣款)
  47. ServiceRate float64 `json:"service_rate"` // 服务费率(千分比)
  48. ServiceCharge float64 `json:"service_charge"` // 服务费
  49. FeeForm int `json:"fee_form"` // 稿费形式 1: 产品置换 2: 固定稿费 3: 自报价
  50. ErrBreakRate int `json:"err_break_rate"` // 未上传类型违约扣款比例(百分比)
  51. ScriptBreakRate int `json:"script_break_rate"` // 脚本超时违约扣款比例(百分比)
  52. SketchBreakRate int `json:"sketch_break_rate"` // 初稿超时违约扣款比例(百分比)
  53. LinkBreakRate int `json:"link_break_rate"` // 链接超时违约扣款比例(百分比)
  54. DataBreakRate int `json:"data_break_rate"` // 数据超时违约扣款比例(百分比)
  55. TaskStage int `json:"task_stage"` // 任务阶段
  56. TaskStatus int `json:"task_status"` // 商家任务状态 1: 待选 2: 已选 3: 落选
  57. LogisticsStatus int `json:"logistics_status"` // 发货状态 1: 待发货 2: 已发货 3: 已签收
  58. ScriptStatus int `json:"script_status"` // 脚本上传状态 1-5 表示各阶段
  59. SketchStatus int `json:"sketch_status"` // 初稿上传状态 1-5 表示各阶段
  60. LinkStatus int `json:"link_status"` // 链接上传状态 1-5 表示各阶段
  61. DataStatus int `json:"data_status"` // 数据上传状态 1-5 表示各阶段
  62. CompleteStatus int `json:"complete_status"` // 结束方式 1: 未结束 2: 正常结束 3: 反选失败 4: 被解约
  63. UpdateAt *gtime.Time `json:"update_at"` // 更新时间
  64. CreateDate *gtime.Time `json:"create_date"` // 创建时间
  65. SelectDate *gtime.Time `json:"select_date"` // 反选时间
  66. DeliveryDate *gtime.Time `json:"delivery_date"` // 发货时间
  67. CompleteDate *gtime.Time `json:"complete_date"` // 结束时间
  68. WithdrawDate *gtime.Time `json:"withdraw_date"` // 提现时间
  69. CurDefaultType int `json:"cur_default_type"` // 当前处于的违约类型
  70. WithdrawStatus int `json:"withdraw_status"` // 提现状态 1-4 表示不同状态
  71. LeadTeamId string `json:"lead_team_id"` // 团长young之团ID
  72. TeamId string `json:"team_id"` // 团员young之团ID
  73. SettleStatus int `json:"settle_status"` // 结算状态 1: 待结算 2: 已结算
  74. TeamIncome float64 `json:"team_income"` // 团长现金收益
  75. TeamPoint int `json:"team_point"` // 团长积分收益
  76. CurBreakAt *gtime.Time `json:"cur_break_at"` // 当前阶段截止时间
  77. SupplierId int `json:"supplier_id"` // 服务商ID
  78. SupplierStatus int `json:"supplier_status"` // 服务商任务状态
  79. DraftFee float64 `json:"draft_fee"` // 达人稿费
  80. SupportFee float64 `json:"support_fee"` //提报价格
  81. SignedTime *gtime.Time `json:"signed_time"` // 签收时间
  82. FansNum int `json:"fans_num"` // 粉丝数
  83. VoteAvg int `json:"vote_avg"` // 平均点赞数
  84. CommitAvg int `json:"commit_avg"` // 平均评论数
  85. BOperator string `json:"b_operator"` // 商家确定达人操作人ID
  86. BOperatorType int `json:"b_operator_type"` // 商家操作人类型
  87. SOperator int `json:"s_operator"` // 服务商提报达人操作人ID
  88. SOperatorType int `json:"s_operator_type"` // 服务商操作人类型
  89. SProjectId int `json:"s_project_id"` // 服务商种草任务ID
  90. ProjectDetail *ProjectDetail `json:"project_detail"` //项目详情
  91. }
  92. type YoungeeLocalTaskInfo struct {
  93. gmeta.Meta `orm:"table:youngee_local_task_info"`
  94. TaskId string `json:"task_id"` // 任务ID
  95. LocalId string `json:"local_id"` // 项目ID
  96. TalentId string `json:"talent_id"` // 达人ID
  97. AccountId int `json:"account_id"` // 账号ID
  98. OpenId string `json:"open_id"` // 快手唯一标识
  99. StrategyId int `json:"strategy_id"` // 报名选择的招募策略ID
  100. TalentPlatformInfoSnap string `json:"talent_platform_info_snap"` // 达人平台信息快照
  101. TalentPersonalInfoSnap string `json:"talent_personal_info_snap"` // 达人个人信息快照
  102. TalentPostAddrSnap string `json:"talent_post_addr_snap"` // 收货地址快照
  103. TaskReward float64 `json:"task_reward"` // 达人报酬
  104. SettleAmount float64 `json:"settle_amount"` // 达人实际所得(扣除违约扣款)
  105. AllPayment float64 `json:"all_payment"` // 企业支付总额
  106. RealPayment float64 `json:"real_payment"` // 企业实际支付(扣除违约扣款)
  107. ServiceRate float64 `json:"service_rate"` // 服务费率(千分比)
  108. ServiceCharge float64 `json:"service_charge"` // 服务费
  109. FeeForm int `json:"fee_form"` // 稿费形式 1: 产品置换 2: 固定稿费 3: 自报价
  110. ErrBreakRate int `json:"err_break_rate"` // 未上传类型违约扣款比例(百分比)
  111. ScriptBreakRate int `json:"script_break_rate"` // 脚本超时违约扣款比例(百分比)
  112. SketchBreakRate int `json:"sketch_break_rate"` // 初稿超时违约扣款比例(百分比)
  113. LinkBreakRate int `json:"link_break_rate"` // 链接超时违约扣款比例(百分比)
  114. DataBreakRate int `json:"data_break_rate"` // 数据超时违约扣款比例(百分比)
  115. TaskStage int `json:"task_stage"` // 任务阶段
  116. TaskStatus int `json:"task_status"` // 商家任务状态 1: 待选 2: 已选 3: 落选
  117. LogisticsStatus int `json:"logistics_status"` // 发货状态 1: 待发货 2: 已发货 3: 已签收
  118. BookStatus int `json:"book_status"` // 脚本上传状态 1-5 表示各阶段
  119. SketchStatus int `json:"sketch_status"` // 初稿上传状态 1-5 表示各阶段
  120. LinkStatus int `json:"link_status"` // 链接上传状态 1-5 表示各阶段
  121. DataStatus int `json:"data_status"` // 数据上传状态 1-5 表示各阶段
  122. CompleteStatus int `json:"complete_status"` // 结束方式 1: 未结束 2: 正常结束 3: 反选失败 4: 被解约
  123. UpdateAt *gtime.Time `json:"update_at"` // 更新时间
  124. CreateDate *gtime.Time `json:"create_date"` // 创建时间
  125. SelectDate *gtime.Time `json:"select_date"` // 反选时间
  126. DeliveryDate *gtime.Time `json:"delivery_date"` // 发货时间
  127. CompleteDate *gtime.Time `json:"complete_date"` // 结束时间
  128. WithdrawDate *gtime.Time `json:"withdraw_date"` // 提现时间
  129. CurDefaultType int `json:"cur_default_type"` // 当前处于的违约类型
  130. WithdrawStatus int `json:"withdraw_status"` // 提现状态 1-4 表示不同状态
  131. LeadTeamId string `json:"lead_team_id"` // 团长young之团ID
  132. TeamId string `json:"team_id"` // 团员young之团ID
  133. SettleStatus int `json:"settle_status"` // 结算状态 1: 待结算 2: 已结算
  134. TeamIncome float64 `json:"team_income"` // 团长现金收益
  135. TeamPoint int `json:"team_point"` // 团长积分收益
  136. CurBreakAt *gtime.Time `json:"cur_break_at"` // 当前阶段截止时间
  137. SupplierId int `json:"supplier_id"` // 服务商ID
  138. SupplierStatus int `json:"supplier_status"` // 服务商任务状态
  139. DraftFee float64 `json:"draft_fee"` // 达人稿费
  140. SupportFee float64 `json:"support_fee"` //提报价格
  141. SignedTime *gtime.Time `json:"signed_time"` // 签收时间
  142. FansNum int `json:"fans_num"` // 粉丝数
  143. VoteAvg int `json:"vote_avg"` // 平均点赞数
  144. CommitAvg int `json:"commit_avg"` // 平均评论数
  145. BOperator string `json:"b_operator"` // 商家确定达人操作人ID
  146. BOperatorType int `json:"b_operator_type"` // 商家操作人类型
  147. SOperator int `json:"s_operator"` // 服务商提报达人操作人ID
  148. SOperatorType int `json:"s_operator_type"` // 服务商操作人类型
  149. SProjectId int `json:"s_project_id"` // 服务商种草任务ID
  150. ProjectDetail *ProjectDetail `json:"project_detail"` //项目详情
  151. }
  152. type SignTaskInfo struct {
  153. ProjectId string `json:"project_id"`
  154. SProjectId int `json:"s_project_id"` //服务商加入商单
  155. OpenID string `json:"open_id"` //选中快手账号唯一标识
  156. AddressId uint64 `json:"address_id"`
  157. StrategyId int `json:"strategy_id"`
  158. Offer float64 `json:"offer"` //最终提交时的稿费
  159. }
  160. type SignLocalTaskInfo struct {
  161. LocalId string `json:"local_id"`
  162. SLocalId int `json:"s_local_id"` //服务商加入商单
  163. OpenID string `json:"open_id"` //选中快手账号唯一标识
  164. StrategyId int `json:"strategy_id"`
  165. Offer float64 `json:"offer"` //最终提交时的稿费
  166. }
  167. type TaskInfoBrief struct {
  168. TaskId string `json:"task_id"`
  169. PlatformIconUrl string `json:"platform_icon_url"`
  170. PlatformName string `json:"platform_name"`
  171. PlatformNickName string `json:"platform_nick_name"`
  172. ProjectName string `json:"project_name"`
  173. ProductPhotoSnap string `json:"product_photo_snap"`
  174. TaskStatus int `json:"task_status"`
  175. TaskStage int `json:"task_stage"`
  176. ScriptStatus int `json:"script_status"` // 脚本上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过
  177. SketchStatus int `json:"sketch_status"` // 初稿上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过
  178. LinkStatus int `json:"link_status"` // 链接上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过
  179. DataStatus int `json:"data_status"` // 数据上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过
  180. TaskReward float64 `json:"task_reward"` // 达人报酬
  181. BreakRate int `json:"break_rate"` // 违约扣款比例,百分之
  182. CurBreakAt *gtime.Time `json:"cur_break_at"` // 当前阶段截止时间
  183. FeeForm int `json:"fee_form"` // 稿费形式,1,2,3分别代表产品置换、固定稿费、自报价
  184. ProjectDetail *ProjectDetail `json:"project_detail"`
  185. AccountInfo *KuaishouUserInfo `json:"account_info"` //报名平台账号信息
  186. TaskInfo *YoungeeTaskInfo `json:"task_info"`
  187. SignUpTime *gtime.Time `json:"sign_up_time"` //报名时间
  188. }
  189. type TaskInfoBriefList struct {
  190. AllTaskInfoList []*TaskInfoBrief `json:"all_Task_info_list"`
  191. SignUpTaskInfoList []*TaskInfoBrief `json:"sign_up_Task_info_list"`
  192. GoingOnTaskInfoList []*TaskInfoBrief `json:"going_on_Task_info_list"`
  193. CompletedTaskInfoList []*TaskInfoBrief `json:"completed_Task_info_list"`
  194. }
  195. type EXETaskInfoBriefList struct {
  196. List1 []*TaskInfoBrief `json:"list1"`
  197. List2 []*TaskInfoBrief `json:"list2"`
  198. List3 []*TaskInfoBrief `json:"list3"`
  199. List4 []*TaskInfoBrief `json:"list4"`
  200. }
  201. type TaskNum struct {
  202. AllNum int `json:"all_num"`
  203. SignUpNum int `json:"sign_up_num"`
  204. GoingOnNum int `json:"going_on_num"`
  205. CompletedNum int `json:"completed_num"`
  206. }
  207. type ExeTaskNum struct {
  208. ScriptNum int `json:"script_num"`
  209. SketchNum int `json:"sketch_num"`
  210. LinkNum int `json:"link_num"`
  211. DataNum int `json:"data_num"`
  212. }
  213. type TaskDetail struct {
  214. TaskInfo *model.YoungeeTaskInfo `json:"task_info"`
  215. ProjectDetail *ProjectDetail `json:"project_detail"`
  216. ProductPhoto *model.YounggeeProductPhoto `json:"product_photo"`
  217. Strategy *model.RecruitStrategy `json:"strategy"`
  218. WithdrawStatus int `json:"withdraw_status"`
  219. }
  220. type IsSign struct {
  221. IsSign int `json:"is_sign"`
  222. IsAgree int `json:"is_agree"`
  223. TaskInfo *model.YoungeeTaskInfo `json:"task_info"`
  224. }
  225. type IsSignSecTask struct {
  226. IsSign int `json:"is_sign"`
  227. SecTaskInfo *SecTaskInfoDetail `json:"sec_task_info"`
  228. }