package jnpf.attendance;

import io.swagger.v3.oas.annotations.Operation;
import jnpf.attendance.fallback.AttendanceUserApiFallback;
import jnpf.base.ActionResult;
import jnpf.model.thousandsfaces.TodayWorkVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;


@FeignClient(name = "jnpf-ftb", fallbackFactory = AttendanceUserApiFallback.class, path = "/attendance/confirm")
public interface AttendanceConfirmApi {

    @Operation(summary = "自动生成考勤确认数据")
    @GetMapping(value = "/autoConfirm")
    ActionResult<Boolean> autoCreateConfirm();

    @Operation(summary = "逾期自动确认")
    @GetMapping(value = "/confirmAutoSlippage")
    ActionResult<Boolean> confirmAutoSlippage();

    @Operation(summary = "今日工作-考勤确认列表(0-待确认 1-已确认 2-已逾期)")
    @GetMapping(value = "/getTodayWorkConfirmList")
    List<TodayWorkVo> getTodayWorkConfirmList();
}
