完善文档并添加示例插件

This commit is contained in:
wojiaoyishang
2025-01-30 16:56:12 +08:00
parent ac1f82e81d
commit 552bf77924
14 changed files with 891 additions and 5 deletions
+12
View File
@@ -0,0 +1,12 @@
from flask_marshmallow.sqla import SQLAlchemyAutoSchema
from ..models import Gift
class GiftSchema(SQLAlchemyAutoSchema):
class Meta:
model = Gift # table = models.Album.__table__
# include_relationships = True # 输出模型对象时同时对外键,是否也一并进行处理
include_fk = True # 序列化阶段是否也一并返回主键
# fields= ["id","name"] # 启动的字段列表
# exclude = ["id","name"] # 排除字段列表