project_create.go 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package http_model
  2. type CreateProjectPhoto struct {
  3. PhotoUrl string `json:"photo_url"` // 图片url
  4. PhotoUid string `json:"photo_uid"`
  5. }
  6. type CreateRecruitStrategy 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. ServiceCharge float64 `json:"service_charge"` // 服务费
  13. Offer float64 `json:"offer"` // 报价
  14. TOffer float64 `json:"t_offer"` // 达人端报价
  15. }
  16. type CreateProjectRequest struct {
  17. ProjectName string `json:"project_name"` // 项目名称
  18. ProjectStatus int64 `json:"project_status"` // 项目状态,1-7分别代表创建中、待审核、招募中、待支付、失效、执行中、已结案
  19. ProjectType int64 `json:"project_type"` // 项目类型,1代表全流程项目,2代表专项项目
  20. ProjectPlatform int64 `json:"project_platform"` // 项目平台,1-7分别代表红book、抖音、微博、快手、b站、大众点评、知乎
  21. ProjectForm int64 `json:"project_form"` // 项目形式,1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创
  22. TalentType string `json:"talent_type"` // 达人类型
  23. RecruitDdl string `json:"recruit_ddl"` // 招募截止时间
  24. ContentType int64 `json:"content_type"` // 内容形式,1代表图文,2代表视频
  25. ProjectDetail string `json:"project_detail"` // 项目详情
  26. RecruitStrategys []CreateRecruitStrategy `json:"recruit_strategys"` // 定价策略
  27. ProjectPhotos []CreateProjectPhoto `json:"project_photos"` // 项目图片
  28. ProductID int64 `json:"product_id"` // 关联商品id
  29. EnterpriseID int64 `json:"enterprise_id"` // 关联商品id
  30. }
  31. type CreateProjectData struct {
  32. ProjectID int64 `json:"Project_id"` // 项目id
  33. }
  34. func NewCreateProjectRequest() *CreateProjectRequest {
  35. return new(CreateProjectRequest)
  36. }
  37. func NewCreateProjectResponse() *CommonResponse {
  38. resp := new(CommonResponse)
  39. resp.Data = new(CreateProjectData)
  40. return resp
  41. }