Skip to content

Commit ba855e8

Browse files
unanchoiyungu0010
andauthored
[deploy #154] prod 배포 (#155)
* [fix #142] 앨범 내 사진 조회 최신순으로 정렬 (#143) * [fix #140] 앨범 공유 수락 API 로직 수정 (#144) * [feat #128] 포토부스 관련 API 구현 (#146) * [feat #128] 포토부스 관련 API 구현 * [fix #128] Photo 공유 수락 API 로직 수정 * [chore #128] swagger 업데이트 * [chore #128] 공백 제거 * [fix #147] 포포리즘 공유 API 수정 (#148) * [feat #128] 포토부스 관련 API 구현 * [fix #128] Photo 공유 수락 API 로직 수정 * [chore #128] swagger 업데이트 * [chore #128] 공백 제거 * [fix #147] 포포리즘 공유 API 수정 * [chore #147] swagger 수정 * [hotfix #149] 포포리즘 공유 API request body 수정 (#150) * [hotfix #149] 포포리즘 공유 request body 수정 * [chore #149] 사용하지 않는 import 제거 * [setting #149] banner 추가 * [chore #149] CI 스크립트 수정 * [chore #149] CI prod 스크립트 수정 * [chore #149] cd 스크립트 수정 * [fix #151] 배포 전 버그 수정 (access token 만료 시간 변경, 포포리즘 공유 API 수정) (#152) * [fix #151] Access Token 만료시간 변경 * [fix #151] 사진 upload url 변경 * [fix #151] 포포리즘 공유시에 이미지 저장 url 변경 (#153) * [fix #151] Access Token 만료시간 변경 * [fix #151] 사진 upload url 변경 * [hotfix #151] 포포리즘 저장 url 변경 --------- Co-authored-by: Yunseo Kang <[email protected]>
1 parent 584b9bd commit ba855e8

25 files changed

+243
-33
lines changed

.github/workflows/cd-prod.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
3030
- name: make application.yml, application-infra.yml
3131
run: |
3232
## create application.yml
33-
mkdir ./src/main/resources
3433
cd ./src/main/resources
3534
3635
# application.yml 파일 생성

.github/workflows/cd.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
3030
- name: make application.yml, application-infra.yml
3131
run: |
3232
## create application.yml
33-
mkdir ./src/main/resources
3433
cd ./src/main/resources
3534
3635
# application.yml 파일 생성

.github/workflows/ci-prod.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,11 @@ jobs:
2828
- name: application.yml
2929
run: |
3030
## create application.yml
31-
mkdir ./src/main/resources
3231
cd ./src/main/resources
3332
3433
# application.yml 파일 생성
3534
touch ./application.yml
36-
touch ./application-infra.yml]
35+
touch ./application-infra.yml
3736
touch ./pophory_fcm.json
3837
3938
# GitHub-Actions 에서 설정한 값을 application.yml 파일에 쓰기

.github/workflows/ci.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Pophory CI
22

33
on:
4-
push:
5-
branches: [ "develop" ]
64
pull_request:
75
branches: [ "develop" ]
86

@@ -28,12 +26,11 @@ jobs:
2826
- name: application.yml
2927
run: |
3028
## create application.yml
31-
mkdir ./src/main/resources
3229
cd ./src/main/resources
3330
3431
# application.yml 파일 생성
3532
touch ./application.yml
36-
touch ./application-infra.yml]
33+
touch ./application-infra.yml
3734
touch ./pophory_fcm.json
3835
3936
# GitHub-Actions 에서 설정한 값을 application.yml 파일에 쓰기

src/main/java/com/pophory/pophoryserver/domain/album/AlbumService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public PhotoListGetV2ResponseDto getPhotosByAlbumV2(Long albumId, Long memberId)
6262
photoJpaRepository.findAllByAlbum(getAlbumById(albumId))
6363
.stream()
6464
.sorted(Comparator.comparing(Photo::getTakenAt)
65-
.thenComparing(Photo::getCreatedAt))
65+
.thenComparing(Photo::getCreatedAt).reversed())
6666
.map(PhotoGetV2ResponseDto::of)
6767
.collect(Collectors.toList())
6868
);

