/** * @description GET接口 获取白名单列表 */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** projectId */ projectId: number; /** dsId */ dsId: number; } export const init = new defs.WhiteListGroupBO(); export async function request(params = {}) { return Request({ url: '/api/whitelist/getWhiteList', params, method: 'get', }); } export function createFetchAction(types, stateKey) { return (params = {}, meta?: any) => { return { types, meta, stateKey, method: 'GET', url: getUrl('/api/whitelist/getWhiteList', params, 'GET'), params, init, }; }; }