changes
This commit is contained in:
parent
e29f45fb1b
commit
8f89c6458a
|
@ -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="删除角色权限")
|
||||||
|
|
Loading…
Reference in New Issue