Blame view

src/api/sys/menu.ts 412 Bytes
陈文彬 authored
1
2
3
4
5
6
7
8
import { defHttp } from '/@/utils/http/axios';
import { getMenuListByIdParams, getMenuListByIdParamsResultModel } from './model/menuModel';

enum Api {
  GetMenuListById = '/getMenuListById',
}

/**
vben authored
9
 * @description: Get user menu based on id
陈文彬 authored
10
 */
Vben authored
11
12

export const getMenuListById = (params: getMenuListByIdParams) => {
13
  return defHttp.get<getMenuListByIdParamsResultModel>({ url: Api.GetMenuListById, params });
Vben authored
14
};