src/main/java/com/pophory/pophoryserver/domain/auth/SocialService.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919
@Service
2020
@RequiredArgsConstructor
2121
public class SocialService {
22-
23-
// TODO: AccessToken 만료시간 2시간으로 설정
24-
protected static final Long ACCESS_TOKEN_EXPIRATION_TIME = 60 * 60 * 1000 * 2 * 100L; // 200시간
22+
23+
protected static final Long ACCESS_TOKEN_EXPIRATION_TIME = 60 * 60 * 1000 * 2L; // 2시간
2524
protected static final Long REFRESH_TOKEN_EXPIRATION_TIME = 60 * 60 * 1000 * 24 * 14L; // 2주
2625

2726
private final JwtTokenProvider jwtTokenProvider;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package com.pophory.pophoryserver.domain.auth;
22

33
public enum SocialType {
4-
KAKAO, APPLE;
4+
KAKAO, APPLE, DEFAULT;
55
}

src/main/java/com/pophory/pophoryserver/domain/auth/controller/AuthV2Controller.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,16 @@
44
import com.pophory.pophoryserver.domain.auth.SocialService;
55
import com.pophory.pophoryserver.domain.auth.dto.request.AuthRequestDto;
66
import com.pophory.pophoryserver.domain.auth.dto.response.AuthResponseDto;
7-
import com.pophory.pophoryserver.domain.auth.dto.response.TokenResponseDto;
8-
import com.pophory.pophoryserver.global.util.MemberUtil;
7+
import com.pophory.pophoryserver.global.config.jwt.JwtTokenProvider;
8+
import com.pophory.pophoryserver.global.config.jwt.UserAuthentication;
99
import io.swagger.v3.oas.annotations.Operation;
10-
import io.swagger.v3.oas.annotations.Parameter;
11-
import io.swagger.v3.oas.annotations.enums.ParameterIn;
1210
import io.swagger.v3.oas.annotations.media.Content;
13-
import io.swagger.v3.oas.annotations.media.Schema;
1411
import io.swagger.v3.oas.annotations.responses.ApiResponse;
1512
import io.swagger.v3.oas.annotations.responses.ApiResponses;
1613
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
1714
import io.swagger.v3.oas.annotations.tags.Tag;
15+
import lombok.AllArgsConstructor;
16+
import lombok.Getter;
1817
import lombok.RequiredArgsConstructor;
1918
import org.springframework.http.ResponseEntity;
2019
import org.springframework.web.bind.annotation.*;
@@ -31,6 +30,7 @@ public class AuthV2Controller {
3130

3231
private final SocialService socialService;
3332
private final AuthService authService;
33+
private final JwtTokenProvider jwtTokenProvider;
3434

3535
@PostMapping
3636
@SecurityRequirement(name = "Authorization")
@@ -43,4 +43,4 @@ public class AuthV2Controller {
4343
public ResponseEntity<AuthResponseDto> socialLogin(@RequestHeader("Authorization") String socialAccessToken, @RequestBody AuthRequestDto request) throws NoSuchAlgorithmException, InvalidKeySpecException {
4444
return ResponseEntity.ok(socialService.signIn(socialAccessToken, request));
4545
}
46-
}
46+
}

src/main/java/com/pophory/pophoryserver/domain/member/MemberJpaRepository.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ public interface MemberJpaRepository extends JpaRepository<Member, Long> {
1111
boolean existsMemberBySocialIdAndSocialType(String socialId, SocialType socialType);
1212

1313
Optional<Member> getMemberBySocialIdAndSocialType(String socialId, SocialType socialType);
14+
15+
Optional<Member> findByNickname(String nickname);
1416
}

src/main/java/com/pophory/pophoryserver/domain/photo/controller/PhotoShareController.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import com.pophory.pophoryserver.domain.photo.dto.response.PhotoShareResponseDto;
66
import com.pophory.pophoryserver.domain.photo.service.PhotoShareService;
77
import com.pophory.pophoryserver.global.util.MemberUtil;
8-
import com.pophory.pophoryserver.global.util.PhotoUtil;
98
import io.swagger.v3.oas.annotations.Operation;
109
import io.swagger.v3.oas.annotations.Parameter;
1110
import io.swagger.v3.oas.annotations.enums.ParameterIn;

0 commit comments

Comments
 (0)