fix
This commit is contained in:
10
python_core/database/material.py
Normal file
10
python_core/database/material.py
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
|
||||||
|
|
||||||
|
# 素材表
|
||||||
|
|
||||||
|
from python_core.kv import kv
|
||||||
|
from .db import Db
|
||||||
|
class MaterialDb(Db):
|
||||||
|
def __init__(self):
|
||||||
|
self.key = "material"
|
||||||
|
pass
|
||||||
8
python_core/database/model.py
Normal file
8
python_core/database/model.py
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# 模特表
|
||||||
|
|
||||||
|
from python_core.kv import kv
|
||||||
|
from .db import Db
|
||||||
|
class ModelDb(Db):
|
||||||
|
def __init__(self):
|
||||||
|
self.key = "model"
|
||||||
|
pass
|
||||||
12
python_core/database/project.py
Normal file
12
python_core/database/project.py
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
|
||||||
|
# 项目表
|
||||||
|
|
||||||
|
from python_core.kv import kv
|
||||||
|
from .db import Db
|
||||||
|
|
||||||
|
class ProjectDb(Db):
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
self.key = "project"
|
||||||
|
pass
|
||||||
@@ -1,13 +1,9 @@
|
|||||||
|
# 模板表
|
||||||
from python_core.kv import kv
|
from python_core.kv import kv
|
||||||
from .db import Db
|
from .db import Db
|
||||||
|
|
||||||
|
|
||||||
# 模板管理
|
|
||||||
# 实现模板的增删改查
|
|
||||||
# 主键 是模板的ID uuid
|
|
||||||
class TemplateDb(Db):
|
class TemplateDb(Db):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.key = "templates"
|
self.key = "template"
|
||||||
pass
|
pass
|
||||||
Reference in New Issue
Block a user