feat(user): 昵称上限放宽到 20 字(与客户端/原型一致) #47
+1
-1
@@ -5,7 +5,7 @@ from pydantic import BaseModel, Field, field_validator
|
||||
|
||||
|
||||
class ProfileUpdateRequest(BaseModel):
|
||||
nickname: str = Field(..., min_length=1, max_length=16, description="昵称,1-16 字")
|
||||
nickname: str = Field(..., min_length=1, max_length=20, description="昵称,1-20 字")
|
||||
|
||||
@field_validator("nickname")
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user