operation_log.go 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. OperationLogOrder
  10. }
  11. type OperationLogOrder struct {
  12. CreatedAtOrder string `search:"type:order;column:created_at;table:operation_log" form:"createdAtOrder" default:"desc"`
  13. }
  14. func (m *OperationLogGetPageReq) GetNeedSearch() interface{} {
  15. return *m
  16. }
  17. type OperationLogInsertReq struct {
  18. Id int `json:"id" comment:"编码" swaggerignore:"true"` // 编码
  19. ChipUidList []string `json:"chipUidList"` // 高频编码列表
  20. OptType string `json:"optType"` // 气瓶流转步骤
  21. CurrentEnterprise string `json:"currentEnterprise"` // 当前企业ID OptType=25 OptType=27 时必填
  22. }
  23. func (s *OperationLogInsertReq) GetId() interface{} {
  24. return s.Id
  25. }
  26. type OperationLogInsertForGasStationReq struct {
  27. Id int `json:"id" comment:"编码" swaggerignore:"true"` // 编码
  28. ChipUid string `json:"chipUid"` // 高频编码
  29. Sn string `json:"sn"` // 设备标签
  30. }
  31. func (s *OperationLogInsertForGasStationReq) GetId() interface{} {
  32. return s.Id
  33. }
  34. type OperationLogGetReq struct {
  35. Id int `uri:"id"`
  36. }
  37. func (s *OperationLogGetReq) GetId() interface{} {
  38. return s.Id
  39. }