task_terminated.go 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. package http_model
  2. import (
  3. "youngee_b_api/model/gorm_model"
  4. )
  5. type TaskTerminatedListRequest struct {
  6. PageSize int64 `json:"page_size"`
  7. PageNum int64 `json:"page_num"`
  8. ProjectId string `json:"project_id"` // 项目ID
  9. TaskId string `json:"task_id"` // 任务ID
  10. StrategyId string `json:"strategy_id"` // 策略ID
  11. DefaultStatus string `json:"default_status"` // 稿件状态
  12. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  13. }
  14. type TaskTerminatedPreview struct {
  15. TaskID string `json:"task_id"` // 任务ID
  16. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  17. FansCount string `json:"fans_count"` // 粉丝数
  18. RecruitStrategyID string `json:"recruit_strategy_id"` // 招募策略ID
  19. StrategyID string `json:"strategy_id"` // 报名选择的招募策略id
  20. AllPayment float64 `json:"all_payment"` // 企业支付
  21. RealPayment float64 `json:"real_payment"` // 企业实际支付(扣除违约扣款)
  22. HandleAt string `json:"handle_at"` // 处理时间
  23. BreakType string `json:"break_type"` // 违约类型(4类严重违约):1(脚本)2(初稿)3(链接)4(数据)
  24. }
  25. type TaskTerminatedInfo struct {
  26. TaskID string `json:"task_id"` // 任务ID
  27. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  28. FansCount string `json:"fans_count"` // 粉丝数
  29. RecruitStrategyID int `json:"recruit_strategy_id"` // 招募策略ID
  30. StrategyID int `json:"strategy_id"` // 报名选择的招募策略id
  31. AllPayment float64 `json:"all_payment"` // 企业支付
  32. RealPayment float64 `json:"real_payment"` // 企业实际支付(扣除违约扣款)
  33. HandleAt string `json:"handle_at"` // 处理时间
  34. BreakType int `json:"break_type"` // 违约类型(4类严重违约):1(脚本)2(初稿)3(链接)4(数据)
  35. }
  36. type TaskTerminated struct {
  37. Talent gorm_model.YoungeeTaskInfo
  38. Default gorm_model.YoungeeContractInfo
  39. LinkInfo gorm_model.YounggeeLinkInfo
  40. }
  41. type TaskTerminatedListData struct {
  42. TaskDefaultPreview []*TaskTerminatedPreview `json:"project_default_pre_view"`
  43. Total string `json:"total"`
  44. }
  45. func NewTaskTerminatedListRequest() *TaskTerminatedListRequest {
  46. return new(TaskTerminatedListRequest)
  47. }
  48. func NewTaskTerminatedListResponse() *CommonResponse {
  49. resp := new(CommonResponse)
  50. resp.Data = new(ProjectTaskListData)
  51. return resp
  52. }