reader.go 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package response
  2. import (
  3. "server/dao"
  4. "time"
  5. )
  6. type UHFReader struct {
  7. dao.UHFReader
  8. }
  9. type UHFReaderResponse struct {
  10. ID uint `json:"id"`
  11. DeviceCode string `json:"device_code"`
  12. DeviceName string `json:"device_name"`
  13. ConnectType string `json:"connect_type"`
  14. IPAddress string `json:"ip_address"`
  15. Port int `json:"port"`
  16. COMPort string `json:"com_port"`
  17. BaudRate int `json:"baud_rate"`
  18. Status string `json:"status"`
  19. IsActive bool `json:"is_active"`
  20. Description string `json:"description"`
  21. ParkingLotID uint `json:"parking_lot_id"`
  22. CreatedAt time.Time `json:"created_at"`
  23. UpdatedAt time.Time `json:"updated_at"`
  24. }
  25. type UHFReaderList struct {
  26. Total int64 `json:"total"`
  27. List []UHFReaderResponse `json:"list"`
  28. }
  29. type TagReadResult struct {
  30. ReaderID uint `json:"reader_id"`
  31. DeviceCode string `json:"device_code"`
  32. TagUII string `json:"tag_uii"`
  33. ReadTime int64 `json:"read_time"`
  34. }