22 lines
422 B
Python
22 lines
422 B
Python
# 模板表
|
|
from python_core.kv import kv
|
|
from .db import Db
|
|
from .types import TemplateInfo
|
|
|
|
class TemplateDb(Db):
|
|
|
|
def __init__(self):
|
|
self.key = "template"
|
|
pass
|
|
|
|
def list(self)->list[TemplateInfo]:
|
|
...
|
|
|
|
def get(self, id: str)->TemplateInfo:
|
|
...
|
|
|
|
def create(self, info: TemplateInfo):
|
|
...
|
|
|
|
def remove(self, id: str):
|
|
... |