File tree Expand file tree Collapse file tree 8 files changed +23
-20
lines changed
src/main/java/com/api/ttoklip/domain Expand file tree Collapse file tree 8 files changed +23
-20
lines changed Original file line number Diff line number Diff line change 7
7
import com .api .ttoklip .global .exception .ErrorType ;
8
8
import lombok .RequiredArgsConstructor ;
9
9
import org .aspectj .lang .annotation .Aspect ;
10
- import org .aspectj .lang .annotation .Before ;
11
- import org .aspectj .lang .annotation .Pointcut ;
12
10
import org .springframework .core .Ordered ;
13
11
import org .springframework .core .annotation .Order ;
14
12
import org .springframework .stereotype .Component ;
Original file line number Diff line number Diff line change 1
1
package com .api .ttoklip .domain .member .dto .response ;
2
2
3
3
public record MemberStreetResponse (
4
- String street ,
5
- boolean writerLiveInSeoul
4
+ String street
6
5
) {
7
- public static MemberStreetResponse of (String street , boolean writerLiveInSeoul ) {
8
- return new MemberStreetResponse (street , writerLiveInSeoul );
6
+ public static MemberStreetResponse of (String street ) {
7
+ return new MemberStreetResponse (street );
9
8
}
10
9
}
Original file line number Diff line number Diff line change @@ -27,8 +27,6 @@ public class MemberService {
27
27
private final MemberRepository memberRepository ;
28
28
private final MemberOAuthRepository memberOAuthRepository ;
29
29
30
- private static final String SEOUL = "서울특별시" ;
31
-
32
30
public Member findById (final Long memberId ) {
33
31
return memberRepository .findById (memberId )
34
32
.orElseThrow (() -> new ApiException (_USER_NOT_FOUND_DB ));
@@ -86,6 +84,6 @@ private void validProfile(final Profile profile) {
86
84
87
85
public MemberStreetResponse getMemberStreet (final Member member ) {
88
86
Member findMember = findById (member .getId ());
89
- return MemberStreetResponse .of (findMember .getStreet (), ! findMember . getStreet (). startsWith ( SEOUL ) );
87
+ return MemberStreetResponse .of (findMember .getStreet ());
90
88
}
91
89
}
Original file line number Diff line number Diff line change 6
6
import com .api .ttoklip .domain .mypage .service .MyPageService ;
7
7
import com .api .ttoklip .domain .privacy .dto .PrivacyCreateRequest ;
8
8
import com .api .ttoklip .domain .privacy .service .ProfileService ;
9
+ import com .api .ttoklip .domain .search .response .CartPaging ;
9
10
import com .api .ttoklip .domain .search .response .CommunityPaging ;
10
11
import com .api .ttoklip .domain .search .response .HoneyTipPaging ;
11
12
import com .api .ttoklip .domain .search .response .NewsletterPaging ;
12
- import com .api .ttoklip .domain .search .response .CartPaging ;
13
13
import com .api .ttoklip .global .success .Message ;
14
14
import com .api .ttoklip .global .success .SuccessResponse ;
15
15
import io .swagger .v3 .oas .annotations .Operation ;
Original file line number Diff line number Diff line change 17
17
import com .api .ttoklip .domain .mypage .dto .response .UserSingleResponse ;
18
18
import com .api .ttoklip .domain .newsletter .post .domain .Newsletter ;
19
19
import com .api .ttoklip .domain .question .post .domain .Question ;
20
- import com .api .ttoklip .domain .search .response .*;
20
+ import com .api .ttoklip .domain .search .response .CartPaging ;
21
+ import com .api .ttoklip .domain .search .response .CommunityPaging ;
22
+ import com .api .ttoklip .domain .search .response .CommunitySingleResponse ;
23
+ import com .api .ttoklip .domain .search .response .HoneyTipPaging ;
24
+ import com .api .ttoklip .domain .search .response .NewsletterPaging ;
25
+ import com .api .ttoklip .domain .search .response .SingleResponse ;
21
26
import com .api .ttoklip .domain .town .cart .post .entity .Cart ;
22
27
import com .api .ttoklip .domain .town .community .post .entity .Community ;
23
28
import java .util .List ;
Original file line number Diff line number Diff line change 5
5
import com .api .ttoklip .domain .mypage .dto .response .UserCartSingleResponse ;
6
6
import com .api .ttoklip .domain .newsletter .post .domain .Newsletter ;
7
7
import com .api .ttoklip .domain .newsletter .post .repository .NewsletterRepository ;
8
- import com .api .ttoklip .domain .search .response .*;
8
+ import com .api .ttoklip .domain .search .response .CartPaging ;
9
+ import com .api .ttoklip .domain .search .response .CommunityPaging ;
10
+ import com .api .ttoklip .domain .search .response .CommunitySingleResponse ;
11
+ import com .api .ttoklip .domain .search .response .HoneyTipPaging ;
12
+ import com .api .ttoklip .domain .search .response .NewsletterPaging ;
13
+ import com .api .ttoklip .domain .search .response .SingleResponse ;
9
14
import com .api .ttoklip .domain .town .cart .post .entity .Cart ;
10
15
import com .api .ttoklip .domain .town .cart .post .repository .CartSearchRepository ;
11
16
import com .api .ttoklip .domain .town .community .post .entity .Community ;
12
17
import com .api .ttoklip .domain .town .community .post .repository .CommunitySearchRepository ;
18
+ import java .util .List ;
13
19
import lombok .RequiredArgsConstructor ;
14
20
import org .springframework .data .domain .Page ;
15
21
import org .springframework .data .domain .Pageable ;
16
22
import org .springframework .stereotype .Service ;
17
23
import org .springframework .transaction .annotation .Transactional ;
18
24
19
- import java .util .List ;
20
-
21
25
@ Service
22
26
@ RequiredArgsConstructor
23
27
@ Transactional (readOnly = true )
Original file line number Diff line number Diff line change 1
1
package com .api .ttoklip .domain .town .main .controller ;
2
2
3
- import com .api .ttoklip .domain .search .response .CommunityPaging ;
4
3
import com .api .ttoklip .domain .search .response .CartPaging ;
4
+ import com .api .ttoklip .domain .search .response .CommunityPaging ;
5
5
import com .api .ttoklip .domain .town .community .post .dto .response .CartMainResponse ;
6
6
import com .api .ttoklip .domain .town .main .constant .TownResponseConstant ;
7
7
import com .api .ttoklip .domain .town .main .service .TownMainService ;
Original file line number Diff line number Diff line change 1
1
package com .api .ttoklip .domain .town .main .service ;
2
2
3
+ import static com .api .ttoklip .global .util .SecurityUtil .getCurrentMember ;
4
+
3
5
import com .api .ttoklip .domain .mypage .dto .response .UserCartSingleResponse ;
6
+ import com .api .ttoklip .domain .search .response .CartPaging ;
4
7
import com .api .ttoklip .domain .search .response .CommunityPaging ;
5
8
import com .api .ttoklip .domain .search .response .CommunitySingleResponse ;
6
9
import com .api .ttoklip .domain .town .TownCriteria ;
7
- import com .api .ttoklip .domain .search .response .CartPaging ;
8
10
import com .api .ttoklip .domain .town .cart .post .entity .Cart ;
9
11
import com .api .ttoklip .domain .town .cart .post .service .CartPostService ;
10
12
import com .api .ttoklip .domain .town .community .post .dto .response .CartMainResponse ;
11
13
import com .api .ttoklip .domain .town .community .post .dto .response .CommunityRecent3Response ;
12
14
import com .api .ttoklip .domain .town .community .post .entity .Community ;
13
15
import com .api .ttoklip .domain .town .community .post .service .CommunityPostService ;
16
+ import java .util .List ;
14
17
import lombok .RequiredArgsConstructor ;
15
18
import org .springframework .data .domain .Page ;
16
19
import org .springframework .data .domain .Pageable ;
17
20
import org .springframework .stereotype .Service ;
18
21
19
- import java .util .List ;
20
-
21
- import static com .api .ttoklip .global .util .SecurityUtil .getCurrentMember ;
22
-
23
22
@ Service
24
23
@ RequiredArgsConstructor
25
24
public class TownMainService {
You can’t perform that action at this time.
0 commit comments