mirror of
https://shylinux.com/x/community
synced 2025-05-06 14:07:01 +08:00
32 lines
551 B
Go
32 lines
551 B
Go
package gonganxitong
|
|
|
|
import "shylinux.com/x/ice"
|
|
|
|
type place struct{ Table }
|
|
|
|
func init() { ice.TeamCtxCmd(place{}) }
|
|
|
|
type PlaceType int
|
|
|
|
const (
|
|
PlaceHouse PlaceType = iota
|
|
PlaceStore
|
|
PlaceOffice
|
|
PlaceSchool
|
|
PlacePublic
|
|
PlaceFactory
|
|
PlaceHospital
|
|
)
|
|
|
|
var PlaceTypeList = map[PlaceType]string{
|
|
PlaceHouse: "house",
|
|
PlaceStore: "store",
|
|
PlaceOffice: "office",
|
|
PlaceSchool: "school",
|
|
PlacePublic: "public",
|
|
PlaceFactory: "factory",
|
|
PlaceHospital: "hospital",
|
|
}
|
|
|
|
func (s PlaceType) String() string { return PlaceTypeList[s] }
|