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] }