parent
0b03ebeb70
commit
be2f013b9a
|
@ -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,6 +13,7 @@ class AdTrackingController(private val service: AdTrackingService) {
|
||||||
fun trackingAppLaunch(
|
fun trackingAppLaunch(
|
||||||
@RequestBody request: AdTrackingAppLaunchRequest
|
@RequestBody request: AdTrackingAppLaunchRequest
|
||||||
) = run {
|
) = run {
|
||||||
|
ApiResponse.ok(
|
||||||
service.saveTrackingHistory(
|
service.saveTrackingHistory(
|
||||||
pid = request.pid,
|
pid = request.pid,
|
||||||
type = AdTrackingHistoryType.APP_LAUNCH,
|
type = AdTrackingHistoryType.APP_LAUNCH,
|
||||||
|
@ -19,5 +21,6 @@ class AdTrackingController(private val service: AdTrackingService) {
|
||||||
price = null,
|
price = null,
|
||||||
locale = null
|
locale = null
|
||||||
)
|
)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue