[cs] WIP: 알림톡발송이력관리 페이지
This commit is contained in:
@@ -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();
|
||||
@@ -1,6 +1,7 @@
|
||||
export { NtftalkVarApi } from "./api/ntftalk-var-service";
|
||||
export { NtftalkTempApi } from "./api/ntftalk-temp-service";
|
||||
export { NtftalkBiztalkApi } from "./api/ntftalk-biztalk-service";
|
||||
export { NtftalkMmtLogHistoryApi } from "./api/ntftalk-mmt-log-history-service";
|
||||
export type {
|
||||
NtftalkVar,
|
||||
NtftalkVarPageList,
|
||||
@@ -27,3 +28,10 @@ export type {
|
||||
NtftalkTempSearchParams,
|
||||
NtftalkTempUpdatePayload,
|
||||
} from "./model/ntftalk-temp-interface";
|
||||
export type {
|
||||
NtftalkMmtLogHistory,
|
||||
NtftalkMmtLogHistoryPageList,
|
||||
NtftalkMmtLogHistorySavePayload,
|
||||
NtftalkMmtLogHistorySearchParams,
|
||||
NtftalkMmtLogHistoryUpdatePayload,
|
||||
} from "./model/ntftalk-mmt-log-history-interface";
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
import type { PageableList, PageableParams } from "@/shared/model";
|
||||
|
||||
export interface NtftalkMmtLogHistorySearchParams extends PageableParams {
|
||||
subject?: string;
|
||||
content?: string;
|
||||
recipientNum?: string;
|
||||
/** 1:전송대기, 2:결과대기, 3:완료 */
|
||||
msgStatus?: string;
|
||||
/** 1000:성공 */
|
||||
reportCode?: string;
|
||||
/** yyyy-MM-dd */
|
||||
dateFrom?: string;
|
||||
/** yyyy-MM-dd */
|
||||
dateTo?: string;
|
||||
/** ADSS | CWMS | PORT | ALL */
|
||||
system?: string;
|
||||
/** SUCCESS | FAIL | ALL */
|
||||
successYn?: string;
|
||||
}
|
||||
|
||||
export interface NtftalkMmtLogHistory {
|
||||
mtPr: number;
|
||||
mtRefkey?: string | null;
|
||||
priority?: string | null;
|
||||
dateClientReq?: string | null;
|
||||
subject?: string | null;
|
||||
content?: string | null;
|
||||
callback?: string | null;
|
||||
msgStatus?: string | null;
|
||||
recipientNum?: string | null;
|
||||
dateMtSent?: string | null;
|
||||
dateRslt?: string | null;
|
||||
dateMtReport?: string | null;
|
||||
reportCode?: string | null;
|
||||
countryCode?: string | null;
|
||||
msgType?: number | null;
|
||||
regDate?: string | null;
|
||||
senderKey?: string | null;
|
||||
templateCode?: string | null;
|
||||
siteSystem?: string | null;
|
||||
successYn?: string | null;
|
||||
}
|
||||
|
||||
export interface NtftalkMmtLogHistorySavePayload {
|
||||
mtPr: number;
|
||||
mtRefkey?: string;
|
||||
priority?: string;
|
||||
dateClientReq?: string;
|
||||
subject: string;
|
||||
content: string;
|
||||
callback: string;
|
||||
msgStatus?: string;
|
||||
recipientNum: string;
|
||||
reportCode?: string;
|
||||
countryCode?: string;
|
||||
msgType?: number;
|
||||
senderKey: string;
|
||||
templateCode?: string;
|
||||
responseMethod?: string;
|
||||
}
|
||||
|
||||
export interface NtftalkMmtLogHistoryUpdatePayload {
|
||||
content: string;
|
||||
recipientNum: string;
|
||||
msgStatus?: string;
|
||||
reportCode?: string;
|
||||
}
|
||||
|
||||
export type NtftalkMmtLogHistoryPageList = PageableList<NtftalkMmtLogHistory>;
|
||||
|
||||
export interface NtftalkMmtLogHistoryService {
|
||||
getNtftalkMmtLogHistoryPage(
|
||||
params: NtftalkMmtLogHistorySearchParams,
|
||||
): Promise<NtftalkMmtLogHistoryPageList>;
|
||||
getNtftalkMmtLogHistory(mtPr: number): Promise<NtftalkMmtLogHistory>;
|
||||
saveNtftalkMmtLogHistory(
|
||||
payload: NtftalkMmtLogHistorySavePayload,
|
||||
): Promise<NtftalkMmtLogHistory>;
|
||||
updateNtftalkMmtLogHistory(
|
||||
mtPr: number,
|
||||
payload: NtftalkMmtLogHistoryUpdatePayload,
|
||||
): Promise<NtftalkMmtLogHistory>;
|
||||
deleteNtftalkMmtLogHistory(mtPr: number): Promise<void>;
|
||||
}
|
||||
Reference in New Issue
Block a user