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