project_show.go 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. FileName string `json:"name"` //文件名
  7. }
  8. type ShowRecruitStrategy struct {
  9. RecruitStrategyID string `json:"recruit_strategy_id"`
  10. FeeForm string `json:"fee_form"` // 稿费形式,1-3分别代表自报价、固定稿费、产品置换
  11. StrategyID string `json:"strategy_id"` // 策略id
  12. FollowersLow string `json:"followers_low"` // 达人粉丝数下限
  13. FollowersUp string `json:"followers_up"` // 达人粉丝数上限
  14. RecruitNumber string `json:"recruit_number"` // 招募数量
  15. Offer string `json:"offer"` // 报价
  16. ServiceCharge string `json:"service_charge"`
  17. SelectedNumber int64 `json:"selected_number"`
  18. WaitingNumber int64 `json:"waiting_number"` // 待发货
  19. DeliveredNumber int64 `json:"delivered_number"` // 已发货
  20. SignedNumber int64 `json:"signed_number"` // 已签收
  21. }
  22. type ShowProjectData struct {
  23. ProjectName string `json:"project_name"` // 项目名称
  24. ProjectStatus string `json:"project_status"` // 项目状态,1-7分别代表创建中、待审核、招募中、待支付、失效、执行中、已结案
  25. ProjectType string `json:"project_type"` // 项目类型,1代表全流程项目,2代表专项项目
  26. ProjectPlatform string `json:"project_platform"` // 项目平台,1-7分别代表红book、抖音、微博、快手、b站、大众点评、知乎
  27. ProjectForm string `json:"project_form"` // 项目形式,1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创
  28. TalentType string `json:"talent_type"` // 达人类型
  29. RecruitDdl time.Time `json:"recruit_ddl"` // 招募截止时间
  30. ContentType string `json:"content_type"` // 内容形式,1代表图文,2代表视频
  31. ProjectDetail string `json:"project_detail"` // 项目详情
  32. RecruitStrategys []ShowRecruitStrategy `json:"recruit_strategys"` // 定价策略
  33. ProjectPhotos []ShowProjectPhoto `json:"project_photos"` // 项目图片
  34. ProductID string `json:"product_id"` // 关联商品id
  35. ProductInfo string `json:"product_info"` // 商品信息
  36. ProductPhotoInfo string `json:"product_photo_info"` // 商品图片
  37. EstimatedCost string `json:"estimated_cost"` // 预估成本
  38. EnterpriseID string `json:"enterprise_id"` // 企业id
  39. Balance string `json:"balance"` // 企业余额
  40. AvailableBalance string `json:"available_balance"` // 可用余额
  41. ProjectID string `json:"project_id"` // 项目id
  42. FailReason string `json:"fail_reason"` // 失效原因
  43. Phone string `json:"phone"` // 联系方式
  44. CreateAt time.Time `json:"create_at"` // 创建时间
  45. UpdateAt time.Time `json:"update_at"` // 更新时间
  46. PassAt time.Time `json:"pass_at"` // 审核通过时间
  47. FinishAt time.Time `json:"finish_at"` // 结案时间
  48. PayAt time.Time `json:"pay_at"` // 支付时间
  49. AutoFailAt time.Time `json:"auto_fail_at"` // 支付截止时间
  50. SubmitAt time.Time `json:"submit_at"` // 提交审核时间
  51. }
  52. type ShowProjectRequest struct {
  53. ProjectID string `json:"Project_id"` // 项目id
  54. }
  55. func NewShowProjectRequest() *ShowProjectRequest {
  56. return new(ShowProjectRequest)
  57. }
  58. func NewShowProjectResponse() *CommonResponse {
  59. resp := new(CommonResponse)
  60. resp.Data = new(ShowProjectData)
  61. return resp
  62. }