dev文件夹合并至utils

This commit is contained in:
wojiaoyishang
2023-02-11 13:34:46 +08:00
parent 0ad00448d8
commit 67b1462453
15 changed files with 107 additions and 108 deletions
+2
View File
@@ -44,6 +44,8 @@ def auto_model_jsonify(data, model: db.Model):
def model_to_dicts(schema: ma.Schema, data):
"""
将模型查询的数据对象转化为字典
:param schema: schema类
:param model: sqlalchemy查询结果
:return: 返回单个查询结果