import { defHttp } from '/@/utils/http/axios'; import { getMenuListByIdParams, getAllMenuListResultModel, getMenuListByIdParamsResultModel, } from './model/menuModel'; enum Api { GetMenuListById = '/getMenuListById/', GETAllMenuList = '/getAllMenuList', } /** * @description: Get user menu based on id */ export function getMenuListById(params: getMenuListByIdParams) { return defHttp.request({ url: Api.GetMenuListById, method: 'POST', params, }); } /** * @description: Get all based on id */ export function getAllMenuList() { return defHttp.request({ url: Api.GETAllMenuList, method: 'GET', }); }