260716_01_ENH: 본 서버에서 기동 후 중간 테스트를 위한 커밋
This commit is contained in:
@@ -4,11 +4,8 @@ import { keepPreviousData, useMutation, useQuery, useQueryClient } from "@tansta
|
||||
import { nextApi } from "@/lib/http-client";
|
||||
import { qk } from "@/query/key/keys";
|
||||
import type {
|
||||
BulkSendCreateRequest,
|
||||
BulkSendInfo,
|
||||
BulkSendResponse,
|
||||
ChannelType,
|
||||
SendRequestBulk,
|
||||
SendResultSummaryRequest,
|
||||
SendResultSummaryResponse,
|
||||
Template,
|
||||
@@ -107,26 +104,6 @@ export function useUploadTemplateBodyImageMutation(itrntPrjctCd: string) {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 발송키 생성 (PUT /send-{sms,email}/create/bulk)
|
||||
*/
|
||||
export function useCreateBulkSendKeyMutation(channel: MessageSendChannel) {
|
||||
return useMutation({
|
||||
mutationFn: (req: BulkSendCreateRequest) =>
|
||||
nextApi.put<string>(`/message-send/create-bulk/${channel}`, req),
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* bulkSendKey 기반 벌크 발송 (POST /send-{sms,email}/bulk)
|
||||
*/
|
||||
export function useSendBulkMutation(channel: MessageSendChannel) {
|
||||
return useMutation({
|
||||
mutationFn: (req: SendRequestBulk) =>
|
||||
nextApi.post<BulkSendResponse>(`/message-send/bulk/${channel}`, req),
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 대량발송 리스트 조회 (GET /report/bulk-list/{sendTy}/{reqstSvc}/{prjctCd})
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user