临时提交

This commit is contained in:
zw
2025-08-08 22:08:10 +08:00
parent d7c98d1fc8
commit e009577cc9
9 changed files with 214 additions and 29 deletions

16
Entity/AnchorModel.py Normal file
View File

@@ -0,0 +1,16 @@
# 主播模型
class AnchorModel:
def __init__(self, anchorId= "", country= ""):
# 主播ID
self.anchorId = anchorId
# 主播国家
self.country = country
# 字典转模型
@classmethod
def dictToModel(cls, d):
model = AnchorModel()
model.anchorId = d.get('anchorId', "")
model.country = d.get('country', "")
return model