test #316
|
@ -2,6 +2,7 @@ package kr.co.vividnext.sodalive.admin.point
|
||||||
|
|
||||||
import com.querydsl.core.annotations.QueryProjection
|
import com.querydsl.core.annotations.QueryProjection
|
||||||
import kr.co.vividnext.sodalive.useraction.ActionType
|
import kr.co.vividnext.sodalive.useraction.ActionType
|
||||||
|
import kr.co.vividnext.sodalive.useraction.PolicyType
|
||||||
|
|
||||||
data class GetPointRewardPolicyListResponse(
|
data class GetPointRewardPolicyListResponse(
|
||||||
val totalCount: Int,
|
val totalCount: Int,
|
||||||
|
@ -11,8 +12,10 @@ data class GetPointRewardPolicyListResponse(
|
||||||
data class GetPointRewardPolicyListItem @QueryProjection constructor(
|
data class GetPointRewardPolicyListItem @QueryProjection constructor(
|
||||||
val id: Long,
|
val id: Long,
|
||||||
val title: String,
|
val title: String,
|
||||||
|
val policyType: PolicyType,
|
||||||
val actionType: ActionType,
|
val actionType: ActionType,
|
||||||
val threshold: Int,
|
val threshold: Int,
|
||||||
|
val availableCount: Int,
|
||||||
val pointAmount: Int,
|
val pointAmount: Int,
|
||||||
val startDate: String,
|
val startDate: String,
|
||||||
val endDate: String,
|
val endDate: String,
|
||||||
|
|
|
@ -33,8 +33,10 @@ class PointPolicyQueryRepositoryImpl(
|
||||||
QGetPointRewardPolicyListItem(
|
QGetPointRewardPolicyListItem(
|
||||||
pointRewardPolicy.id,
|
pointRewardPolicy.id,
|
||||||
pointRewardPolicy.title,
|
pointRewardPolicy.title,
|
||||||
|
pointRewardPolicy.policyType,
|
||||||
pointRewardPolicy.actionType,
|
pointRewardPolicy.actionType,
|
||||||
pointRewardPolicy.threshold,
|
pointRewardPolicy.threshold,
|
||||||
|
pointRewardPolicy.availableCount,
|
||||||
pointRewardPolicy.pointAmount,
|
pointRewardPolicy.pointAmount,
|
||||||
getFormattedDate(pointRewardPolicy.startDate),
|
getFormattedDate(pointRewardPolicy.startDate),
|
||||||
getFormattedDate(pointRewardPolicy.endDate),
|
getFormattedDate(pointRewardPolicy.endDate),
|
||||||
|
|
Loading…
Reference in New Issue