gtsoft-snail-job-admin/src/service/api/notify.ts
2024-04-17 16:37:30 +08:00

29 lines
638 B
TypeScript

import { request } from '../request';
/** get notify list */
export function fetchGetNotifyConfigList(params?: Api.NotifyConfig.NotifySearchParams) {
return request<Api.NotifyConfig.NotifyConfigList>({
url: '/notify-config/list',
method: 'get',
params
});
}
/** add notify */
export function fetchAddNotify(data: Api.NotifyConfig.NotifyConfig) {
return request<boolean>({
url: '/notify-config',
method: 'post',
data
});
}
/** edit notify */
export function fetchEditNotify(data: Api.NotifyConfig.NotifyConfig) {
return request<boolean>({
url: '/notify-config',
method: 'put',
data
});
}