Skip to content

Commit c2d013a

Browse files
authored
refactor: 디렉토리 구조 수정 (#251)
- domains 계층 추가 - 테스트 코드 계층 수정 - 불필요해진 import문 삭제
1 parent 955ee86 commit c2d013a

File tree

380 files changed

+1961
-1943
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

380 files changed

+1961
-1943
lines changed

build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ def jacocoExcludePatterns = [
120120
'**/jwt/**',
121121
'**/auth/**',
122122
'**/domain/*',
123-
'**/domains/*',
124123
'**/fixture/*',
125124
'**/controller/**',
126125
'**/fixture/*',
@@ -139,7 +138,6 @@ def jacocoExcludePatternsForVerify = [
139138
'*.jwt.*',
140139
'*.auth.*',
141140
'*.domain.*',
142-
'*.domains.*',
143141
'*.fixture.*',
144142
'*.controller.*',
145143
'*.fixture.*',

src/main/java/com/somemore/center/usecase/command/CreatePreferItemUseCase.java

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/main/java/com/somemore/community/repository/mapper/CommunityBoardView.java

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/main/java/com/somemore/center/controller/CenterProfileCommandApiController.java renamed to src/main/java/com/somemore/domains/center/controller/CenterProfileCommandApiController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package com.somemore.center.controller;
1+
package com.somemore.domains.center.controller;
22

3+
import com.somemore.domains.center.dto.request.CenterProfileUpdateRequestDto;
4+
import com.somemore.domains.center.usecase.command.UpdateCenterProfileUseCase;
35
import com.somemore.global.auth.annotation.CurrentUser;
4-
import com.somemore.center.dto.request.CenterProfileUpdateRequestDto;
5-
import com.somemore.center.usecase.command.UpdateCenterProfileUseCase;
66
import com.somemore.global.common.response.ApiResponse;
77
import com.somemore.global.imageupload.dto.ImageUploadRequestDto;
88
import com.somemore.global.imageupload.usecase.ImageUploadUseCase;

src/main/java/com/somemore/center/controller/CenterQueryApiController.java renamed to src/main/java/com/somemore/domains/center/controller/CenterQueryApiController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
package com.somemore.center.controller;
1+
package com.somemore.domains.center.controller;
22

3-
import com.somemore.center.dto.response.CenterProfileResponseDto;
4-
import com.somemore.center.usecase.query.CenterQueryUseCase;
3+
import com.somemore.domains.center.dto.response.CenterProfileResponseDto;
4+
import com.somemore.domains.center.usecase.query.CenterQueryUseCase;
55
import com.somemore.global.common.response.ApiResponse;
66
import io.swagger.v3.oas.annotations.Operation;
77
import io.swagger.v3.oas.annotations.tags.Tag;

src/main/java/com/somemore/center/controller/CenterSignController.java renamed to src/main/java/com/somemore/domains/center/controller/CenterSignController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
package com.somemore.center.controller;
1+
package com.somemore.domains.center.controller;
22

3+
import com.somemore.domains.center.dto.request.CenterSignRequestDto;
34
import com.somemore.global.auth.signout.usecase.SignOutUseCase;
4-
import com.somemore.center.dto.request.CenterSignRequestDto;
55
import com.somemore.global.common.response.ApiResponse;
66
import io.swagger.v3.oas.annotations.tags.Tag;
77
import jakarta.servlet.http.HttpServletResponse;

src/main/java/com/somemore/center/controller/PreferItemCommandApiController.java renamed to src/main/java/com/somemore/domains/center/controller/PreferItemCommandApiController.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
package com.somemore.center.controller;
1+
package com.somemore.domains.center.controller;
22

3+
import com.somemore.domains.center.dto.request.PreferItemCreateRequestDto;
4+
import com.somemore.domains.center.dto.response.PreferItemCreateResponseDto;
5+
import com.somemore.domains.center.usecase.command.CreatePreferItemUseCase;
6+
import com.somemore.domains.center.usecase.command.DeletePreferItemUseCase;
37
import com.somemore.global.auth.annotation.CurrentUser;
4-
import com.somemore.center.dto.request.PreferItemCreateRequestDto;
5-
import com.somemore.center.dto.response.PreferItemCreateResponseDto;
6-
import com.somemore.center.usecase.command.CreatePreferItemUseCase;
7-
import com.somemore.center.usecase.command.DeletePreferItemUseCase;
88
import com.somemore.global.common.response.ApiResponse;
99
import io.swagger.v3.oas.annotations.Operation;
1010
import io.swagger.v3.oas.annotations.tags.Tag;

src/main/java/com/somemore/center/domain/Center.java renamed to src/main/java/com/somemore/domains/center/domain/Center.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
package com.somemore.center.domain;
1+
package com.somemore.domains.center.domain;
22

3-
import com.somemore.center.dto.request.CenterProfileUpdateRequestDto;
3+
import com.somemore.domains.center.dto.request.CenterProfileUpdateRequestDto;
44
import com.somemore.global.common.entity.BaseEntity;
55
import jakarta.persistence.*;
66
import lombok.*;

src/main/java/com/somemore/center/domain/PreferItem.java renamed to src/main/java/com/somemore/domains/center/domain/PreferItem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.somemore.center.domain;
1+
package com.somemore.domains.center.domain;
22

33
import jakarta.persistence.*;
44
import lombok.AccessLevel;

src/main/java/com/somemore/center/dto/request/CenterProfileUpdateRequestDto.java renamed to src/main/java/com/somemore/domains/center/dto/request/CenterProfileUpdateRequestDto.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.somemore.center.dto.request;
1+
package com.somemore.domains.center.dto.request;
22

33
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
44
import com.fasterxml.jackson.databind.annotation.JsonNaming;

0 commit comments

Comments
 (0)