mirror of
https://github.com/fastapi-admin/fastapi-admin.git
synced 2025-08-15 11:11:19 +08:00
20 lines
390 B
Python
20 lines
390 B
Python
from typing import List
|
|
|
|
from fastapi import Body
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class LoginIn(BaseModel):
|
|
username: str = Body(..., example="long2ice")
|
|
password: str = Body(..., example="123456")
|
|
|
|
|
|
class BulkIn(BaseModel):
|
|
pk_list: List = Body(..., example=[1, 2, 3])
|
|
|
|
|
|
class UpdatePasswordIn(BaseModel):
|
|
old_password: str
|
|
new_password: str
|
|
confirm_password: str
|