project_show.go 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. package http_model
  2. import "time"
  3. type ShowProjectPhoto struct {
  4. PhotoUrl string `json:"photo_url"` // 图片url
  5. PhotoUid string `json:"photo_uid"`
  6. }
  7. type ShowRecruitStrategy struct {
  8. RecruitStrategyID string `json:"recruit_strategy_id"`
  9. FeeForm string `json:"fee_form"` // 稿费形式,1-3分别代表自报价、固定稿费、产品置换
  10. StrategyID string `json:"strategy_id"` // 策略id
  11. FollowersLow string `json:"followers_low"` // 达人粉丝数下限
  12. FollowersUp string `json:"followers_up"` // 达人粉丝数上限
  13. RecruitNumber string `json:"recruit_number"` // 招募数量
  14. Offer string `json:"offer"` // 报价
  15. SelectedNumber int64 `json:"selected_number"`
  16. WaitingNumber int64 `json:"waiting_number"` // 待发货
  17. DeliveredNumber int64 `json:"delivered_number"` // 已发货
  18. SignedNumber int64 `json:"signed_number"` // 已签收
  19. }
  20. type ShowProjectData struct {
  21. ProjectName string `json:"project_name"` // 项目名称
  22. ProjectStatus string `json:"project_status"` // 项目状态,1-7分别代表创建中、待审核、招募中、待支付、失效、执行中、已结案
  23. ProjectType string `json:"project_type"` // 项目类型,1代表全流程项目,2代表专项项目
  24. ProjectPlatform string `json:"project_platform"` // 项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
  25. ProjectForm string `json:"project_form"` // 项目形式,1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创
  26. TalentType string `json:"talent_type"` // 达人类型
  27. RecruitDdl time.Time `json:"recruit_ddl"` // 招募截止时间
  28. ContentType string `json:"content_type"` // 内容形式,1代表图文,2代表视频
  29. ProjectDetail string `json:"project_detail"` // 项目详情
  30. RecruitStrategys []ShowRecruitStrategy `json:"recruit_strategys"` // 定价策略
  31. ProjectPhotos []ShowProjectPhoto `json:"project_photos"` // 项目图片
  32. ProductID string `json:"product_id"` // 关联商品id
  33. EnterpriseID string `json:"enterprise_id"` // 企业id
  34. Balance string `json:"balance"` //企业余额
  35. ProjectID string `json:"project_id"` // 项目id
  36. CreateAt time.Time `json:"create_at"` //创建时间
  37. UpdateAt time.Time `json:"update_at"` //更新时间
  38. Phone string `json:"phone"` //联系方式
  39. }
  40. type ShowProjectRequest struct {
  41. ProjectID int64 `json:"Project_id"` // 项目id
  42. }
  43. func NewShowProjectRequest() *ShowProjectRequest {
  44. return new(ShowProjectRequest)
  45. }
  46. func NewShowProjectResponse() *CommonResponse {
  47. resp := new(CommonResponse)
  48. resp.Data = new(ShowProjectData)
  49. return resp
  50. }