package api const GONGANXITONG_USER = "web.team.gonganxitong.user" const GONGANXITONG_CITY = "web.team.gonganxitong.city" const GONGANXITONG_STREET = "web.team.gonganxitong.street" const GUANLIXITONG_COMPANY = "web.team.guanlixitong.company" const ( ROOT = "root" TECH = "tech" VOID = "void" VISITOR = "visitor" CREATOR = "creator" LEADER = "leader" WORKER = "worker" SERVER = "server" ) type AuthStatus int const ( AuthCreate AuthStatus = iota AuthRequest AuthIssued AuthRevoked ) var AuthStatusList = map[AuthStatus]string{ AuthCreate: "create", AuthRequest: "request", AuthIssued: "issued", AuthRevoked: "revoked", } func (s AuthStatus) String() string { return AuthStatusList[s] } type AuthType int const ( AuthRoot AuthType = iota AuthCity // 1 AuthPersonal // 2 AuthService // 3 AuthCompany // 4 AuthSchool // 5 AuthStreet // 6 ) var AuthTypeList = map[AuthType]string{ AuthRoot: "root", AuthCity: "city", AuthPersonal: "personal", AuthService: "service", AuthCompany: "company", AuthSchool: "school", AuthStreet: "street", }