operation_log.go 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. UserId int `json:"userId"` // 调拨用户ID
  23. Type int `json:"type"` // 录入类型 1-扫码 2 调拨
  24. }
  25. func (s *OperationLogInsertReq) GetId() interface{} {
  26. return s.Id
  27. }
  28. type OperationLogInsertForGasStationReq struct {
  29. Id int `json:"id" comment:"编码" swaggerignore:"true"` // 编码
  30. ChipUid string `json:"chipUid"` // 高频编码
  31. Sn string `json:"sn"` // 设备标签
  32. }
  33. func (s *OperationLogInsertForGasStationReq) GetId() interface{} {
  34. return s.Id
  35. }
  36. type OperationLogGetReq struct {
  37. Id int `uri:"id"`
  38. }
  39. func (s *OperationLogGetReq) GetId() interface{} {
  40. return s.Id
  41. }