feat: faker data: identification
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user