You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.2 KiB
50 lines
1.2 KiB
import { defAbpHttp } from '/@/utils/http/abp';
|
|
import { PagedResultDto } from '../model/baseModel';
|
|
import { WebhookSendAttempt, WebhookSendAttemptGetListInput } from './model/sendAttemptsModel';
|
|
|
|
const remoteServiceName = 'WebhooksManagement';
|
|
const controllerName = 'WebhookSendRecord';
|
|
|
|
export const getById = (id: string) => {
|
|
return defAbpHttp.request<WebhookSendAttempt>({
|
|
service: remoteServiceName,
|
|
controller: controllerName,
|
|
action: 'GetAsync',
|
|
params: {
|
|
id: id,
|
|
},
|
|
});
|
|
};
|
|
|
|
export const deleteById = (id: string) => {
|
|
return defAbpHttp.request<WebhookSendAttempt>({
|
|
service: remoteServiceName,
|
|
controller: controllerName,
|
|
action: 'DeleteAsync',
|
|
params: {
|
|
id: id,
|
|
},
|
|
});
|
|
}
|
|
|
|
export const getList = (input: WebhookSendAttemptGetListInput) => {
|
|
return defAbpHttp.request<PagedResultDto<WebhookSendAttempt>>({
|
|
service: remoteServiceName,
|
|
controller: controllerName,
|
|
action: 'GetListAsync',
|
|
params: {
|
|
input: input,
|
|
},
|
|
});
|
|
};
|
|
|
|
export const resend = (id: string) => {
|
|
return defAbpHttp.request<void>({
|
|
service: remoteServiceName,
|
|
controller: controllerName,
|
|
action: 'ResendAsync',
|
|
params: {
|
|
id: id,
|
|
},
|
|
});
|
|
}
|