task_terminating.go 2.7 KB

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