这是基于vue-vben-admin 模板适用于abp Vnext的前端管理项目
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.
 
 
 
 
 
 

46 lines
1.2 KiB

import { defAbpHttp } from '/@/utils/http/abp';
import {
WebhookSendAttempt,
WebhookSendAttemptGetListInput,
WebhookSendRecordDeleteManyInput,
WebhookSendRecordResendManyInput,
} from './model';
export const GetAsyncById = (id: string) => {
return defAbpHttp.get<WebhookSendAttempt>({
url: `/api/webhooks/send-attempts/${id}`,
});
};
export const DeleteAsyncById = (id: string) => {
return defAbpHttp.delete<void>({
url: `/api/webhooks/send-attempts/${id}`,
});
};
export const DeleteManyAsyncByInput = (input: WebhookSendRecordDeleteManyInput) => {
return defAbpHttp.delete<void>({
url: `/api/webhooks/send-attempts/delete-many`,
data: input,
});
};
export const GetListAsyncByInput = (input: WebhookSendAttemptGetListInput) => {
return defAbpHttp.get<PagedResultDto<WebhookSendAttempt>>({
url: `/api/webhooks/send-attempts`,
params: input,
});
};
export const ResendAsyncById = (id: string) => {
return defAbpHttp.post<void>({
url: `/api/webhooks/send-attempts/${id}/resend`,
});
};
export const ResendManyAsyncByInput = (input: WebhookSendRecordResendManyInput) => {
return defAbpHttp.post<void>({
url: `/api/webhooks/send-attempts/resend-many`,
data: input,
});
};