local_life_detail.go 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. package http_model
  2. import "youngee_b_api/model/gorm_model"
  3. type ShowLocalPhoto struct {
  4. PhotoUrl string `json:"photo_url"` // 图片url
  5. PhotoUid string `json:"photo_uid"` // uid
  6. FileName string `json:"name"` // 文件名
  7. }
  8. type ShowLocalData struct {
  9. // 系统信息
  10. LocalId string `json:"local_id"` // 本地生活ID
  11. LocalPlatform int `json:"local_platform"` // 任务平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
  12. TaskStatus int `json:"task_status"` // 任务状态
  13. CreateAt string `json:"create_at"` // 创建时间
  14. EnterpriseId string `json:"enterprise_id"` // 商家ID
  15. CreatorName string `json:"creator_name"` // 创建人名称
  16. EnterprisePhone string `json:"enterprise_phone"` // 商家用户手机号码
  17. EstimatedCost string `json:"estimated_cost"` // 预估成本
  18. ServiceChargeRate float64 `json:"service_charge_rate"` // 公开服务费率
  19. PassAt string `json:"pass_at"` // 招募开始时间
  20. LocalName string `json:"local_name"` // 任务名称
  21. // 关联主体
  22. PromoteBody int `json:"promote_body"` // 推广主体(1门店 2团购)
  23. Donate int `json:"donate"` // 赠送达人套餐(1有赠送 2无赠送)
  24. StoreId int `json:"store_id"` // 关联门店id
  25. StoreName string `json:"store_name"` // 门店名称
  26. StoreCategory string `json:"store_category"` // 门店类目(/分隔)
  27. StoreLocation string `json:"store_location"` // 门店地址
  28. StoreMainPhotoUrl string `json:"store_main_photo_url"` // 门店主图URL
  29. StoreMainPhotoUid string `json:"store_main_photo_uid"` // 门店主图uid
  30. StoreMainPhotoSymbol int `json:"store_main_photo_symbol"` // 门店主图类型
  31. StoreRelatedAt string `json:"store_related_at"` // 关联门店时间
  32. TeamBuyingId int `json:"team_buying_id"` // 关联团购id
  33. TeamBuyingCategory string `json:"team_buying_category"` // 团购类目(/分隔)
  34. TeamBuyingName string `json:"team_buying_name"` // 团购标题
  35. TeamMainPhotoUrl string `json:"team_main_photo_url"` // 团购主图URL
  36. TeamMainPhotoUid string `json:"team_main_photo_uid"` // 团购主图uid
  37. TeamMainPhotoSymbol int `json:"team_main_photo_symbol"` // 团购主图类型
  38. TeamBuyingPrice float64 `json:"team_buying_price"` // 团购售价
  39. TeamBuyingRelatedAt string `json:"team_buying_related_at"` // 关联团购时间
  40. // 招募要求
  41. TalentType string `json:"talent_type"` // 达人类型
  42. RecruitDdl string `json:"recruit_ddl"` // 招募截至时间
  43. RecruitStrategys []ShowSRecruitStrategy `json:"recruit_strategys"` // 招募策略
  44. // 执行要求
  45. TaskForm int `json:"task_form"` // 任务形式,1-2分别代表线下探店,素材分发
  46. ContentType int `json:"content_type"` // 内容形式,1代表图文,2代表视频
  47. TaskDetail string `json:"task_detail"` // 任务详情
  48. LocalBrief []gorm_model.LocalLifeBrief `json:"local_brief"` // Brief
  49. LocalMaterial []gorm_model.LocalLifeMaterial `json:"local_material"` // 素材
  50. // 工具选择
  51. Tools string `json:"tools"` // 工具选择,1邀约招募 2探店邀约 3审稿工具 4作品审查 5数据巡检 6结算账单
  52. }
  53. type ShowLocalRequest struct {
  54. LocalId string `json:"local_id"` // 本地生活ID
  55. }
  56. func NewShowLocalRequest() *ShowLocalRequest {
  57. return new(ShowLocalRequest)
  58. }
  59. func NewShowLocalResponse() *CommonResponse {
  60. resp := new(CommonResponse)
  61. resp.Data = new(ShowLocalData)
  62. return resp
  63. }