equipment.go 882 B

12345678910111213141516171819202122232425262728
  1. package model
  2. import "dashoo.cn/common_definition/comm_def"
  3. type BaseModel struct {
  4. LaboratoryId int `json:"laboratory_id"` // 实验室ID
  5. LaboratoryName string `json:"laboratory_name"` // 实验室名称
  6. }
  7. // DeviceStatistics 实验设备使用数据
  8. type DeviceStatistics struct {
  9. BaseModel
  10. BaseEquipment int `json:"base_equipment"` // 基础科研设备
  11. LaboratoryEquipment int `json:"laboratory_equipment"` // 实验室设备
  12. UseTime float64 `json:"use_time"` // 使用时长
  13. ExperimentalData int `json:"experimental_data"` // 实验数据
  14. }
  15. // ExperimentalData 实验数据
  16. type ExperimentalData struct {
  17. Year string `json:"year"` // 年份
  18. Quantity float64 `json:"quantity"` // 实验数据数量
  19. }
  20. type Resp struct {
  21. CommonMsg *comm_def.CommonMsg `json:"common_msg"`
  22. Data interface{}
  23. }