project_show.go 3.8 KB

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