yinbangzhong
2024-06-20 a5429b8a83e1b4a48c2a3b9b0b475f08a114837c
constvar/const.go
@@ -17,3 +17,19 @@
   BoolTypeTrue  BoolType = 1 // true
   BoolTypeFalse BoolType = 2 // false
)
func (slf BoolType) IsValid() bool {
   return slf == BoolTypeTrue || slf == BoolTypeFalse
}
func (slf BoolType) Bool() bool {
   return slf == BoolTypeTrue
}
type Class int
const (
   ClassLocomotive Class = 1 //机车
   ClassTrain      Class = 2 //车次
   ClassStation    Class = 3 //车站
)