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

16 lines
240 B
Go

package entity
type UserRole string
const (
UserBenefactorRole = UserRole("benefactor")
)
var UserRoleStrings = map[UserRole]string{
UserBenefactorRole: "benefactor",
}
func (s UserRole) String() string {
return UserRoleStrings[s]
}