update api
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { axios } from "./BaseAPI";
|
||||
import type { ModuleCode, Page, PageResult, Permission, Role, RolePayload, UserRoleAuthorizeReq } from "../types";
|
||||
import type { ModuleCode, Page, PageResult, Permission, Role, RolePayload, AuthorizeUserRole } from "../types";
|
||||
|
||||
const BASE_URI = "/user/role";
|
||||
|
||||
@@ -36,7 +36,7 @@ async function authorizedList(userId: string, moduleCode?: ModuleCode): Promise<
|
||||
});
|
||||
}
|
||||
|
||||
async function authorize(req: UserRoleAuthorizeReq): Promise<void> {
|
||||
async function authorize(req: AuthorizeUserRole): Promise<void> {
|
||||
return axios.post(`${BASE_URI}/authorized/create`, req);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user