feat: 들여쓰기

This commit is contained in:
2025-11-17 14:19:29 +09:00
parent 92f5b61114
commit dc9b40e78b
29 changed files with 735 additions and 777 deletions

View File

@@ -12,14 +12,14 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/api/hello")
public class HelloApiController {
private final HelloService helloService;
private final HelloService helloService;
@GetMapping
public HelloDto.Res hello(HelloDto.Req req) {
req.valid();
@GetMapping
public HelloDto.Res hello(HelloDto.Req req) {
req.valid();
Res res = helloService.sayHello(req);
Res res = helloService.sayHello(req);
return res;
}
return res;
}
}

View File

@@ -8,29 +8,29 @@ import lombok.Setter;
public class HelloDto {
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public static class Req {
private String id;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public static class Req {
private String id;
public void valid() {
if (id == null) {
throw new IllegalArgumentException(id);
}
}
public void valid() {
if (id == null) {
throw new IllegalArgumentException(id);
}
}
}
@Getter
public static class Res {
private String id;
private String name;
@Getter
public static class Res {
private String id;
private String name;
@Builder
public Res(String id, String name) {
this.id = id;
this.name = name;
}
@Builder
public Res(String id, String name) {
this.id = id;
this.name = name;
}
}
}