package com.yd.csf.feign.fallback.salary;

import com.yd.common.result.Result;
import com.yd.csf.feign.client.salary.ApiSalaryFeignClient;
import com.yd.csf.feign.request.salary.*;
import com.yd.csf.feign.response.salary.ApiSalaryDetailResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
 * 香港保险服务-薪资单信息Feign降级处理
 */
@Slf4j
@Component
public class ApiSalaryFeignFallbackFactory implements FallbackFactory<ApiSalaryFeignClient> {
    @Override
    public ApiSalaryFeignClient create(Throwable cause) {
        return new ApiSalaryFeignClient() {
            @Override
            public Result page(ApiSalaryPageRequest request) {
                return null;
            }

            @Override
            public Result<ApiSalaryDetailResponse> detail(String salaryBizId) {
                return null;
            }

            @Override
            public Result add(ApiSalaryAddRequest request) {
                return null;
            }

            @Override
            public Result edit(ApiSalaryEditRequest request) {
                return null;
            }

            @Override
            public Result batchAdd(ApiSalaryBatchAddRequest request) {
                return null;
            }

            @Override
            public Result delSalaryRemittance(String salaryRemittanceBizId) {
                return null;
            }

            @Override
            public Result<BigDecimal> calculatePaidAmount(ApiSalaryCalculatePaidAmountRequest request) {
                return null;
            }

            @Override
            public Result<BigDecimal> calculateTotalAmount(ApiSalaryCalculateTotalAmountRequest request) {
                return null;
            }
        };
    }
}
