File size: 403 Bytes
8450c71
 
 
 
 
 
 
68ce4db
 
8450c71
 
 
d93cd62
68ce4db
 
 
8450c71
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from typing import List, Optional
from pydantic import EmailStr, BaseModel
from datetime import date, datetime, time, timedelta


class editPost(BaseModel):
    id: Optional[int]
    content: Optional[dict]
    recommendations: Optional[dict]


class createPost(BaseModel):
    pageId:int
    content: Optional[dict]
    recommendations: Optional[dict]


class getPost(BaseModel):
    id: Optional[int]