2024-01-02 15:35:26 +00:00
|
|
|
package entity
|
|
|
|
|
2024-08-01 10:20:18 +00:00
|
|
|
type AdminStatus string
|
2024-01-02 15:35:26 +00:00
|
|
|
|
|
|
|
const (
|
2024-08-01 10:20:18 +00:00
|
|
|
AdminActiveStatus = AdminStatus("active")
|
|
|
|
AdminInactiveStatus = AdminStatus("inactive")
|
2024-01-02 15:35:26 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var AdminStatusStrings = map[AdminStatus]string{
|
|
|
|
AdminActiveStatus: "active",
|
2024-03-14 13:38:42 +00:00
|
|
|
AdminInactiveStatus: "inactive",
|
2024-01-02 15:35:26 +00:00
|
|
|
}
|
|
|
|
|
2024-08-01 10:20:18 +00:00
|
|
|
func (a AdminStatus) IsValid() bool {
|
|
|
|
_, ok := AdminStatusStrings[a]
|
2024-01-02 15:35:26 +00:00
|
|
|
|
2024-08-01 10:20:18 +00:00
|
|
|
return ok
|
2024-01-02 15:35:26 +00:00
|
|
|
}
|