show_s_local_life.go 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. LocalName string `json:"local_name"` // 本地生活名称
  13. LocalPlatform int `json:"local_platform"` // 任务平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
  14. TaskStatus int `json:"task_status"` // 任务状态
  15. CreateAt string `json:"create_at"` // 创建时间
  16. EnterpriseId string `json:"enterprise_id"` // 商家ID
  17. EnterprisePhone string `json:"enterprise_phone"` // 商家用户手机号码
  18. EstimatedCost float64 `json:"estimated_cost"` // 预估成本
  19. ServiceChargeRate float64 `json:"service_charge_rate"` // 公开服务费率
  20. PassAt string `json:"pass_at"` // 审核通过时间
  21. FinishAt string `json:"finish_at"` // 结案时间
  22. PayAt string `json:"pay_at"` // 支付时间
  23. AutoFailAt string `json:"auto_fail_at"` // 自动失效时间
  24. CreatorName string `json:"creator_name"` // 创建者名称
  25. Tools string `json:"tools"` // 工具选择
  26. AddToListOperator string `json:"add_to_list_operator"` // 加入商单操作人
  27. StrategyStatus int `json:"strategy_status"` // 定向任务是否替换招募策略,1有
  28. AgreeTime string `json:"agree_time"` // 同意加入商单时间
  29. RejectTime string `json:"reject_time"` // 拒绝加入商单时间
  30. // 关联主体
  31. StoreId int `json:"store_id"` // 关联门店id
  32. Donate int `json:"donate"` // 赠送达人套餐(1有赠送 2无赠送)
  33. StoreName string `json:"store_name"` // 门店名称
  34. StoreCategory string `json:"store_category"` // 门店类目(/分隔)
  35. StoreLocation string `json:"store_location"` // 门店位置
  36. TeamNum int `json:"team_num"` // 包含团购套餐数
  37. StoreMainPhotoUrl string `json:"store_main_photo_url"` // 门店主图URL
  38. StoreMainPhotoUid string `json:"store_main_photo_uid"` // 门店主图uid
  39. StoreMainPhotoSymbol int `json:"store_main_photo_symbol"` // 门店主图类型
  40. StoreRelatedAt string `json:"store_related_at"` // 关联门店时间
  41. TeamBuyingId int `json:"team_buying_id"` // 关联团购id
  42. TeamBuyingCategory string `json:"team_buying_category"` // 团购类目(/分隔)
  43. TeamBuyingName string `json:"team_buying_name"` // 团购标题
  44. TeamMainPhotoUrl string `json:"team_main_photo_url"` // 团购主图URL
  45. TeamMainPhotoUid string `json:"team_main_photo_uid"` // 团购主图uid
  46. TeamMainPhotoSymbol int `json:"team_main_photo_symbol"` // 团购主图类型
  47. TeamBuyingPrice float64 `json:"team_buying_price"` // 团购售价
  48. TeamBuyingRelatedAt string `json:"team_buying_related_at"` // 关联团购时间
  49. // 招募要求
  50. TalentType string `json:"talent_type"` // 达人类型
  51. RecruitDdl string `json:"recruit_ddl"` // 招募截至时间
  52. RecruitStrategys []ShowSRecruitStrategy `json:"recruit_strategys"` // 定价策略
  53. // 执行要求
  54. TaskForm int `json:"task_form"` // 任务形式,1-2分别代表线下探店,素材分发
  55. ContentType int `json:"content_type"` // 内容形式,1代表图文,2代表视频
  56. TaskDetail string `json:"task_detail"` // 任务详情
  57. LocalBrief []gorm_model.LocalLifeBrief `json:"local_brief"` // Brief
  58. LocalMaterial []gorm_model.LocalLifeMaterial `json:"local_material"` // 素材
  59. }
  60. type ShowSLocalRequest struct {
  61. LocalId string `json:"local_id"` // 本地生活ID
  62. SLocalId int `json:"s_local_id"` // 服务商本地生活id
  63. }
  64. func NewShowSLocalRequest() *ShowSLocalRequest {
  65. return new(ShowSLocalRequest)
  66. }
  67. func NewShowSLocalResponse() *CommonResponse {
  68. resp := new(CommonResponse)
  69. resp.Data = new(ShowSLocalData)
  70. return resp
  71. }