package model import model2 "gas-cylinder-api/common/model" var ( GasCylinderStatusWeighty = 1 // 重瓶区 GasCylinderStatusEmpty = 2 // 空瓶区 GasCylinderStatusUnqualified = 3 // 不合格瓶区 GasCylinderStatusStateMap = map[int]string{ GasCylinderStatusWeighty: "重瓶区", GasCylinderStatusEmpty: "空瓶区", GasCylinderStatusUnqualified: "不合格瓶区", } ) // 气瓶状态 type GasCylinderStatus struct { model2.Model InnerCode string `json:"inner_code"` // 1单位内编号 Status int `json:"status" gorm:"size:1;"` // 1-重瓶区 2-空瓶区 3-不合格瓶区 UserId int `json:"userId" gorm:"size:48;"` // 省平台用户id 司机 送气员 CompanyId int `json:"companyId" gorm:"size:48;"` // 所属公司id User SysUserOmit `json:"user" gorm:"foreignkey:UserId;references:Id"` Company SysDeptOmit `json:"company" gorm:"->;foreignkey:CompanyId;references:Id"` model2.ControlBy model2.ModelTime model2.DeptBy } func (GasCylinderStatus) TableName() string { return "gas_cylinder_status" }