project_update.go 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package http_model
  2. import "time"
  3. type UpdateProjectPhoto struct {
  4. PhotoUrl string `json:"photo_url"` // 图片url
  5. PhotoUid string `json:"photo_uid"`
  6. }
  7. type UpdateRecruitStrategy struct {
  8. FeeForm int64 `json:"fee_form"` // 稿费形式,1-3分别代表自报价、固定稿费、产品置换
  9. StrategyID int64 `json:"strategy_id"` // 策略id
  10. FollowersLow int64 `json:"followers_low"` // 达人粉丝数下限
  11. FollowersUp int64 `json:"followers_up"` // 达人粉丝数上限
  12. RecruitNumber int64 `json:"recruit_number"` // 招募数量
  13. Offer int64 `json:"offer"` // 报价
  14. }
  15. type UpdateProjectRequest struct {
  16. ProjectForm string `json:"project_form"` // 项目形式,1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创
  17. TalentType string `json:"talent_type"` // 达人类型
  18. RecruitDdl time.Time `json:"recruit_ddl"` // 招募截止时间
  19. ContentType string `json:"content_type"` // 内容形式,1代表图文,2代表视频
  20. ProjectStatus string `json:"project_status"` // 项目阶段
  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. }