org.octopusden.employee.service.onec.client.OneCClient.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of employee-service Show documentation
Show all versions of employee-service Show documentation
Octopus module: employee-service
The newest version!
package org.octopusden.employee.service.onec.client
import feign.Param
import feign.RequestLine
import org.octopusden.employee.client.common.dto.WorkingDaysDTO
import org.octopusden.employee.client.common.feign.LocalDateExpander
import org.octopusden.employee.service.onec.client.dto.PlannedTimeDTO
import java.time.LocalDate
interface OneCClient {
@RequestLine("GET ru/hs/ow_http/getPlannedTime?user={employee}&dateFrom={dateFrom}&dateTo={dateTo}")
fun getPlannedTime(
@Param("employee") employee: String,
@Param("dateFrom", expander = LocalDateExpander::class) fromDate: LocalDate,
@Param("dateTo", expander = LocalDateExpander::class) toDate: LocalDate
): List
@RequestLine("GET ru/hs/ow_http/ping")
fun getHealth()
@RequestLine("GET ru/hs/ow_http/getWorkingDays?dateFrom={dateFrom}&dateTo={dateTo}")
fun getWorkingDays(
@Param("dateFrom", expander = LocalDateExpander::class) fromDate: LocalDate,
@Param("dateTo", expander = LocalDateExpander::class) toDate: LocalDate
): WorkingDaysDTO
}