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