mirror of
https://shylinux.com/x/community
synced 2025-04-26 01:54:05 +08:00
28 lines
549 B
Go
28 lines
549 B
Go
package gonganxitong
|
|
|
|
import "shylinux.com/x/ice"
|
|
|
|
type userPlace struct{ Table }
|
|
|
|
func init() { ice.TeamCtxCmd(userPlace{}) }
|
|
|
|
type UserPlaceRole int
|
|
|
|
const (
|
|
UserPlaceVisitor UserPlaceRole = iota
|
|
UserPlaceCreator
|
|
UserPlaceLandlord
|
|
UserPlaceTenant
|
|
UserPlaceAdmin
|
|
)
|
|
|
|
var UserPlaceRoleList = map[UserPlaceRole]string{
|
|
UserPlaceVisitor: "visitor",
|
|
UserPlaceCreator: "creator",
|
|
UserPlaceLandlord: "landlord",
|
|
UserPlaceTenant: "tenant",
|
|
UserPlaceAdmin: "admin",
|
|
}
|
|
|
|
func (s UserPlaceRole) String() string { return UserPlaceRoleList[s] }
|