/** * @description 我的功能权限 */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** page */ page?: number; /** pageSize */ pageSize?: number; /** keyword */ keyword?: string; /** level */ level?: 'HIGH' | 'MIDDLE' | 'LOW'; /** periodType */ periodType?: | 'SHORT_TIME' | 'DAYS_30' | 'DAYS_90' | 'DAYS_180' | 'LONG_TERM' | 'CUSTOM'; } export const init = []; export async function request(params = {}) { return Request({ url: '/api/dip/permission/mine/function', params, method: 'get', }); } export function createFetchAction(types, stateKey) { return (params = {}, meta?: any) => { return { types, meta, stateKey, method: 'GET', url: getUrl('/api/dip/permission/mine/function', params, 'GET'), params, init, }; }; }