yinbangzhong
2024-06-19 6ad7d3b807f6bb186926f27bb343cf222ef44a26
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 //车站
)