feat: Add GrowthRecipeService for NPK data retrieval
This commit is contained in:
parent
c35e388bda
commit
bbd4eef60c
|
|
@ -0,0 +1,19 @@
|
|||
package com.syaroful.agrilinkvocpro.growth_recipe_feature.data.network
|
||||
|
||||
import com.syaroful.agrilinkvocpro.growth_recipe_feature.data.model.NpkGraphicDayResponse
|
||||
import retrofit2.Response
|
||||
import retrofit2.http.GET
|
||||
import retrofit2.http.Header
|
||||
import retrofit2.http.Query
|
||||
|
||||
interface GrowthRecipeService {
|
||||
|
||||
@GET("api/sensor-readings/search")
|
||||
suspend fun getNpkDataSensorDaily(
|
||||
@Header("Authorization") authHeader: String,
|
||||
@Query("range[start]") startDate: String,
|
||||
@Query("range[end]") endDate: String,
|
||||
@Query("range[time_range]") timeRange: String = "DAILY",
|
||||
@Query("sensor") sensor: String
|
||||
): Response<NpkGraphicDayResponse>
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user