This commit is contained in:
Mr Chen
2024-09-14 19:22:10 +08:00
parent 60910c9d87
commit 0e7ed65e04
3 changed files with 73 additions and 23 deletions
+3
View File
@@ -472,6 +472,9 @@ def getJson(data):
import json
return json.dumps(data)
def getObjectByJson(data):
import json
return json.loads(data)
def returnData(status, msg, data=None):
return {'status': status, 'msg': msg, 'data': data}