menu.ts 412 B

1234567891011121314
  1. import { defHttp } from '/@/utils/http/axios';
  2. import { getMenuListByIdParams, getMenuListByIdParamsResultModel } from './model/menuModel';
  3. enum Api {
  4. GetMenuListById = '/getMenuListById',
  5. }
  6. /**
  7. * @description: Get user menu based on id
  8. */
  9. export const getMenuListById = (params: getMenuListByIdParams) => {
  10. return defHttp.get<getMenuListByIdParamsResultModel>({ url: Api.GetMenuListById, params });
  11. };