/** * @description 校验行为来源表是否存在 */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** domainId */ domainId: string; /** bizLineId */ bizLineId: string; /** actionId */ actionId: string; /** objectId */ objectId: string; /** sourceTableName */ sourceTableName: string; /** sourceTableType */ sourceTableType: string; /** ruleId */ ruleId?: string; } export const init = false; export async function request(params = {}) { return Request({ url: '/api/oneid/rule/exist', params, method: 'get', }); } export function createFetchAction(types, stateKey) { return (params = {}, meta?: any) => { return { types, meta, stateKey, method: 'GET', url: getUrl('/api/oneid/rule/exist', params, 'GET'), params, init, }; }; }