task_default_review.go 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. package http_model
  2. import (
  3. "time"
  4. "youngee_m_api/model/gorm_model"
  5. )
  6. type TaskDefaultReviewListRequest 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 TaskDefaultReviewPreview struct {
  16. TaskID string `json:"task_id"` // 任务ID
  17. ProjectID string `json:"project_id"` // 项目ID
  18. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  19. FansCount string `json:"fans_count"` // 粉丝数
  20. RecruitStrategyID string `json:"recruit_strategy_id"` // 招募策略ID
  21. StrategyID string `json:"strategy_id"` // 报名选择的招募策略id
  22. AllPayment float64 `json:"all_payment"` // 企业支付
  23. RealPayment float64 `json:"real_payment"` // 企业实际支付(扣除违约扣款)
  24. BreakAt string `json:"break_at"` // 违约时间
  25. }
  26. type TaskDefaultReviewInfo struct {
  27. TaskID int `json:"task_id"` // 任务ID
  28. ProjectID int `json:"project_id"` // 项目ID
  29. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  30. FansCount string `json:"fans_count"` // 粉丝数
  31. RecruitStrategyID int `json:"recruit_strategy_id"` // 招募策略ID
  32. StrategyID int `json:"strategy_id"` // 报名选择的招募策略id
  33. AllPayment float64 `json:"all_payment"` // 企业支付
  34. RealPayment float64 `json:"real_payment"` // 企业实际支付(扣除违约扣款)
  35. BreakAt time.Time `json:"break_at"` // 违约时间
  36. }
  37. type TaskDefaultReview struct {
  38. Talent gorm_model.YoungeeTaskInfo
  39. Default gorm_model.YoungeeContractInfo
  40. }
  41. type TaskDefaultReviewListData struct {
  42. TaskDefaultPreview []*TaskDefaultReviewPreview `json:"project_default_pre_view"`
  43. Total string `json:"total"`
  44. }
  45. func NewTaskDefaultReviewListRequest() *TaskDefaultReviewListRequest {
  46. return new(TaskDefaultReviewListRequest)
  47. }
  48. func NewTaskDefaultReviewListResponse() *CommonResponse {
  49. resp := new(CommonResponse)
  50. resp.Data = new(ProjectTaskListData)
  51. return resp
  52. }