menu.ts 443 B

123456789101112131415161718
  1. import { defHttp } from '/@/utils/http/axios';
  2. import { getMenuListByIdParams, getMenuListByIdParamsResultModel } from './model/menuModel';
  3. enum Api {
  4. GetMenuListById = '/getMenuListById',
  5. }
  6. /**
  7. * @description: 根据id获取用户菜单
  8. */
  9. export function getMenuListById(params: getMenuListByIdParams) {
  10. return defHttp.request<getMenuListByIdParamsResultModel>({
  11. url: Api.GetMenuListById,
  12. method: 'GET',
  13. params,
  14. });
  15. }