package jnpf.attendance.fallback;

import jnpf.attendance.AttendanceApi;
import jnpf.attendance.AttendanceLineSchedulingConfigApi;
import jnpf.model.attendance.vo.attendance.AttendanceToThousandsFacesVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

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

@Slf4j
@Component
public class AttendanceLineSchedulingConfigApiFallback implements FallbackFactory<AttendanceLineSchedulingConfigApi> {

    @Override
    public AttendanceLineSchedulingConfigApi create(Throwable cause) {
        cause.printStackTrace();
        return new AttendanceLineSchedulingConfigApi() {
            @Override
            public Boolean noticeLineScheduling(String tenantId) {
                return null;
            }
        };
    }
}
