面包店
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.6 KiB

8 months ago
8 months ago
8 months ago
8 months ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. }
  27. type GoodsRangeData struct {
  28. PriceRange string `json:"price_range"`
  29. LinePriceRange string `json:"line_price_range"`
  30. ProfitRange string `json:"profit_range"`
  31. WeightRange string `json:"weight_range"`
  32. }
  33. type GoodsListReq struct {
  34. Title string `form:"title"`
  35. MerchantName string `form:"merchant_name"`
  36. PageId string `form:"page"`
  37. PageSize string `form:"limit"`
  38. }
  39. type GoodListResp struct {
  40. GoodsId int64 `json:"id"` // 商品id
  41. Price float64 `json:"price"`
  42. CreateTime string `json:"create_time"`
  43. UpdateTIme string `json:"update_time"`
  44. Stock int `json:"stock"`
  45. SkuList []*model.Sku `json:"sku_list"`
  46. SaleCount int `json:"sale_count"`
  47. Title string `json:"title"`
  48. Image string `json:"image"`
  49. State string `json:"state"`
  50. }
  51. type Sku struct {
  52. Name string `json:"name"`
  53. Value string `json:"value"`
  54. }