constvar/const.go
@@ -48,3 +48,23 @@ BoolTypeTrue BoolType = 1 // true BoolTypeFalse BoolType = 2 // false ) // MiniDictType 迷你字典类型 type MiniDictType int const ( MiniDictTypePlcBrand MiniDictType = iota + 1 // PLC品牌 MiniDictTypeBomVersionType // Bom版本类型 EarlyWarningDay //预警天数 InspectionWayType //质检方式类型 OutsourcingSupplierType //委外供应商类型 OutsourcingSupplierCreditGrade //信用等级 OutsourcingSupplierRange //供货范围 ) func (t MiniDictType) Valid() bool { if t <= 0 { return false } return true }