创建仓库

This commit is contained in:
zw
2025-08-01 13:43:51 +08:00
commit 3c60d3c7d2
20 changed files with 760 additions and 0 deletions

16
Entity/ResultData.py Normal file
View File

@@ -0,0 +1,16 @@
import json
# 返回数据模型
class ResultData(object):
def __init__(self, code=200, data=None, msg="获取成功"):
super(ResultData, self).__init__()
self.code = code
self.data = data
self.msg = msg
def toJson(self):
return json.dumps({
"code": self.code,
"data": self.data,
"msg": self.msg
}, ensure_ascii=False) # ensure_ascii=False 确保中文不会被转义