show_s_project.go 4.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. package http_model
  2. import "time"
  3. type ShowSProjectData struct {
  4. SProjectId int `json:"s_project_id"` // 服务商种草任务ID
  5. ProjectName string `json:"project_name"` // 项目名称
  6. ProjectStatus int64 `json:"project_status"` // 项目状态,1-7分别代表创建中、待审核、招募中、待支付、失效、执行中、已结案
  7. ProjectType int `json:"project_type"` // 项目类型,1代表全流程项目,2代表专项项目
  8. ProjectPlatform int64 `json:"project_platform"` // 项目平台,1-7分别代表红book、抖音、微博、快手、b站、大众点评、知乎
  9. ProjectForm int64 `json:"project_form"` // 项目形式,1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创
  10. TalentType string `json:"talent_type"` // 达人类型
  11. RecruitDdl time.Time `json:"recruit_ddl"` // 招募截止时间
  12. ContentType int64 `json:"content_type"` // 内容形式,1代表图文,2代表视频
  13. ProjectDetail string `json:"project_detail"` // 项目详情
  14. SRecruitStrategys []ShowSRecruitStrategy `json:"recruit_strategys"` // 招募策略
  15. ProjectPhotos []ShowProjectPhoto `json:"project_photos"` // 项目图片
  16. ProductID string `json:"product_id"` // 关联商品id
  17. ProductInfo string `json:"product_info"` // 商品信息
  18. ProductPhotoInfo string `json:"product_photo_info"` // 商品图片
  19. EstimatedCost string `json:"estimated_cost"` // 预估成本
  20. EnterpriseID string `json:"enterprise_id"` // 企业id
  21. Balance string `json:"balance"` // 企业余额
  22. AvailableBalance string `json:"available_balance"` // 可用余额
  23. ProjectID string `json:"project_id"` // 项目id
  24. FailReason string `json:"fail_reason"` // 失效原因
  25. Phone string `json:"phone"` // 联系方式
  26. CreateAt time.Time `json:"create_at"` // 创建时间
  27. UpdateAt time.Time `json:"update_at"` // 更新时间
  28. SubmitAt time.Time `json:"submit_at"` // 更新时间
  29. PassAt time.Time `json:"pass_at"` // 审核通过时间
  30. FinishAt time.Time `json:"finish_at"` // 结案时间
  31. PayAt time.Time `json:"pay_at"` // 支付时间
  32. AutoFailAt time.Time `json:"auto_fail_at"` // 自动失效时间
  33. ApplyNum int `json:"apply_num"` // 报名人数
  34. RecruitNum int `json:"recruit_num"` // 已招募人数
  35. CreatorCompany string `json:"creator_company"` // 创建人公司
  36. CreatorType int `json:"creator_type"` // 种草任务创建人类型,1商家主账号,2商家子账号
  37. CreatorName string `json:"creator_name"` // 创建人名称
  38. }
  39. type ShowSRecruitStrategy struct {
  40. RecruitStrategyID string `json:"recruit_strategy_id"` // ID
  41. FeeForm int64 `json:"fee_form"` // 稿费形式,1-3分别代表自报价、固定稿费、产品置换
  42. StrategyID int64 `json:"strategy_id"` // 策略id
  43. FollowersLow int64 `json:"followers_low"` // 达人粉丝数下限
  44. FollowersUp int64 `json:"followers_up"` // 达人粉丝数上限
  45. RecruitNumber int64 `json:"recruit_number"` // 招募数量
  46. Offer float64 `json:"offer"` // 报价
  47. ServiceCharge float64 `json:"service_charge"` // 服务费
  48. SelectedNumber int64 `json:"selected_number"` // 数量
  49. WaitingNumber int64 `json:"waiting_number"` // 待发货
  50. DeliveredNumber int64 `json:"delivered_number"` // 已发货
  51. SignedNumber int64 `json:"signed_number"` // 已签收
  52. }
  53. type ShowSProjectRequest struct {
  54. SProjectId int `json:"s_project_id"` // 服务商种草任务id
  55. }
  56. func NewShowSProjectRequest() *ShowSProjectRequest {
  57. return new(ShowSProjectRequest)
  58. }
  59. func NewShowSProjectResponse() *CommonResponse {
  60. resp := new(CommonResponse)
  61. resp.Data = new(ShowSProjectData)
  62. return resp
  63. }