project_talentlist.go 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. package http_model
  2. import (
  3. "time"
  4. "youngee_b_api/model/gorm_model"
  5. )
  6. type ProjectTalentListRequest 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. TaskStatus string `json:"task_status"` // 任务状态
  13. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  14. }
  15. type ProjectTalentPreview struct {
  16. TaskID string `json:"task_id"` // 任务ID
  17. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  18. FansCount string `json:"fans_count"` // 粉丝数
  19. StrategyID string `json:"strategy_id"` // 报名选择的招募策略id
  20. DetailAddr string `json:"detail_addr"` // 物流信息
  21. CompanyName string `json:"company_name"` // 物流公司
  22. LogisticsNumber string `json:"logistics_number"` // 物流单号
  23. DeliveryTime string `json:"delivery_time"` // 发货时间
  24. ExplorestorePeriod string `json:"explorestore_period"` // 线下探店-探店持续时间
  25. }
  26. type ProjectTalentInfo struct {
  27. TaskID int `json:"task_id"` // 任务ID
  28. PlatformNickname string `json:"platform_nickname"` // 账号昵称
  29. FansCount string `json:"fans_count"` // 粉丝数
  30. StrategyID int `json:"strategy_id"` // 报名选择的招募策略id
  31. DetailAddr string `json:"detail_addr"` // 物流信息
  32. CompanyName string `json:"company_name"` // 物流公司
  33. LogisticsNumber string `json:"logistics_number"` // 物流单号
  34. DeliveryTime time.Time `json:"delivery_time"` // 发货时间
  35. ExplorestorePeriod string `json:"explorestore_period"` // 线下探店-探店持续时间
  36. }
  37. type TalentAccount struct {
  38. Talent gorm_model.YoungeeTaskInfo
  39. Logistics gorm_model.YoungeeTaskLogistics
  40. //Account gorm_model.YoungeePlatformAccountInfo
  41. }
  42. type ProjectTalentListData struct {
  43. ProjectTalentPreview []*ProjectTalentPreview `json:"project_talent_pre_view"`
  44. Total string `json:"total"`
  45. }
  46. func NewProjectTalentListRequest() *ProjectTalentListRequest {
  47. return new(ProjectTalentListRequest)
  48. }
  49. func NewProjectTalentListResponse() *CommonResponse {
  50. resp := new(CommonResponse)
  51. resp.Data = new(ProjectTaskListData)
  52. return resp
  53. }