package com.yd.csf.feign.client.salarysplit;

import com.yd.common.result.Result;
import com.yd.csf.feign.fallback.salarysplit.ApiSalarySplitFeignFallbackFactory;
import com.yd.csf.feign.request.salarysplit.ApiSalarySplitBatchSaveRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 香港保险服务-薪资拆分应发信息Feign客户端
 */
@FeignClient(name = "yd-csf-api", fallbackFactory = ApiSalarySplitFeignFallbackFactory.class)
public interface ApiSalarySplitFeignClient {

    /**
     * 批量保存
     * @param request
     * @return
     */
    @PostMapping("/batch/save")
    Result batchSave(@Validated @RequestBody ApiSalarySplitBatchSaveRequest request);
}
