product_find.go 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. package http_model
  2. type FindProductRequest struct {
  3. ProductID int64 `json:"product_id"`
  4. }
  5. type ProductPhoto struct {
  6. PhotoUrl string `json:"photo_url"` // 图片或视频url
  7. Symbol int64 `json:"symbol"` // 图片为主图或详情图标志位,1为主图,2为详情图,3为视频
  8. }
  9. type FindProductData struct {
  10. ProductID int64 `json:"product_id"`
  11. ProductName string `json:"product_name"` // 商品名称
  12. ProductType int64 `json:"product_type"` // 商品类型
  13. ShopAddress string `json:"shop_address"` // 店铺地址,商品类型为线下品牌时需填写
  14. ProductPrice int64 `json:"product_price"` // 商品价值
  15. ProductPhotos []ProductPhoto `json:"product_photos"` // 商品图片列表
  16. ProductUrl string `json:"product_url"` // 商品链接,可为电商网址、公司官网、大众点评的店铺地址等可以说明商品信息或者品牌信息的线上地址;
  17. EnterpriseID int64 `json:"enterprise_id"` // 所属企业id
  18. BrandName string `json:"brand_name"` // 品牌名称
  19. }
  20. func NewFindProductRequest() *FindProductRequest {
  21. return new(FindProductRequest)
  22. }
  23. func NewFindProductResponse() *CommonResponse {
  24. resp := new(CommonResponse)
  25. resp.Data = new(FindProductData)
  26. return resp
  27. }