重建仓库,重新提交。

This commit is contained in:
2025-12-18 14:20:57 +08:00
parent 849f0f409f
commit e518f781ad
108 changed files with 8508 additions and 57 deletions

21
Entity/AnchorModel.py Normal file
View File

@@ -0,0 +1,21 @@
# 主播模型
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
# 模型转字典
@classmethod
def modelToDict(cls, model):
return {"anchorId": model.anchorId, "country": model.country}