1234567891011121314151617181920212223242526272829303132 |
- 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<getMenuListByIdParamsResultModel>({
- url: Api.GetMenuListById,
- method: 'POST',
- params,
- });
- }
- /**
- * @description: Get all based on id
- */
- export function getAllMenuList() {
- return defHttp.request<getAllMenuListResultModel>({
- url: Api.GETAllMenuList,
- method: 'GET',
- });
- }
|