/** * @description 删除对象属性 */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** objectPropertyId */ objectPropertyId?: string; /** submitComment */ submitComment?: string; } export const init = undefined; export async function request(params = {}) { return Request({ url: '/api/oneid/objectproperty/{objectPropertyId}', params, method: 'delete', }); } export function createFetchAction(types, stateKey) { return (params = {}, meta?: any) => { return { types, meta, stateKey, method: 'DELETE', url: getUrl( '/api/oneid/objectproperty/{objectPropertyId}', params, 'DELETE', ), params, init, }; }; }