OA\Get
|
(
tags={"公共/权限相关接口"},
path="/admin/Common/addPermissionForUser",
summary="为用户或角色添加权限(基于租户)",
@OA\Parameter(name="username", in="query", description="用户名", @OA\Schema(type="varchar")),
@OA\Parameter(name="role", in="query", description="角色", @OA\Schema(type="varchar")),
@OA\Parameter(name="domain", in="query", description="租户", @OA\Schema(type="varchar")),
@OA\Parameter(name="class", in="query", description="功能类", @OA\Schema(type="varchar")),
@OA\Parameter(name="permission", in="query", description="功能类权限", @OA\Schema(type="int")),
@OA\Parameter(name="menu_id", in="query", description="菜单id", @OA\Schema(type="int")),
@OA\Response(
response="default",
description="an ""unexpected"" error"
)
)
|