添加用户菜单权限接口
This commit is contained in:
@@ -38,6 +38,8 @@ import type {
|
||||
LoginByPasswordResponse,
|
||||
InputVerificationCodePhone,
|
||||
VerificationCodePhoneResponse,
|
||||
InputUserOwnedMenus,
|
||||
UserOwnedMenusResponse,
|
||||
} from './types';
|
||||
|
||||
/**
|
||||
@@ -305,3 +307,15 @@ export const getVerificationCodePhone = (
|
||||
).then(res => res.data);
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取用户菜单权限
|
||||
*/
|
||||
export const getUserOwnedMenus = (
|
||||
data: InputUserOwnedMenus
|
||||
): Promise<UserOwnedMenusResponse> => {
|
||||
return request.post<UserOwnedMenusResponse>(
|
||||
`/api/auth/user/owned/menus`,
|
||||
data
|
||||
).then(res => res.data);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user