You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
649 B

import { fetch } from '../../../utils/util';
export class Params {
/** roleId */
roleId?: number;
}
export type ResponseType = Promise<defs.ResultVO<Array<number>>>;
export const URL = '/api/menu/ids/role';
/**
* @desc 获取指定角色能够访问的菜单ID列表
*/
export function request(
params: Params,
options?: WechatMiniprogram.RequestOption,
): ResponseType {
let url = '/api/menu/ids/role';
const fetchOption = Object.assign(
{
url: url,
method: 'GET',
headers: {
'Content-Type': 'application/json',
},
params: params,
},
options,
);
return fetch(fetchOption);
}