NetApi.kt 519 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
package com.ydl.ydlnet.builder.api

import com.ydl.ydlnet.builder.bean.BaseAPIResponse
import io.reactivex.Observable
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.Headers
import retrofit2.http.POST

/**
 * Created by Ykai on 2021/3/15.
 */
interface NetApi {

    /**
     * 行为动作埋点统计
     */
    @Headers("Domain-Name:JAVA_BASE_URL")
    @POST("data/bigdata/maidian/writeMaiDianData")
    fun actionDataCount(@Body body: RequestBody): Observable<BaseAPIResponse<String>>
}