init push
This commit is contained in:
33
internal/domain/fleet_status/const.go
Normal file
33
internal/domain/fleet_status/const.go
Normal file
@@ -0,0 +1,33 @@
|
||||
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,
|
||||
}
|
||||
Reference in New Issue
Block a user