Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary codes #90

Merged
merged 1 commit into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading