test #298
|
@ -1,5 +1,6 @@
|
||||||
package kr.co.vividnext.sodalive.marketing
|
package kr.co.vividnext.sodalive.marketing
|
||||||
|
|
||||||
|
import kr.co.vividnext.sodalive.common.ApiResponse
|
||||||
import org.springframework.web.bind.annotation.PostMapping
|
import org.springframework.web.bind.annotation.PostMapping
|
||||||
import org.springframework.web.bind.annotation.RequestBody
|
import org.springframework.web.bind.annotation.RequestBody
|
||||||
import org.springframework.web.bind.annotation.RequestMapping
|
import org.springframework.web.bind.annotation.RequestMapping
|
||||||
|
@ -12,12 +13,14 @@ class AdTrackingController(private val service: AdTrackingService) {
|
||||||
fun trackingAppLaunch(
|
fun trackingAppLaunch(
|
||||||
@RequestBody request: AdTrackingAppLaunchRequest
|
@RequestBody request: AdTrackingAppLaunchRequest
|
||||||
) = run {
|
) = run {
|
||||||
service.saveTrackingHistory(
|
ApiResponse.ok(
|
||||||
pid = request.pid,
|
service.saveTrackingHistory(
|
||||||
type = AdTrackingHistoryType.APP_LAUNCH,
|
pid = request.pid,
|
||||||
memberId = 0,
|
type = AdTrackingHistoryType.APP_LAUNCH,
|
||||||
price = null,
|
memberId = 0,
|
||||||
locale = null
|
price = null,
|
||||||
|
locale = null
|
||||||
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue