project_update.go 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package http_model
  2. type UpdateProjectPhoto struct {
  3. PhotoUrl string `json:"photo_url"` // 图片url
  4. PhotoUid string `json:"photo_uid"`
  5. }
  6. type UpdateRecruitStrategy struct {
  7. FeeForm int64 `json:"fee_form"` // 稿费形式,1-3分别代表自报价、固定稿费、产品置换
  8. StrategyID int64 `json:"strategy_id"` // 策略id
  9. FollowersLow int64 `json:"followers_low"` // 达人粉丝数下限
  10. FollowersUp int64 `json:"followers_up"` // 达人粉丝数上限
  11. RecruitNumber int64 `json:"recruit_number"` // 招募数量
  12. Offer float64 `json:"offer"` // 报价
  13. TOffer float64 `json:"t_offer"` // 报价
  14. }
  15. type UpdateProjectRequest struct {
  16. ProjectForm string `json:"project_form"` // 项目形式,1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创
  17. TalentType string `json:"talent_type"` // 达人类型
  18. ProjectStatus int `json:"project_status"` // 要保存的项目状态
  19. RecruitDdl string `json:"recruit_ddl"` // 招募截止时间
  20. ContentType string `json:"content_type"` // 内容形式,1代表图文,2代表视频
  21. ProjectDetail string `json:"project_detail"` // 项目详情
  22. RecruitStrategys []UpdateRecruitStrategy `json:"recruit_strategys"` // 定价策略
  23. ProjectPhotos []UpdateProjectPhoto `json:"project_photos"` // 项目图片
  24. EnterpriseID string `json:"enterprise_id"` // 企业id
  25. ProjectID string `json:"project_id"` // 项目id
  26. }
  27. type UpdateProjectData struct {
  28. ProjectID int64 `json:"Project_id"` // 项目id
  29. }
  30. func NewUpdateProjectRequest() *UpdateProjectRequest {
  31. return new(UpdateProjectRequest)
  32. }
  33. func NewUpdateProjectResponse() *CommonResponse {
  34. resp := new(CommonResponse)
  35. resp.Data = new(UpdateProjectData)
  36. return resp
  37. }