gas_cylinder.go 856 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. package dto
  2. import (
  3. "gas-cylinder-api/common/dto"
  4. )
  5. type GasCylinderGetPageReq struct {
  6. dto.Pagination `search:"-"`
  7. InnerCode string `form:"innerCode" search:"type:contains;column:inner_code;table:gas_cylinder"` // 商品名称
  8. GasCylinderOrder
  9. }
  10. type GasCylinderOrder struct {
  11. CreatedAtOrder string `search:"type:order;column:created_at;table:gas_cylinder" form:"createdAtOrder" default:"desc"`
  12. }
  13. func (m *GasCylinderGetPageReq) GetNeedSearch() interface{} {
  14. return *m
  15. }
  16. type GasCylinderGetReq struct {
  17. InnerCode string `uri:"inner_code"`
  18. }
  19. func (s *GasCylinderGetReq) GetInnerCode() interface{} {
  20. return s.InnerCode
  21. }
  22. type GasCylinderGetByUidReq struct {
  23. ChipUid string `uri:"chipUid"`
  24. }
  25. func (s *GasCylinderGetByUidReq) GetChipUid() interface{} {
  26. return s.ChipUid
  27. }
  28. type GasCylinderMockReq struct {
  29. DeptId int `json:"deptId"`
  30. }