mirror of
https://github.com/flibusta-apps/users_settings_server.git
synced 2025-12-06 14:45:38 +01:00
Add create_language endpoint
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
from pydantic import BaseModel, constr
|
||||
|
||||
|
||||
class LanguageDetail(BaseModel):
|
||||
id: int
|
||||
class CreateLanguage(BaseModel):
|
||||
label: constr(max_length=16) # type: ignore
|
||||
code: constr(max_length=4) # type: ignore
|
||||
|
||||
|
||||
class LanguageDetail(CreateLanguage):
|
||||
id: int
|
||||
|
||||
|
||||
class UserBase(BaseModel):
|
||||
user_id: int
|
||||
last_name: constr(max_length=64) # type: ignore
|
||||
|
||||
Reference in New Issue
Block a user