添加虎牙短信登录

This commit is contained in:
yml2213
2026-07-05 23:10:50 +08:00
parent 3928b43460
commit 3f50d962a0
7 changed files with 742 additions and 2 deletions
+14
View File
@@ -183,6 +183,20 @@ class HuyaPasswordLoginRequest(BaseModel):
cookie: str = ""
class HuyaSmsCodeRequest(BaseModel):
"""发送虎牙短信验证码。"""
phone: str = Field(..., min_length=5, max_length=32)
cookie: str = ""
class HuyaSmsLoginRequest(BaseModel):
"""提交虎牙短信验证码并保存 Cookie。"""
authcode: str = Field(..., min_length=4, max_length=8)
state: str = Field(..., min_length=1)
phone: str = ""
tag: str = ""
class HuyaPasswordAccountImport(BaseModel):
"""导入虎牙账号密码,稍后再选择登录。"""
text: str = Field(..., min_length=1)