prs_server/schemas/section.py

21 lines
427 B
Python

from typing import Any, List, Union
from pydantic import BaseModel, Field
from schemas import DBBase
from typing import Optional
class Url_module(BaseModel):
auth_id: str = None
path_name: str = None
api_list: List[str] = None
api_name: List[str] = None
state: List[bool] = None
class Add_module(BaseModel):
auth_id: str # 唯一标识
url: str # 路由
types: bool # Ture 或者 False