260212_01_DOC: 프로젝트 전체에 구글 java 스타일 적용

This commit is contained in:
2026-02-12 11:24:10 +09:00
parent 6bd9b0902b
commit 774188088b
70 changed files with 3735 additions and 3388 deletions

View File

@@ -1,14 +1,23 @@
package com.kri.notihub.server.controller;
import com.kri.common.webmvc.RequestUserContext;
import com.kri.notihub.server.dto.send.*;
import com.kri.notihub.server.dto.send.BulkSendCreateRequestDto;
import com.kri.notihub.server.dto.send.BulkSendResponseDto;
import com.kri.notihub.server.dto.send.SendRequestBulkDto;
import com.kri.notihub.server.dto.send.SendRequestSingleDto;
import com.kri.notihub.server.dto.send.SmsCursorResponseDto;
import com.kri.notihub.server.service.SendSmsService;
import com.kri.notihub.server.service.SmsSendCursorStore;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/api/v1/send-sms")
@@ -16,35 +25,35 @@ import org.springframework.web.bind.annotation.*;
@Tag(name = "Send SMS", description = "문자 발송 API")
public class SendSmsController {
private final SendSmsService sendSmsService;
private final SmsSendCursorStore cursorStore;
private final SendSmsService sendSmsService;
private final SmsSendCursorStore cursorStore;
@Operation(summary = "SMS 결과 반영 커서(send_idx) 조회")
@GetMapping("/cursor")
public SmsCursorResponseDto getCursor() {
return SmsCursorResponseDto.of(cursorStore.get());
}
@Operation(summary = "SMS 결과 반영 커서(send_idx) 조회")
@GetMapping("/cursor")
public SmsCursorResponseDto getCursor() {
return SmsCursorResponseDto.of(cursorStore.get());
}
@Operation(summary = "벌크 발송키 생성")
@PutMapping("/create/bulk")
public String createBulkSendKey(@Valid @RequestBody BulkSendCreateRequestDto req) {
return sendSmsService.issueBulkKey(req);
}
@Operation(summary = "벌크 발송키 생성")
@PutMapping("/create/bulk")
public String createBulkSendKey(@Valid @RequestBody BulkSendCreateRequestDto req) {
return sendSmsService.issueBulkKey(req);
}
@Operation(summary = "문자 단건 발송")
@PostMapping("/single")
public void sendSingle(
@Valid @RequestBody SendRequestSingleDto req,
RequestUserContext ctx
) {
sendSmsService.doSendSingle(req, ctx.getUserCmpn(), ctx.getUserId());
}
@Operation(summary = "문자 단건 발송")
@PostMapping("/single")
public void sendSingle(
@Valid @RequestBody SendRequestSingleDto req,
RequestUserContext ctx
) {
sendSmsService.doSendSingle(req, ctx.getUserCmpn(), ctx.getUserId());
}
@Operation(summary = "bulkSendKey 기반 문자 벌크 발송")
@PostMapping("/bulk")
public BulkSendResponseDto sendBulk(
@Valid @RequestBody SendRequestBulkDto req
) {
return sendSmsService.doSendBulk(req);
}
@Operation(summary = "bulkSendKey 기반 문자 벌크 발송")
@PostMapping("/bulk")
public BulkSendResponseDto sendBulk(
@Valid @RequestBody SendRequestBulkDto req
) {
return sendSmsService.doSendBulk(req);
}
}