operation_log.go 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package dto
  2. import (
  3. "gas-cylinder-api/common/dto"
  4. )
  5. type OperationLogGetPageReq struct {
  6. dto.Pagination `search:"-"`
  7. OptType int `form:"optType" search:"type:exact;column:opt_type;table:operation_log"` // 气瓶流转步骤
  8. InnerCode string `form:"innerCode" search:"type:contains;column:inner_code;table:operation_log"` //
  9. }
  10. func (m *OperationLogGetPageReq) GetNeedSearch() interface{} {
  11. return *m
  12. }
  13. type OperationLogInsertReq struct {
  14. Id int `json:"id" comment:"编码" swaggerignore:"true"` // 编码
  15. ChipUidList []string `json:"chipUidList"` // 高频编码列表
  16. OptType string `json:"optType"` // 气瓶流转步骤
  17. CurrentEnterprise string `json:"currentEnterprise"` // 当前企业ID OptType=25 OptType=27 时必填
  18. }
  19. func (s *OperationLogInsertReq) GetId() interface{} {
  20. return s.Id
  21. }
  22. type OperationLogInsertForGasStationReq struct {
  23. Id int `json:"id" comment:"编码" swaggerignore:"true"` // 编码
  24. ChipUid string `json:"chipUid"` // 高频编码
  25. Sn string `json:"sn"` // 设备标签
  26. }
  27. func (s *OperationLogInsertForGasStationReq) GetId() interface{} {
  28. return s.Id
  29. }
  30. type OperationLogGetReq struct {
  31. Id int `uri:"id"`
  32. }
  33. func (s *OperationLogGetReq) GetId() interface{} {
  34. return s.Id
  35. }