14 lines
234 B
Python
14 lines
234 B
Python
from abc import abstractmethod
|
|
|
|
|
|
class Service:
|
|
@abstractmethod
|
|
async def initialize(self):
|
|
"""初始化服务"""
|
|
pass
|
|
|
|
@abstractmethod
|
|
async def shutdown(self):
|
|
"""关闭服务"""
|
|
pass
|