package jnpf.attendance;

import jnpf.attendance.fallback.AttendanceApiFallback;
import jnpf.model.attendance.vo.attendance.AttendanceToThousandsFacesVo;
import jnpf.util.NoDataSourceBind;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * describe
 *
 * @author HuangLinPan
 * @date 2023/11/27
 */

@FeignClient(name = "jnpf-ftb", fallbackFactory = AttendanceApiFallback.class, path = "/attendance")
public interface AttendanceApi {
    @PostMapping(value = "/invalidationCoupons")
    @NoDataSourceBind
    Boolean invalidationCoupons(@RequestParam(value = "tenantId") String tenantId);

//    @PostMapping(value = "/overtimeVouchers")
//    @NoDataSourceBind
//    Boolean overtimeVouchers(@RequestParam(value = "tenantId") String tenantId);

    @PostMapping(value = "/storageRest")
    Boolean storageRest(@RequestParam("tenantId") String tenantId);


    @PostMapping(value = "/attendanceToThousandsFaces")
    AttendanceToThousandsFacesVo attendanceToThousandsFaces();

}
