智慧食堂
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.

34 lines
1.3 KiB

  1. package md
  2. type DeviceListReq struct {
  3. Page int `json:"page" label:"页码"`
  4. Limit int `json:"limit" label:"每页数量"`
  5. EnterpriseName string `json:"enterprise_name" label:"校企名称"`
  6. Name string `json:"name" label:"档口名称"`
  7. StartDate string `json:"start_date" label:"起始时间"`
  8. EndDate string `json:"end_date" label:"截止时间"`
  9. }
  10. type DeviceSaveReq struct {
  11. Name string `json:"name" binding:"required"`
  12. DeviceSn string `json:"device_sn" binding:"required"`
  13. EnterpriseId int `json:"enterprise_id" binding:"required"`
  14. Memo string `json:"memo"`
  15. }
  16. type FactoryDeviceSaveReq struct {
  17. Name string `json:"name" binding:"required"`
  18. TerminalId string `json:"terminal_id" binding:"required"`
  19. EnterpriseId int `json:"enterprise_id" binding:"required"`
  20. Memo string `json:"memo"`
  21. }
  22. type FactoryDeviceListReq struct {
  23. Page int `json:"page" label:"页码"`
  24. Limit int `json:"limit" label:"每页数量"`
  25. EnterpriseName string `json:"enterprise_name" label:"校企名称"`
  26. Name string `json:"name" label:"档口名称"`
  27. StartDate string `json:"start_date" label:"起始时间"`
  28. EndDate string `json:"end_date" label:"截止时间"`
  29. }