forked from ebhomengo/niki
1
0
Fork 0
niki/entity/admin_status.go

20 lines
346 B
Go

package entity
type AdminStatus string
const (
AdminActiveStatus = AdminStatus("active")
AdminInactiveStatus = AdminStatus("inactive")
)
var AdminStatusStrings = map[AdminStatus]string{
AdminActiveStatus: "active",
AdminInactiveStatus: "inactive",
}
func (a AdminStatus) IsValid() bool {
_, ok := AdminStatusStrings[a]
return ok
}