面包店
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_scheme.go 1.2 KiB

9 months ago
9 months ago
9 months ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package md
  2. import (
  3. "applet/app/db/model"
  4. )
  5. type SchemeListResp struct {
  6. Data model.Scheme `json:"data"`
  7. EnterpriseList []struct {
  8. Id int `json:"id"`
  9. Name string `json:"name"`
  10. } `json:"enterprise_list"`
  11. }
  12. type UpdateSchemeStateReq struct {
  13. Id int `json:"id" binding:"required" label:"id"`
  14. State int `json:"state" binding:"required" label:"状态"`
  15. }
  16. type AddSchemeReq struct {
  17. Name string `json:"name" binding:"required" label:"名称"`
  18. Memo string `json:"memo" binding:"required" label:"备注"`
  19. }
  20. type UpdateSchemeReq struct {
  21. Id int `json:"id" binding:"required" label:"id"`
  22. Name string `json:"name" binding:"required" label:"名称"`
  23. Memo string `json:"memo" binding:"required" label:"备注"`
  24. }
  25. type SchemeBindEnterpriseReq struct {
  26. Id int `json:"id" binding:"required" label:"id"`
  27. EnterpriseIds []int `json:"enterprise_ids" label:"单位id"`
  28. }
  29. type SaveSchemeGoodsReq struct {
  30. SchemeId int `json:"scheme_id" binding:"required" label:"id"`
  31. GoodsId int64 `json:"goods_id"` // 商品id
  32. SkuList []SaveSchemeSku `json:"sku_list"`
  33. }
  34. type SaveSchemeSku struct {
  35. SkuId int64 `json:"sku_id"`
  36. Price string `json:"price"` // 商品id
  37. }