equipment.go 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. package model
  2. type BaseModel struct {
  3. LaboratoryId int `json:"laboratory_id"` // 实验室ID
  4. LaboratoryName string `json:"laboratory_name"` // 实验室名称
  5. }
  6. // DeviceStatistics 实验设备使用数据
  7. type DeviceStatistics struct {
  8. BaseModel
  9. BaseEquipment int `json:"base_equipment"` // 基础科研设备
  10. LaboratoryEquipment int `json:"laboratory_equipment"` // 实验室设备
  11. UseTime float64 `json:"use_time"` // 使用时长
  12. ExperimentalData int `json:"experimental_data"` // 实验数据
  13. }
  14. // ExperimentalData 实验数据
  15. type ExperimentalData struct {
  16. Year string `json:"year"` // 年份
  17. Quantity float64 `json:"quantity"` // 实验数据数量
  18. }
  19. type Resp struct {
  20. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  21. Data interface{} `json:"data"`
  22. }
  23. // ExperimentalData 实验数据
  24. type ExperimentalDatas struct {
  25. BaseModel
  26. List []ExperimentalData `json:"list"`
  27. }
  28. // 实验室预约信息
  29. type Appointment struct {
  30. BaseModel
  31. Total int `json:"total"` // 设备总数
  32. WeekAppointment int `json:"week_appointment"` // 本周预约
  33. MonthAppointment int `json:"month_appointment"` // 本月预约
  34. YearAppointment int `json:"year_appointment"` // 本年预约
  35. UsageRate int `json:"usage_rate"` //使用率
  36. WeekCompliance int `json:"week_compliance"` // 本周履约率
  37. MonthCompliance int `json:"month_compliance"` // 本月履约率
  38. YearCompliance int `json:"year_compliance"` // 本年履约率
  39. }
  40. //设备使用高峰时段
  41. type PeakHours struct {
  42. BaseModel
  43. PeakHours string `json:"peak_hours"` //高峰时段
  44. }
  45. // 高频使用设备
  46. type HighEquipment struct {
  47. BaseModel
  48. Equipment string `json:"equipment"` //高频设备
  49. }