后端successRepsonse修改
This commit is contained in:
@@ -20,12 +20,10 @@ class SuccessResponse(Response):
|
|||||||
content_type=None,page=1,limit=1,total=1):
|
content_type=None,page=1,limit=1,total=1):
|
||||||
std_data = {
|
std_data = {
|
||||||
"code": 2000,
|
"code": 2000,
|
||||||
"data": {
|
"page": page,
|
||||||
"page": page,
|
"limit": limit,
|
||||||
"limit": limit,
|
"total": total,
|
||||||
"total": total,
|
"data": data,
|
||||||
"data": data
|
|
||||||
},
|
|
||||||
"msg": msg
|
"msg": msg
|
||||||
}
|
}
|
||||||
super().__init__(std_data, status, template_name, headers, exception, content_type)
|
super().__init__(std_data, status, template_name, headers, exception, content_type)
|
||||||
|
|||||||
Reference in New Issue
Block a user