instrument.go 5.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package equipment
  5. import (
  6. "github.com/gogf/gf/os/gtime"
  7. internal2 "lims_adapter/model/equipment/internal"
  8. )
  9. // Instrument is the golang structure for table instrument.
  10. type Instrument internal2.Instrument
  11. // Fill with you ideas below.
  12. // 设备Id、计费单价
  13. type InstrumentId struct {
  14. InstrumentId int `json:"instrument_id"` // 设备Id
  15. UnitCount float64 `json:"unit_count"` // 计费单价
  16. Rate int `json:"rate"` // 优惠比例
  17. }
  18. type InstrumentEntity struct {
  19. Instrument Instrument
  20. CountType string `json:"countType"`
  21. }
  22. type SearchEntity struct {
  23. Id int `orm:"Id,primary" json:"id" excel:"设备编码"`
  24. Name string `orm:"Name" json:"name" excel:"设备名称"` // 设备名称
  25. InstrType int `orm:"InstrType" json:"instr_type"` // 设备类别
  26. InstrTypeStr string `orm:"-" json:"-" excel:"设备类别"` // 设备类别
  27. Brand string `orm:"Brand" json:"brand" excel:"设备品牌"` // 设备品牌
  28. Belongs int `orm:"Belongs" json:"belongs"` // 设备所属 1内部 2外部
  29. BelongsName string `orm:"BelongsName" json:"belongs_name"` // 设备所属名称
  30. Rate int `orm:"Rate" json:"rate"` // 优惠比例
  31. UnitCount float64 `orm:"UnitCount" json:"unit_count"` // 计费单价
  32. FactoryNum string `orm:"FactoryNum" json:"factory_num" excel:"出厂编号"` // 出厂编号
  33. Status int `orm:"Status" json:"status"` // 设备状态
  34. StatusStr string `orm:"-" json:"-" excel:"设备状态"` // 设备状态 string
  35. IsAppoint int `orm:"IsAppoint" json:"is_appoint"` // 是否需要预约
  36. IsAppointStr string `orm:"-" json:"-" excel:"是否需要预约"` // 是否需要预约 string
  37. Remark string `orm:"Remark" json:"remark" excel:"备注"` // 备注
  38. Code string `orm:"Code,unique" json:"code"` // 设备编码
  39. InstrImgUrl string `orm:"InstrImgUrl" json:"instr_img_url"` // 设备图片Url
  40. Spec string `orm:"Spec" json:"spec"` // 规格
  41. PurchaseTime *gtime.Time `orm:"PurchaseTime" json:"purchase_time"` // 采购日期
  42. Responsible string `orm:"Responsible" json:"responsible"` // 责任人
  43. Location string `orm:"Location" json:"location"` // 设备所在位置
  44. TimeNotification int `orm:"TimeNotification" json:"time_notification"` // 有效期提醒
  45. CalibrationDeadline int `orm:"CalibrationDeadline" json:"calibration_deadline"` // 校准使用期限
  46. CalibrationDeadlineType int `orm:"CalibrationDeadlineType" json:"calibration_deadline_type"` // 期限类型
  47. CreatedBy int `orm:"CreatedBy" json:"created_by"` // 创建人
  48. UpdatedBy int `orm:"UpdatedBy" json:"updated_by"` // 更新人
  49. Model string `orm:"Model" json:"model"` // 型号
  50. SupplierId int `orm:"SupplierId" json:"supplier_id"` // 供应商
  51. IsOpen int `orm:"IsOpen" json:"is_open"` // 是否开启预约 1开启 2未开启
  52. Weekday string `orm:"Weekday" json:"weekday"` // 每周可预约日
  53. BeginAt *gtime.Time `orm:"BeginAt" json:"begin_at"` // 预约开始时段
  54. EndAt *gtime.Time `orm:"EndAt" json:"end_at"` // 预约结束时段
  55. Terminal string `orm:"Terminal" json:"terminal"` // 信息终端
  56. TodayHour float64 `json:"today_hour"` // 今日预约剩余Mob
  57. TomorrowHour float64 `json:"tomorrow_hour"` // 明日预约剩余空闲时间
  58. Qualification int `json:"qualification"` // 人员预约资格 1普通资格 2自身资格
  59. }