feat: faker data: identification

This commit is contained in:
Zhaolong
2022-01-26 17:11:24 +08:00
parent da9965e2ae
commit 1e3d584870
10 changed files with 206 additions and 28 deletions

View File

@@ -1,4 +1,4 @@
from __future__ import annotations
from utils.model import convert2dict
def response(resp: dict, status: int, headers=None):
@@ -6,6 +6,7 @@ def response(resp: dict, status: int, headers=None):
def success(code: int, msg: str, data: object):
data = convert2dict(data)
resp = {
"code": code,
"msg": msg,