[cs] WIP: 알림톡발송이력관리 페이지

This commit is contained in:
2026-04-13 15:27:31 +09:00
parent 9d18ef7527
commit 43fe3a1a99
16 changed files with 702 additions and 56 deletions
@@ -0,0 +1,58 @@
import { client } from "@/shared/api";
import { ENDPOINT } from "@/shared/config";
import {
type NtftalkMmtLogHistory,
type NtftalkMmtLogHistoryPageList,
type NtftalkMmtLogHistorySavePayload,
type NtftalkMmtLogHistorySearchParams,
type NtftalkMmtLogHistoryService,
type NtftalkMmtLogHistoryUpdatePayload,
} from "../model/ntftalk-mmt-log-history-interface";
class NtftalkMmtLogHistoryApiService implements NtftalkMmtLogHistoryService {
async getNtftalkMmtLogHistoryPage(
params: NtftalkMmtLogHistorySearchParams,
): Promise<NtftalkMmtLogHistoryPageList> {
const response = await client.get<NtftalkMmtLogHistoryPageList>(
`${ENDPOINT.NTFTALK_SERVICE.MMT_LOG_HISTORY}`,
{ params },
);
return response.data;
}
async getNtftalkMmtLogHistory(mtPr: number): Promise<NtftalkMmtLogHistory> {
const response = await client.get<NtftalkMmtLogHistory>(
`${ENDPOINT.NTFTALK_SERVICE.MMT_LOG_HISTORY}/${mtPr}`,
);
return response.data;
}
async saveNtftalkMmtLogHistory(
payload: NtftalkMmtLogHistorySavePayload,
): Promise<NtftalkMmtLogHistory> {
const response = await client.post<NtftalkMmtLogHistory>(
`${ENDPOINT.NTFTALK_SERVICE.MMT_LOG_HISTORY}`,
payload,
);
return response.data;
}
async updateNtftalkMmtLogHistory(
mtPr: number,
payload: NtftalkMmtLogHistoryUpdatePayload,
): Promise<NtftalkMmtLogHistory> {
const response = await client.put<NtftalkMmtLogHistory>(
`${ENDPOINT.NTFTALK_SERVICE.MMT_LOG_HISTORY}/${mtPr}`,
payload,
);
return response.data;
}
async deleteNtftalkMmtLogHistory(mtPr: number): Promise<void> {
await client.delete(
`${ENDPOINT.NTFTALK_SERVICE.MMT_LOG_HISTORY}/${mtPr}`,
);
}
}
export const NtftalkMmtLogHistoryApi = new NtftalkMmtLogHistoryApiService();