package constvar type AudioStatus int const ( AudioStatusUploading AudioStatus = iota // 上传中 AudioStatusUploadOk // 上传成功 待处理 AudioStatusProcessing // 处理中 AudioStatusFinish // 处理完成 AudioStatusFailed // 处理失败 ) // BoolType 布尔类型 type BoolType int const ( 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 //车站 )