File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
import type {
ContentDetailParams,
ContentFormItem,
ContentListItem,
ContentSearchParams,
DeleteBatchContentRequest
} from "../type/content.types.ts";
import {apiClient} from "../../../../api/apiClient.ts";
import type {PageResponse} from "../../../../type/pageResponse.ts";
export async function fetchContentList(params: ContentSearchParams) {
return apiClient.get<PageResponse<ContentListItem>>('/uss/ion/cnt/list.do', params);
}
export async function fetchContentDetail(params: ContentDetailParams) {
return apiClient.get<ContentFormItem>('/uss/ion/cnt/detail.do', params);
}
export async function fetchContentCreate(params: ContentFormItem) {
return apiClient.post('/uss/ion/cnt/egovCntManageInsert.do', params);
}
export async function fetchContentUpdate(params: ContentFormItem) {
return apiClient.post('/uss/ion/cnt/egovCntManageUpdate.do', params);
}
export async function fetchContentDelete(cntId: string) {
return apiClient.post(`/uss/ion/cnt/egovCntManageDelete.do?cntId=${cntId}`);
}
export async function fetchContentDeleteBatch(params: DeleteBatchContentRequest[]) {
return apiClient.post('/uss/ion/cnt/egovCntManageDeleteBatch.do', params);
}