feat: Add GrowthRecipeService for NPK data retrieval

This commit is contained in:
Cutiful 2025-07-10 18:19:49 +07:00
parent c35e388bda
commit bbd4eef60c

View File

@ -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>
}