Program/mooc/schemas/rule.py
Basyc ba5cebb38e
提交part4
Signed-off-by: Basyc <12016870+basyc@user.noreply.gitee.com>
2025-01-05 13:07:34 +00:00

18 lines
280 B
Python

from pydantic import BaseModel
class RuleBase(BaseModel):
Uniacid: int
Name: str
Module: str
Displayorder: int
Status: int
Containtype: str
class RuleCreate(RuleBase):
pass
class Rule(RuleBase):
Id: int
class Config:
orm_mode = True