package com.yifu.cloud.plus.v1.ekp.controller;

import com.yifu.cloud.plus.v1.ekp.service.EkpSocialInfoService;
import com.yifu.cloud.plus.v1.ekp.vo.EkpSocialPushInfoVo;
import com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner;
import com.yifu.cloud.plus.v1.yifu.ekp.vo.EkpPushSocialParam;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * 社保明细推送
 * @author huyc
 * @date 2024-02-28 17:01:22
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/ekpSocialPush" )
@Tag(name = "社保明细推送")
public class TEkpSocialInfoController {

	private final EkpSocialInfoService socialInfoService;

	/**
	 * @param unPushList
	 * @Description: 推送社保明细数据
	 * @Author: huyc
	 * @Date: 2024/2/29
	 * @return:
	 **/
	@Inner
	@PostMapping("/inner/pushSocialInfoToEkp")
	public EkpSocialPushInfoVo pushSocialInfoToEkp(@RequestBody List<EkpPushSocialParam> unPushList) {
		return socialInfoService.pushSocialInfoToEkp(unPushList);
	}
}
