261029_01_HOT: 템플릿 삭제 Notihub 바이패스 추가 및 삭제 성공 시 대표 템플릿 연결 정보 삭제
This commit is contained in:
@@ -16,6 +16,7 @@ import java.util.List;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PatchMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
@@ -72,6 +73,15 @@ public class MessageTemplateController {
|
||||
return messageTemplateService.getTemplate(request, ctx);
|
||||
}
|
||||
|
||||
@DeleteMapping("/{tmplatIdx:[0-9]+}")
|
||||
public ResponseEntity<byte[]> deleteTemplate(
|
||||
@PathVariable Long tmplatIdx,
|
||||
HttpServletRequest request,
|
||||
RequestUserContext ctx
|
||||
) {
|
||||
return messageTemplateService.deleteTemplate(tmplatIdx, request, ctx);
|
||||
}
|
||||
|
||||
@GetMapping("/{tmplatIdx:[0-9]+}/attachment")
|
||||
public ResponseEntity<byte[]> getAttachment(
|
||||
@PathVariable Long tmplatIdx,
|
||||
|
||||
Reference in New Issue
Block a user