menu.ts
430 Bytes
import { defHttp } from '/@/utils/http/axios';
import { getMenuListByIdParams, getMenuListByIdParamsResultModel } from './model/menuModel';
const { get } = defHttp;
enum Api {
GetMenuListById = '/getMenuListById',
}
/**
* @description: Get user menu based on id
*/
export const getMenuListById = (params: getMenuListByIdParams) => {
return get<getMenuListByIdParamsResultModel>({ url: Api.GetMenuListById, params });
};