package model type BaseModel struct { LaboratoryId int `json:"laboratory_id"` // 实验室ID LaboratoryName string `json:"laboratory_name"` // 实验室名称 } // DeviceStatistics 实验设备使用数据 type DeviceStatistics struct { BaseModel BaseEquipment int `json:"base_equipment"` // 基础科研设备 LaboratoryEquipment int `json:"laboratory_equipment"` // 实验室设备 UseTime float64 `json:"use_time"` // 使用时长 ExperimentalData int `json:"experimental_data"` // 实验数据 } // ExperimentalData 实验数据 type ExperimentalData struct { Year string `json:"year"` // 年份 Quantity float64 `json:"quantity"` // 实验数据数量 } type Resp struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Data interface{} `json:"data"` } // ExperimentalData 实验数据 type ExperimentalDatas struct { BaseModel List []ExperimentalData `json:"list"` } // 实验室预约信息 type Appointment struct { BaseModel Total int `json:"total"` // 设备总数 WeekAppointment int `json:"week_appointment"` // 本周预约 MonthAppointment int `json:"month_appointment"` // 本月预约 YearAppointment int `json:"year_appointment"` // 本年预约 UsageRate int `json:"usage_rate"` //使用率 WeekCompliance int `json:"week_compliance"` // 本周履约率 MonthCompliance int `json:"month_compliance"` // 本月履约率 YearCompliance int `json:"year_compliance"` // 本年履约率 } //设备使用高峰时段 type PeakHours struct { BaseModel PeakHours string `json:"peak_hours"` //高峰时段 } // 高频使用设备 type HighEquipment struct { BaseModel Equipment string `json:"equipment"` //高频设备 }