23 lines
663 B
Kotlin
23 lines
663 B
Kotlin
package com.novayaplaneta.data.remote
|
|
|
|
import com.novayaplaneta.data.remote.dto.ChatRequest
|
|
import com.novayaplaneta.data.remote.dto.ChatResponse
|
|
import com.novayaplaneta.data.remote.dto.GenerateScheduleRequest
|
|
import com.novayaplaneta.data.remote.dto.GenerateScheduleResponse
|
|
import retrofit2.Response
|
|
import retrofit2.http.Body
|
|
import retrofit2.http.POST
|
|
|
|
interface AiApi {
|
|
@POST("api/v1/ai/chat")
|
|
suspend fun chat(
|
|
@Body request: ChatRequest
|
|
): Response<ChatResponse>
|
|
|
|
@POST("api/v1/ai/schedule/generate")
|
|
suspend fun generateSchedule(
|
|
@Body request: GenerateScheduleRequest
|
|
): Response<GenerateScheduleResponse>
|
|
}
|
|
|