261008_01_ENH: KKO 템플릿 리스트 조회, 템플릿 상세 조회, notihub에 KKO 템플릿 등록, KKO 발송 추가
This commit is contained in:
@@ -3,11 +3,16 @@ package com.kri.notihub.server.controller;
|
||||
import com.kri.common.feature.web.RequestUserContext;
|
||||
import com.kri.notihub.server.common.enums.ChannelType;
|
||||
import com.kri.notihub.server.dto.email.EmailAttachmentDto;
|
||||
import com.kri.notihub.server.dto.template.KkoTemplateDetailDto;
|
||||
import com.kri.notihub.server.dto.template.KkoTemplateDetailRequestDto;
|
||||
import com.kri.notihub.server.dto.template.KkoTemplateListRequestDto;
|
||||
import com.kri.notihub.server.dto.template.KkoTemplateListResponseDto;
|
||||
import com.kri.notihub.server.dto.template.TemplateBasicDto;
|
||||
import com.kri.notihub.server.dto.template.TemplateDto;
|
||||
import com.kri.notihub.server.dto.template.TemplateSummaryDto;
|
||||
import com.kri.notihub.server.service.FileService;
|
||||
import com.kri.notihub.server.service.TemplateService;
|
||||
import com.kri.notihub.server.service.KkoTemplateService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.validation.Valid;
|
||||
@@ -23,6 +28,8 @@ import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PatchMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RequestPart;
|
||||
@@ -37,6 +44,24 @@ public class TemplateController {
|
||||
|
||||
private final TemplateService templateService;
|
||||
private final FileService fileService;
|
||||
private final KkoTemplateService kkoTemplateService;
|
||||
|
||||
@Operation(summary = "외부 알림톡 템플릿 목록 조회")
|
||||
@PostMapping(value = "/kko/list", consumes = MediaType.APPLICATION_JSON_VALUE,
|
||||
produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
public KkoTemplateListResponseDto getKkoTemplateList(
|
||||
@Valid @RequestBody KkoTemplateListRequestDto request) {
|
||||
return kkoTemplateService.getList(request.getKeyword());
|
||||
}
|
||||
|
||||
@Operation(summary = "외부 알림톡 템플릿 상세 조회")
|
||||
@PostMapping(value = "/kko/detail", consumes = MediaType.APPLICATION_JSON_VALUE,
|
||||
produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
public KkoTemplateDetailDto getKkoTemplateDetail(
|
||||
@Valid @RequestBody KkoTemplateDetailRequestDto request) {
|
||||
return kkoTemplateService.getDetail(request.getTemplateCode());
|
||||
}
|
||||
|
||||
|
||||
@Operation(summary = "템플릿 목록 조회")
|
||||
@GetMapping("/list/{chnnlTy}/{itrntPrjctCd}")
|
||||
|
||||
Reference in New Issue
Block a user