special_local_list.go 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package http_model
  2. type SpecialLocalListRequest struct {
  3. PageSize int32 `json:"page_size"`
  4. PageNum int32 `json:"page_num"`
  5. SupplierId int `json:"supplier_id"` // 服务商ID
  6. LocalPlatform int `json:"local_platform"` // 本地生活平台
  7. TaskForm int `json:"task_form"` // 任务形式,1-2分别代表线下探店,素材分发
  8. ContentType int `json:"content_type"` // 内容形式,1代表图文,2代表视频
  9. AddToListStatus int `json:"add_to_list_status"` // 加入商单状态,1已加
  10. LocalId string `json:"local_id"` // 本地生活ID
  11. LocalName string `json:"local_name"` // 本地生活标题
  12. TaskStatus int `json:"task_status"` // 任务状态
  13. }
  14. type SpecialLocalPreview struct {
  15. LocalId string `json:"local_id"` // 本地生活ID
  16. LocalName string `json:"local_name"` // 本地生活名称
  17. TaskStatus int `json:"task_status"` // 本地生活状态
  18. LocalPlatform int `json:"local_platform"` // 本地生活平台
  19. TaskForm int `json:"task_form"` // 本地生活形式
  20. LocalType int `json:"local_type"` // 本地生活类型
  21. LocalContentType int `json:"local_content_type"` // 本地生活内容形式
  22. RecruitStrategy []*EasyRecruitStrategy `json:"recruit_strategy"` // 招募策略
  23. EstimatedCost float64 `json:"estimated_cost"` // 任务总预算
  24. ServiceChargeRate float64 `json:"service_charge_rate"` // 服务费率
  25. ServiceCharge float64 `json:"service_charge"` // 任务总服务费
  26. RecruitDdl string `json:"recruit_ddl"` // 招募截至时间
  27. ProductPhotoUrl string `json:"product_photo_url"` // 门店主图URL
  28. ProductPhotoSymbol int64 `json:"product_photo_symbol"` // 门店标志位
  29. ProductPhotoUid string `json:"product_photo_uid"` // 门店uid
  30. StoreName string `json:"store_name"` // 门店名称
  31. ProductPrice float64 `json:"product_price"` // 商品售价
  32. StoreId int `json:"store_id"` // 门店ID
  33. SLocalStatus int `json:"s_local_status"` // 服务商本地生活任务状态,1待确认,2已确认,3已拒绝
  34. Tools string `json:"tools"` // 工具选择
  35. }
  36. type SpecialLocalListData struct {
  37. SpecialLocalPreview []*SpecialLocalPreview `json:"special_local_pre_view"`
  38. Total int64 `json:"total"`
  39. }
  40. func NewSpecialLocalListRequest() *SpecialLocalListRequest {
  41. return new(SpecialLocalListRequest)
  42. }
  43. func NewSpecialLocalListResponse() *CommonResponse {
  44. resp := new(CommonResponse)
  45. resp.Data = new(SpecialLocalListData)
  46. return resp
  47. }