vue-vben-admin/src/api/sys/menu.ts

15 lines
412 B
TypeScript
Raw Normal View History

2020-09-28 20:19:10 +08:00
import { defHttp } from '/@/utils/http/axios';
import { getMenuListByIdParams, getMenuListByIdParamsResultModel } from './model/menuModel';
enum Api {
GetMenuListById = '/getMenuListById',
}
/**
2020-11-18 22:41:59 +08:00
* @description: Get user menu based on id
2020-09-28 20:19:10 +08:00
*/
2021-02-26 22:45:36 +08:00
export const getMenuListById = (params: getMenuListByIdParams) => {
return defHttp.get<getMenuListByIdParamsResultModel>({ url: Api.GetMenuListById, params });
2021-02-26 22:45:36 +08:00
};