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) => {
|
2021-02-26 23:30:22 +08:00
|
|
|
return defHttp.get<getMenuListByIdParamsResultModel>({ url: Api.GetMenuListById, params });
|
2021-02-26 22:45:36 +08:00
|
|
|
};
|