add bulk actions support

This commit is contained in:
long2ice
2020-04-11 19:53:41 +08:00
parent eb7b0742d6
commit 51e5f7c043
16 changed files with 158 additions and 60 deletions

View File

@@ -1,3 +1,5 @@
from typing import List
from fastapi import Body
from pydantic import BaseModel
@@ -5,3 +7,7 @@ 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])