find_store.go 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package http_model
  2. type FindStoreRequest struct {
  3. StoreID int `json:"store_id"`
  4. }
  5. type StorePhoto struct {
  6. PhotoUrl string `json:"photo_url"` // 图片或视频url
  7. PhotoUid string `json:"photo_uid"`
  8. Symbol int64 `json:"symbol"` // 标志位,1为主图,2为轮播图,3为轮播图视频,4详情图,5详情图视频
  9. }
  10. type FindStoreData struct {
  11. StoreId int `json:"store_id"` // 门店id
  12. StoreName string `json:"store_name"` // 门店名称
  13. StoreCategory string `json:"store_category"` // 门店类目(/分隔)
  14. StoreType int `json:"store_type"` // 门店类型,1单门店,2连锁门店
  15. StoreLocation string `json:"store_location"` // 门店地址
  16. StoreDetail string `json:"store_detail"` // 门店特点
  17. StoreLink string `json:"store_link"` // 分销链接
  18. TeamNum int `json:"team_num"` // 包含团购套餐数
  19. BelongEnterpriseId string `json:"belong_enterprise_id"` // 门店所属商家ID
  20. IsDeleted int `json:"is_deleted"` // 已删除(0否 1是)
  21. OperateType int `json:"operate_type"` // 操作人类型(1商家 2后台)
  22. EnterpriseId string `json:"enterprise_id"` // 商家id
  23. SubAccountId int `json:"sub_account_id"` // 商家子账号id
  24. CreatedAt string `json:"created_at"` // 创建时间
  25. UpdatedAt string `json:"updated_at"` // 更新时间
  26. StorePhotos []*StorePhoto `json:"store_photos"` // 商品图片列表
  27. }
  28. func NewFindStoreRequest() *FindStoreRequest {
  29. return new(FindStoreRequest)
  30. }
  31. func NewFindStoreResponse() *CommonResponse {
  32. resp := new(CommonResponse)
  33. resp.Data = new(FindStoreData)
  34. return resp
  35. }