34 lines
630 B
Go
34 lines
630 B
Go
package fleetstatus
|
|
|
|
const (
|
|
InspectionTypeAF = "A/F"
|
|
InspectionTypeENG1 = "ENG1"
|
|
InspectionTypeENG2 = "ENG2"
|
|
InspectionTypeMAIN1 = "MAIN1"
|
|
InspectionTypeMAIN2 = "MAIN2"
|
|
|
|
FleetStatusFileRefType = "fleet_status"
|
|
|
|
StatusActive = "active"
|
|
StatusServiced = "serviced"
|
|
FileCategoryWB = "wb"
|
|
FileCategoryBFI = "bfi"
|
|
)
|
|
|
|
func IsValidFileCategory(s string) bool {
|
|
switch s {
|
|
case FileCategoryWB, FileCategoryBFI:
|
|
return true
|
|
default:
|
|
return false
|
|
}
|
|
}
|
|
|
|
var InspectionTypeOrder = []string{
|
|
InspectionTypeAF,
|
|
InspectionTypeENG1,
|
|
InspectionTypeENG2,
|
|
InspectionTypeMAIN1,
|
|
InspectionTypeMAIN2,
|
|
}
|