Skip to content

Commit

Permalink
Remove unnecessary codes
Browse files Browse the repository at this point in the history
  • Loading branch information
mkSpace committed Mar 28, 2024
1 parent c19990c commit a33dae8
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 135 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ import com.whatever.raisedragon.domain.betting.BettingPredictionType
import com.whatever.raisedragon.domain.betting.BettingResult
import io.swagger.v3.oas.annotations.media.Schema

@Schema(description = "[Response] 배팅 생성/수정")
data class BettingCreateUpdateResponse(
@Schema(description = "Goal Id")
val bettingRetrieveResponse: BettingRetrieveResponse,
)

@Schema(description = "[Response] 배팅 조회")
data class BettingRetrieveResponse(
@Schema(description = "BettingId")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import com.whatever.raisedragon.domain.goal.GoalService
import com.whatever.raisedragon.domain.goalproof.Comment
import com.whatever.raisedragon.domain.goalproof.GoalProof
import com.whatever.raisedragon.domain.goalproof.GoalProofService
import com.whatever.raisedragon.domain.user.UserService
import org.springframework.stereotype.Service
import org.springframework.transaction.annotation.Transactional
import java.time.LocalDateTime
Expand All @@ -20,7 +19,6 @@ import java.time.temporal.ChronoUnit
class GoalProofApplicationService(
private val goalProofService: GoalProofService,
private val goalService: GoalService,
private val userService: UserService,
) {

@Transactional
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,4 @@ class RefreshTokenEntity(
@GeneratedValue(strategy = GenerationType.IDENTITY)
val id: Long = 0L

) : BaseEntity()

fun RefreshToken.fromDto(userEntity: UserEntity): RefreshTokenEntity = RefreshTokenEntity(
userEntity = userEntity,
payload = payload,
)
) : BaseEntity()
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.whatever.raisedragon.domain.user
import com.whatever.raisedragon.domain.BaseEntity
import jakarta.persistence.*
import org.hibernate.annotations.SQLRestriction
import java.time.LocalDateTime

@Table(name = "users")
@Entity
Expand Down Expand Up @@ -32,10 +31,6 @@ fun User.fromDto(): UserEntity = UserEntity(
nickname = nickname,
)

fun UserEntity.disable() {
this.deletedAt = LocalDateTime.now()
}

fun UserEntity.able() {
this.deletedAt = null
}
Expand Down

0 comments on commit a33dae8

Please sign in to comment.