12 lines
234 B
Python
12 lines
234 B
Python
|
|
from pydantic import BaseModel
|
||
|
|
from typing import List, ClassVar
|
||
|
|
|
||
|
|
class Person(BaseModel):
|
||
|
|
id: int
|
||
|
|
name: str
|
||
|
|
|
||
|
|
async def create(conn):
|
||
|
|
return None
|
||
|
|
|
||
|
|
def get(conn, id: int) -> Person:
|
||
|
|
return Person(id=id, name='test')
|