package com.atmob.keyboard_android.util.bridge.api

import com.atmob.keyboard_android.enums.StatisticsPoint
import com.atmob.keyboard_android.util.bridge.model.base.EmptyResp

/**
 * 埋点事件上报
 */
interface EventReportApi {
    /**
     * 埋点事件上报
     *
     * @param statisticsPoint 事件枚举
     * @param params  参数
     */
    fun reportEvent(
        statisticsPoint: StatisticsPoint,
        params: Map<String, Any>? = null,
        onSuccess: ((EmptyResp) -> Unit)? = null,
        onFail: ((errorCode: Int, errorMsg: String) -> Unit)? = null
    )
}