menu.ts 430 B

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