添加用户菜单权限接口

This commit is contained in:
xianyi
2025-12-17 09:34:53 +08:00
parent c78b2bf8ed
commit c376f9344b
2 changed files with 111 additions and 0 deletions

View File

@@ -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);
};