2025-01-05 21:07:34 +08:00
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
|
|
class RuleKeywordBase(BaseModel):
|
|
|
|
Rid: int
|
|
|
|
Uniacid: int
|
|
|
|
Module: str
|
|
|
|
Content: str
|
|
|
|
Type: int
|
|
|
|
Displayorder: int
|
|
|
|
Status: int
|
|
|
|
|
|
|
|
class RuleKeywordCreate(RuleKeywordBase):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class RuleKeyword(RuleKeywordBase):
|
|
|
|
Id: int
|
|
|
|
|
|
|
|
class Config:
|
2025-03-04 20:36:52 +08:00
|
|
|
from_attributes = True
|