mediahub-fe/service/planning/planning.ts

23 lines
618 B
TypeScript
Raw Normal View History

2025-01-01 17:48:57 +00:00
import { httpGetInterceptor, httpPostInterceptor } from "../http-config/http-interceptor-service";
export async function getPlanningSentPagination(
size: number,
page: number,
typeId: number,
title: string = ""
) {
return await httpGetInterceptor(
`planning/pagination/sent?enablePage=1&size=${size}&page=${page}&typeId=${typeId}&title=${title}`
);
}
export async function getPlanningById(id: any) {
const url = `planning?id=${id}`;
2025-01-01 17:48:57 +00:00
return httpGetInterceptor(url);
}
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
}