1234567891011121314151617181920212223242526272829303132333435363738 |
- package dto
- import (
- "gas-cylinder-api/common/dto"
- )
- type GasCylinderGetPageReq struct {
- dto.Pagination `search:"-"`
- InnerCode string `form:"innerCode" search:"type:contains;column:inner_code;table:gas_cylinder"` // 商品名称
- GasCylinderOrder
- }
- type GasCylinderOrder struct {
- CreatedAtOrder string `search:"type:order;column:created_at;table:gas_cylinder" form:"createdAtOrder" default:"desc"`
- }
- func (m *GasCylinderGetPageReq) GetNeedSearch() interface{} {
- return *m
- }
- type GasCylinderGetReq struct {
- InnerCode string `uri:"inner_code"`
- }
- func (s *GasCylinderGetReq) GetInnerCode() interface{} {
- return s.InnerCode
- }
- type GasCylinderGetByUidReq struct {
- ChipUid string `uri:"chipUid"`
- }
- func (s *GasCylinderGetByUidReq) GetChipUid() interface{} {
- return s.ChipUid
- }
- type GasCylinderMockReq struct {
- DeptId int `json:"deptId"`
- }
|