Skip to content

Commit

Permalink
Feat : #33 쓸데없는 주석 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
hyobim committed Jan 10, 2023
1 parent 681620f commit 1d650bb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 1 addition & 3 deletions godchigam/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@ dependencies {
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'

//implementation 'io.jsonwebtoken:jjwt:0.9.1' // JWT
implementation 'io.jsonwebtoken:jjwt-api:0.11.2'
implementation 'javax.xml.bind:jaxb-api' //JWT
// S3

implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE'

runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.2',
'io.jsonwebtoken:jjwt-jackson:0.11.2'

}

tasks.named('test') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,12 @@ public class UserReportController {
private final UserReportService userReportService;
private final JwtTokenProvider jwtTokenProvider;

//
@PostMapping("/report")
public CommonResponse<UserReport> createReport(@RequestHeader("token") String accessToken, @RequestBody UserReportCreationRequest request){
String userId = jwtTokenProvider.getUserLoginId(accessToken);
UserReport report = userReportService.createReport(userId,request);
if(report == null){
//에러발생
throw new BaseException(ErrorCode.USERS_EMPTY_USER_ID);

}
return CommonResponse.success(null,"유저 신고 성공");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
public class UserReportService {
private final UserReportRepository userReportRepository;
private final UserRepository userRepository;
//유저 신고

public UserReport createReport(String userId, UserReportCreationRequest request){
Optional<User> user = userRepository.findById(request.getReportId()); //신고할 유저
Optional<User> user1 = userRepository.findByLoginId(userId); //신고한 유저
Expand Down

0 comments on commit 1d650bb

Please sign in to comment.