mirror of
https://github.com/fusion44/blitz_api.git
synced 2026-08-16 12:20:14 +02:00
feat: define AppsBase as abstract
This commit is contained in:
parent
df08eff14f
commit
f592ba0b31
1 changed files with 8 additions and 0 deletions
|
|
@ -1,15 +1,23 @@
|
|||
from abc import abstractmethod
|
||||
|
||||
|
||||
class AppsBase:
|
||||
@abstractmethod
|
||||
async def get_app_status_single(self, app_id: str):
|
||||
raise NotImplementedError()
|
||||
|
||||
@abstractmethod
|
||||
async def get_app_status(self):
|
||||
raise NotImplementedError()
|
||||
|
||||
@abstractmethod
|
||||
async def get_app_status_sub(self):
|
||||
raise NotImplementedError()
|
||||
|
||||
@abstractmethod
|
||||
async def install_app_sub(self, app_id: str):
|
||||
raise NotImplementedError()
|
||||
|
||||
@abstractmethod
|
||||
async def uninstall_app_sub(self, app_id: str, delete_data: bool):
|
||||
raise NotImplementedError()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue