/** * @description 删除自定义报警 */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** id */ id: number; /** projectId */ projectId: number; } export const init = undefined; export async function request(params = {}) { return Request({ url: '/qsmd/api/customAlert/{id}', params, method: 'delete', }); } export function createFetchAction(types, stateKey) { return (params = {}, meta?: any) => { return { types, meta, stateKey, method: 'DELETE', url: getUrl('/qsmd/api/customAlert/{id}', params, 'DELETE'), params, init, }; }; }