This commit is contained in:
王思川 2022-11-10 11:12:39 +08:00
parent e29f45fb1b
commit 8f89c6458a
1 changed files with 3 additions and 3 deletions

View File

@ -55,10 +55,10 @@ def func04(role_id: str, schema: RoleSchema.CreateRolePolicyReqBody, db: Session
return rcp_obj return rcp_obj
@router.post("/policy/edit", summary="编辑角色权限", response_model=RoleSchema.RolePolicyResBody) @router.post("/policy/edit", summary="编辑角色权限")
def func05(ap_id: str, schema: RoleSchema.EditRolePolicyReqBody, db: Session = Depends(get_db)): def func05(ap_id: str, schema: RoleSchema.EditRolePolicyReqBody, db: Session = Depends(get_db)):
rcp_obj = RoleCrud.edit_role_policy(db=db, ap_id=ap_id, schema=schema) RoleCrud.edit_role_policy(db=db, ap_id=ap_id, schema=schema)
return rcp_obj return {"info": "Success"}
@router.post("/policy/delete", summary="删除角色权限") @router.post("/policy/delete", summary="删除角色权限")