show_s_local_life.go 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. package http_model
  2. import "youngee_b_api/model/gorm_model"
  3. type ShowSLocalPhoto struct {
  4. PhotoUrl string `json:"photo_url"` // 图片url
  5. PhotoUid string `json:"photo_uid"` // uid
  6. FileName string `json:"name"` // 文件名
  7. }
  8. type ShowSLocalData struct {
  9. // 系统信息
  10. SLocalId int `json:"s_local_id"` // 主键ID
  11. LocalId string `json:"local_id"` // 被加入商单的原本地生活ID
  12. LocalPlatform int `json:"local_platform"` // 任务平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
  13. TaskStatus int `json:"task_status"` // 任务状态
  14. CreateAt string `json:"create_at"` // 创建时间
  15. EnterpriseId string `json:"enterprise_id"` // 商家ID
  16. EnterprisePhone string `json:"enterprise_phone"` // 商家用户手机号码
  17. EstimatedCost string `json:"estimated_cost"` // 预估成本
  18. ServiceChargeRate float64 `json:"service_charge_rate"` // 公开服务费率
  19. // 关联主体
  20. StoreId int `json:"store_id"` // 关联门店id
  21. StoreName string `json:"store_name"` // 门店名称
  22. StoreCategory string `json:"store_category"` // 门店类目(/分隔)
  23. StoreMainPhotoUrl string `json:"store_main_photo_url"` // 门店主图URL
  24. StoreMainPhotoUid string `json:"store_main_photo_uid"` // 门店主图uid
  25. StoreMainPhotoSymbol int `json:"store_main_photo_symbol"` // 门店主图类型
  26. StoreRelatedAt string `json:"store_related_at"` // 关联门店时间
  27. TeamBuyingId int `json:"team_buying_id"` // 关联团购id
  28. TeamBuyingCategory string `json:"team_buying_category"` // 团购类目(/分隔)
  29. TeamBuyingName string `json:"team_buying_name"` // 团购标题
  30. TeamMainPhotoUrl string `json:"team_main_photo_url"` // 团购主图URL
  31. TeamMainPhotoUid string `json:"team_main_photo_uid"` // 团购主图uid
  32. TeamMainPhotoSymbol int `json:"team_main_photo_symbol"` // 团购主图类型
  33. TeamBuyingPrice float64 `json:"team_buying_price"` // 团购售价
  34. TeamBuyingRelatedAt string `json:"team_buying_related_at"` // 关联团购时间
  35. // 招募要求
  36. TalentType string `json:"talent_type"` // 达人类型
  37. RecruitDdl string `json:"recruit_ddl"` // 招募截至时间
  38. RecruitStrategys []ShowSRecruitStrategy `json:"recruit_strategys"` // 定价策略
  39. // 执行要求
  40. TaskForm int `json:"task_form"` // 任务形式,1-2分别代表线下探店,素材分发
  41. ContentType int `json:"content_type"` // 内容形式,1代表图文,2代表视频
  42. TaskDetail string `json:"task_detail"` // 任务详情
  43. LocalBrief []gorm_model.LocalLifeBrief `json:"local_brief"` // Brief
  44. LocalMaterial []gorm_model.LocalLifeMaterial `json:"local_material"` // 素材
  45. }
  46. type ShowSLocalRequest struct {
  47. LocalId string `json:"local_id"` // 本地生活ID
  48. SLocalId int `json:"s_local_id"` // 服务商本地生活id
  49. }
  50. func NewShowSLocalRequest() *ShowSLocalRequest {
  51. return new(ShowSLocalRequest)
  52. }
  53. func NewShowSLocalResponse() *CommonResponse {
  54. resp := new(CommonResponse)
  55. resp.Data = new(ShowSLocalData)
  56. return resp
  57. }