后端successRepsonse修改

This commit is contained in:
猿小天
2023-01-25 21:30:56 +08:00
parent 3cf64e74e8
commit e78fc4ac07

View File

@@ -20,12 +20,10 @@ class SuccessResponse(Response):
content_type=None,page=1,limit=1,total=1):
std_data = {
"code": 2000,
"data": {
"page": page,
"limit": limit,
"total": total,
"data": data
},
"data": data,
"msg": msg
}
super().__init__(std_data, status, template_name, headers, exception, content_type)