Blame view

src/api/sys/menu.ts 442 Bytes
陈文彬 authored
1
2
3
4
5
6
7
8
9
import { defHttp } from '/@/utils/http/axios';

import { getMenuListByIdParams, getMenuListByIdParamsResultModel } from './model/menuModel';

enum Api {
  GetMenuListById = '/getMenuListById',
}

/**
vben authored
10
 * @description: Get user menu based on id
陈文彬 authored
11
12
13
14
15
16
17
18
 */
export function getMenuListById(params: getMenuListByIdParams) {
  return defHttp.request<getMenuListByIdParamsResultModel>({
    url: Api.GetMenuListById,
    method: 'GET',
    params,
  });
}