project_create.go 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package http_model
  2. import "time"
  3. type CreateProjectPhoto struct {
  4. PhotoUrl string `json:"photo_url"` // 图片url
  5. }
  6. type CreateRecruitStrategy struct {
  7. FeeForm int `json:"fee_form"` // 稿费形式,1-3分别代表产品置换、固定稿费、自报价
  8. StrategyID int `json:"strategy_id"` // 策略id
  9. FollowersLow int `json:"followers_low"` // 达人粉丝数下限
  10. FollowersUp int `json:"followers_up"` // 达人粉丝数上限
  11. RecruitNumber int `json:"recruit_number"` // 招募数量
  12. Offer int `json:"offer"` // 报价
  13. }
  14. type CreateProjectRequest struct {
  15. ProjectName string `json:"project_name"` // 项目名称
  16. ProjectStatus int `json:"project_status"` // 项目状态,1-7分别代表创建中、待审核、招募中、待支付、失效、执行中、已结案
  17. ProjectType int `json:"project_type"` // 项目类型,1代表全流程项目,2代表专项项目
  18. ProjectPlatform int `json:"project_platform"` // 项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
  19. ProjectForm int `json:"project_form"` // 项目形式,1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创
  20. TalentType int `json:"talent_type"` // 达人类型
  21. RecruitDdl time.Time `json:"recruit_ddl"` // 招募截止时间
  22. ContentType int `json:"content_type"` // 内容形式,1代表图文,2代表视频
  23. ProjectDetail string `json:"project_detail"` // 项目详情
  24. RecruitStrategys []CreateRecruitStrategy `json:"recruit_strategys"` // 定价策略
  25. ProjectPhotos []CreateProjectPhoto `json:"project_photos"` // 项目图片
  26. EnterpriseID int `json:"enterprise_id"` // 所属企业id
  27. ProductID int `json:"product_id"` // 关联商品id
  28. }
  29. type CreateProjectData struct {
  30. ProjectID int `json:"Project_id"` // 项目id
  31. }
  32. func NewCreateProjectRequest() *CreateProjectRequest {
  33. return new(CreateProjectRequest)
  34. }
  35. func NewCreateProjectResponse() *CommonResponse {
  36. resp := new(CommonResponse)
  37. resp.Data = new(CreateProjectData)
  38. return resp
  39. }