security.py 227 B

1234567891011
  1. from enum import Enum
  2. class ServerEnum(str, Enum):
  3. WEB = "web"
  4. CUSTOMER = "customer"
  5. APP = "app"
  6. @classmethod
  7. def exist(cls, server_name: str) -> bool:
  8. return server_name in cls._value2member_map_