/** * @description 点击[域,业务线,动作,对象,对象属性]的时候,页面右侧会弹出对应的"属性页" */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** id */ id: number; /** type */ type: 'DOMAIN' | 'BIZ_LINE' | 'ACTION' | 'OBJECT' | 'OBJECT_PROPERTY'; } export const init = new defs.BehaviorElementPropertyDTO(); export async function request(params = {}) { return Request({ url: '/api/oneid/behaviorElement/{type}/{id}/property', params, method: 'get', }); } export function createFetchAction(types, stateKey) { return (params = {}, meta?: any) => { return { types, meta, stateKey, method: 'GET', url: getUrl( '/api/oneid/behaviorElement/{type}/{id}/property', params, 'GET', ), params, init, }; }; }