feat: 添加系统级管理专属页面权限
This commit is contained in:
@@ -43,6 +43,7 @@ class PermissionInfo(BaseModel):
|
||||
fixed_tag: bool = Field(default=False, description="固定标签页")
|
||||
show_link: bool = Field(default=True, description="显示菜单")
|
||||
show_parent: bool = Field(default=True, description="显示父级菜单")
|
||||
is_admin: bool = Field(default=False, description="是否为管理专属页面")
|
||||
|
||||
class Config:
|
||||
json_schema_extra = {
|
||||
@@ -72,7 +73,8 @@ class PermissionInfo(BaseModel):
|
||||
"hidden_tag": False,
|
||||
"fixed_tag": False,
|
||||
"show_link": True,
|
||||
"show_parent": True
|
||||
"show_parent": True,
|
||||
"is_admin": False
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,6 +111,7 @@ class AddPermissionParams(BaseModel):
|
||||
show_parent: bool = Field(default=True, description="显示父级菜单")
|
||||
parent_id: str = Field(default="", max_length=36, description="父级菜单ID")
|
||||
menu_type: int = Field(default=0, description="菜单类型")
|
||||
is_admin: bool = Field(default=False, description="是否为管理专属页面")
|
||||
|
||||
class Config:
|
||||
json_schema_extra = {
|
||||
@@ -133,7 +136,8 @@ class AddPermissionParams(BaseModel):
|
||||
"show_link": True,
|
||||
"show_parent": True,
|
||||
"parent_id": "",
|
||||
"menu_type": 0
|
||||
"menu_type": 0,
|
||||
"is_admin": False
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user