3.2. 네이밍 규칙
| 대상 | 규칙 | 예시 |
|---|---|---|
| 패키지 | 소문자, 단수형 | com.tienipia.flowin.user |
| 클래스 / 인터페이스 | UpperCamelCase | UserService, Pageable |
| 메서드 | lowerCamelCase, 동사로 시작 | findByEmail(), createUser() |
| 변수 | lowerCamelCase | userName, totalCount |
| 상수 | UPPER_SNAKE_CASE | MAX_RETRY_COUNT, DEFAULT_PAGE_SIZE |
| Enum 값 | UPPER_SNAKE_CASE | ACTIVE, PENDING_APPROVAL |
| 테스트 메서드 | 한글 또는 영문 서술형 허용 | 사용자_이메일로_조회한다() |
3.2.1. 클래스 접미사 규칙
| 레이어 | 접미사 | 예시 |
|---|---|---|
| Controller | Controller | UserController |
| Service | Service | UserService |
| Service 구현체 | ServiceImpl | UserServiceImpl |
| Repository | Repository | UserRepository |
| DTO 요청 | Request | CreateUserRequest |
| DTO 응답 | Response | UserResponse |
| Configuration | Config | SecurityConfig |
| Exception | Exception | UserNotFoundException |