코인 충전, 코인 내역 API 추가
This commit is contained in:
20
src/main/kotlin/kr/co/vividnext/sodalive/can/Can.kt
Normal file
20
src/main/kotlin/kr/co/vividnext/sodalive/can/Can.kt
Normal file
@@ -0,0 +1,20 @@
|
||||
package kr.co.vividnext.sodalive.can
|
||||
|
||||
import kr.co.vividnext.sodalive.common.BaseEntity
|
||||
import javax.persistence.Entity
|
||||
import javax.persistence.EnumType
|
||||
import javax.persistence.Enumerated
|
||||
|
||||
@Entity
|
||||
data class Can(
|
||||
var title: String,
|
||||
var can: Int,
|
||||
var rewardCan: Int,
|
||||
var price: Int,
|
||||
@Enumerated(value = EnumType.STRING)
|
||||
var status: CanStatus
|
||||
) : BaseEntity()
|
||||
|
||||
enum class CanStatus {
|
||||
SALE, END_OF_SALE
|
||||
}
|
Reference in New Issue
Block a user