-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tht server 272 spring boot 3.4.1 마이그레이션 (#273)
* chore: github actions 테스트와 빌드 단계 분리 * chore: spring boot 3.4 마이그레이션 * fix: spring security 버전업 적용 * chore: 3.4.1 라이브러리 마이그레이션 * chore: 코틀린 적용 * feat: 개발용 데이터 초기화 api
- Loading branch information
Showing
36 changed files
with
303 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
tht-apis/src/main/java/com/tht/thtapis/dev/DevController.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.tht.thtapis.dev | ||
|
||
import com.tht.domain.entity.like.UserLikeRepository | ||
import com.tht.domain.entity.user.repository.UserDailyFallingRepository | ||
import lombok.RequiredArgsConstructor | ||
import org.springframework.http.HttpStatus | ||
import org.springframework.http.ResponseEntity | ||
import org.springframework.security.core.Authentication | ||
import org.springframework.web.bind.annotation.PostMapping | ||
import org.springframework.web.bind.annotation.RequestMapping | ||
import org.springframework.web.bind.annotation.RestController | ||
import java.util.* | ||
|
||
@RestController | ||
@RequestMapping("/dev") | ||
@RequiredArgsConstructor | ||
class DevController( | ||
private val userLikeRepository: UserLikeRepository, | ||
private val userDailyFallingRepository: UserDailyFallingRepository | ||
) { | ||
|
||
@PostMapping("/like-and-dislike/reset") | ||
fun resetLikeData(authentication: Authentication?): ResponseEntity<Objects> { | ||
val userUuid: String = authentication?.credentials.toString() | ||
userLikeRepository.deleteAllByUserUuid(userUuid) | ||
|
||
return ResponseEntity.status(HttpStatus.NO_CONTENT).build() | ||
} | ||
|
||
@PostMapping("/selected-talk-keywords/reset") | ||
fun resetSelectedFallingKeyword(authentication: Authentication?): ResponseEntity<Objects> { | ||
val userUuid: String = authentication?.credentials.toString() | ||
userDailyFallingRepository.deleteAllByUserUuid(userUuid) | ||
|
||
return ResponseEntity.status(HttpStatus.NO_CONTENT).build() | ||
} | ||
|
||
} |
Oops, something went wrong.