const.go 764 B

1234567891011121314151617181920212223242526272829303132333435
  1. package constvar
  2. type AudioStatus int
  3. const (
  4. AudioStatusUploading AudioStatus = iota // 上传中
  5. AudioStatusUploadOk // 上传成功 待处理
  6. AudioStatusProcessing // 处理中
  7. AudioStatusFinish // 处理完成
  8. AudioStatusFailed // 处理失败
  9. )
  10. // BoolType 布尔类型
  11. type BoolType int
  12. const (
  13. BoolTypeTrue BoolType = 1 // true
  14. BoolTypeFalse BoolType = 2 // false
  15. )
  16. func (slf BoolType) IsValid() bool {
  17. return slf == BoolTypeTrue || slf == BoolTypeFalse
  18. }
  19. func (slf BoolType) Bool() bool {
  20. return slf == BoolTypeTrue
  21. }
  22. type Class int
  23. const (
  24. ClassLocomotive Class = 1 //机车
  25. ClassTrain Class = 2 //车次
  26. ClassStation Class = 3 //车站
  27. )