chore: 基线提交(重构前快照)
重构前保存现有 apps/ 结构基线,供后续各阶段回滚。 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
from config import CAPTCHA_LENGTH
|
||||
|
||||
|
||||
# 登录表单验证
|
||||
class LoginForm(BaseModel):
|
||||
username: str = Field(..., min_length=1, max_length=20, description="登录账号")
|
||||
password: str = Field(..., min_length=6, max_length=128, description="登录密码")
|
||||
captcha: str = Field(..., min_length=CAPTCHA_LENGTH, max_length=CAPTCHA_LENGTH, description="验证码")
|
||||
idKey: str = Field(..., min_length=1, description="KEY值")
|
||||
Reference in New Issue
Block a user