验证码
邮件,依赖
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import datetime
|
||||
|
||||
from common.model import BaseModel, Column, Integer, String, DateTime
|
||||
from common.model import BaseModel, Column, Integer, String, DateTime, SQLAlchemyAutoSchema
|
||||
|
||||
|
||||
class DictType(BaseModel):
|
||||
@@ -14,6 +14,13 @@ class DictType(BaseModel):
|
||||
update_time = Column(DateTime, default=datetime.datetime.now, onupdate=datetime.datetime.now, comment='更新时间')
|
||||
|
||||
|
||||
class DictTypeSchema(SQLAlchemyAutoSchema):
|
||||
class Meta:
|
||||
model = DictType
|
||||
include_fk = True
|
||||
load_instance = True
|
||||
|
||||
|
||||
class DictData(BaseModel):
|
||||
__tablename__ = 'sys_dict_data'
|
||||
id = Column(Integer, primary_key=True)
|
||||
@@ -25,3 +32,10 @@ class DictData(BaseModel):
|
||||
remark = Column(String(255), comment='备注')
|
||||
create_time = Column(DateTime, default=datetime.datetime.now, comment='创建时间')
|
||||
update_time = Column(DateTime, default=datetime.datetime.now, onupdate=datetime.datetime.now, comment='更新时间')
|
||||
|
||||
|
||||
class DictDataSchema(SQLAlchemyAutoSchema):
|
||||
class Meta:
|
||||
model = DictData
|
||||
include_fk = True
|
||||
load_instance = True
|
||||
|
||||
Reference in New Issue
Block a user