All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.octopusden.employee.service.onec.client.OneCClient.kt Maven / Gradle / Ivy

There is a newer version: 2.0.35
Show 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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy