gas_cylinder.go 624 B

123456789101112131415161718192021222324252627282930
  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:dispatch_cost"` // 商品名称
  8. }
  9. func (m *GasCylinderGetPageReq) GetNeedSearch() interface{} {
  10. return *m
  11. }
  12. type GasCylinderGetReq struct {
  13. InnerCode string `uri:"inner_code"`
  14. }
  15. func (s *GasCylinderGetReq) GetInnerCode() interface{} {
  16. return s.InnerCode
  17. }
  18. type GasCylinderGetByUidReq struct {
  19. ChipUid string `json:"chipUid"`
  20. }
  21. func (s *GasCylinderGetByUidReq) GetChipUid() interface{} {
  22. return s.ChipUid
  23. }