面包店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

md_goods_list.go 1.7 KiB

8 months ago
7 months ago
8 months ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. package md
  2. import (
  3. "applet/app/db/model"
  4. )
  5. // MallGoodsListReq
  6. //
  7. // Title 标题
  8. // CategoryId 类目id
  9. // SaleState 销售状态
  10. // GoodsId 销售状态
  11. // ActivityType 参加的活动类型
  12. // PageId 页数
  13. // PageSize 每页显示记录数
  14. type MallGoodsListReq struct {
  15. Title string `json:"title"`
  16. Name string `json:"name"`
  17. CategoryId string `json:"category_id"`
  18. SkuCode string `json:"sku_code"`
  19. SaleState string `json:"sale_state"`
  20. PageId string `json:"pageId"`
  21. PageSize string `json:"pageSize"`
  22. OrderBy string `json:"order_by"`
  23. OrderBySate string `json:"order_by_sate"`
  24. StartPrice string `json:"start_price"`
  25. EndPrice string `json:"end_price"`
  26. EnterpriseId string `json:"enterprise_id"`
  27. }
  28. type GoodsRangeData struct {
  29. PriceRange string `json:"price_range"`
  30. LinePriceRange string `json:"line_price_range"`
  31. ProfitRange string `json:"profit_range"`
  32. WeightRange string `json:"weight_range"`
  33. }
  34. type GoodsListReq struct {
  35. Title string `form:"title"`
  36. MerchantName string `form:"merchant_name"`
  37. PageId string `form:"page"`
  38. PageSize string `form:"limit"`
  39. }
  40. type GoodListResp struct {
  41. GoodsId int64 `json:"id"` // 商品id
  42. Price float64 `json:"price"`
  43. CreateTime string `json:"create_time"`
  44. UpdateTIme string `json:"update_time"`
  45. Stock int `json:"stock"`
  46. SkuList []*model.Sku `json:"sku_list"`
  47. SaleCount int `json:"sale_count"`
  48. Title string `json:"title"`
  49. Image string `json:"image"`
  50. State string `json:"state"`
  51. }
  52. type Sku struct {
  53. Name string `json:"name"`
  54. Value string `json:"value"`
  55. }