forked from ebhomengo/niki
20 lines
346 B
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
|
|
}
|