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

45 line
1.2 KiB

  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. Name string `json:"name"`
  9. } `json:"enterprise_list"`
  10. }
  11. type UpdateSchemeStateReq struct {
  12. Id int `json:"id" binding:"required" label:"id"`
  13. State int `json:"state" binding:"required" label:"状态"`
  14. }
  15. type AddSchemeReq struct {
  16. Name string `json:"name" binding:"required" label:"名称"`
  17. Memo string `json:"memo" binding:"required" label:"备注"`
  18. }
  19. type UpdateSchemeReq struct {
  20. Id int `json:"id" binding:"required" label:"id"`
  21. Name string `json:"name" binding:"required" label:"名称"`
  22. Memo string `json:"memo" binding:"required" label:"备注"`
  23. }
  24. type SchemeBindEnterpriseReq struct {
  25. Id int `json:"id" binding:"required" label:"id"`
  26. EnterpriseIds []int `json:"enterprise_ids" label:"单位id"`
  27. }
  28. type SaveSchemeGoodsReq struct {
  29. SchemeId int `json:"scheme_id" binding:"required" label:"id"`
  30. GoodsId int64 `json:"goods_id"` // 商品id
  31. SkuList []SaveSchemeSku `json:"sku_list"`
  32. }
  33. type SaveSchemeSku struct {
  34. SkuId int64 `json:"sku_id"`
  35. Price string `json:"price"` // 商品id
  36. }