<filename>watero_go/utils/mapping.py<gh_stars>0
#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
File : mapping.py
Author : <NAME>
CreateDate : 2019-05-26 22:15:09 
Note : 
"""

from enum import Enum, unique


@unique
class Service(Enum):
    """
    服务名称
    """
    BASE_SERVICE = 'base_service'


@unique
class Route(Enum):
    """
    服务路由
    """
    AUTH = '/auth'
    HEARTBEAT = '/heartbeat'
    RESOURCE = '/resource'

<filename>watero_go/utils/mapping.py<gh_stars>0
#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
File : mapping.py
Author : <NAME>
CreateDate : 2019-05-26 22:15:09 
Note : 
"""

from enum import Enum, unique


@unique
class Service(Enum):
    """
    服务名称
    """
    BASE_SERVICE = 'base_service'


@unique
class Route(Enum):
    """
    服务路由
    """
    AUTH = '/auth'
    HEARTBEAT = '/heartbeat'
    RESOURCE = '/resource'

#!/usr/bin/env python # -*- coding:utf-8 -*- File : mapping.py Author : <NAME> CreateDate : 2019-05-26 22:15:09  Note : 服务名称 服务路由