2025-01-01 17:48:57 +00:00
|
|
|
import { httpGetInterceptor, httpPostInterceptor } from "../http-config/http-interceptor-service";
|
2024-12-04 17:28:40 +00:00
|
|
|
|
|
|
|
|
export async function getPlanningSentPagination(
|
|
|
|
|
size: number,
|
|
|
|
|
page: number,
|
2024-12-11 18:28:57 +00:00
|
|
|
typeId: number,
|
|
|
|
|
title: string = ""
|
2024-12-04 17:28:40 +00:00
|
|
|
) {
|
|
|
|
|
return await httpGetInterceptor(
|
2024-12-11 18:28:57 +00:00
|
|
|
`planning/pagination/sent?enablePage=1&size=${size}&page=${page}&typeId=${typeId}&title=${title}`
|
2024-12-04 17:28:40 +00:00
|
|
|
);
|
|
|
|
|
}
|
2024-12-17 14:27:47 +00:00
|
|
|
|
|
|
|
|
export async function getPlanningById(id: any) {
|
|
|
|
|
const url = `planning?id=${id}`;
|
2025-01-01 17:48:57 +00:00
|
|
|
return httpGetInterceptor(url);
|
2024-12-17 14:27:47 +00:00
|
|
|
}
|
2024-12-21 06:25:07 +00:00
|
|
|
|
|
|
|
|
export async function publishPlanning(data: any) {
|
|
|
|
|
const url = "planning/publish";
|
2025-01-01 17:48:57 +00:00
|
|
|
return httpPostInterceptor(url, data);
|
2024-12-21 06:25:07 +00:00
|
|
|
}
|