task_default_review.go 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. package http_model
  2. import (
  3. "time"
  4. "youngee_b_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. 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. BreakAt string `json:"break_at"` // 违约时间
  24. }
  25. type TaskDefaultReviewInfo 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. BreakAt time.Time `json:"break_at"` // 违约时间
  34. }
  35. type TaskDefaultReview struct {
  36. Talent gorm_model.YoungeeTaskInfo
  37. Default gorm_model.YoungeeContractInfo
  38. }
  39. type TaskDefaultReviewListData struct {
  40. TaskDefaultPreview []*TaskDefaultReviewPreview `json:"project_default_pre_view"`
  41. Total string `json:"total"`
  42. }
  43. func NewTaskDefaultReviewListRequest() *TaskDefaultReviewListRequest {
  44. return new(TaskDefaultReviewListRequest)
  45. }
  46. func NewTaskDefaultReviewListResponse() *CommonResponse {
  47. resp := new(CommonResponse)
  48. resp.Data = new(ProjectTaskListData)
  49. return resp
  50. }