package org.security.basicDataSync.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.security.basicDataSync.service.IUserSyncHistoryService;
import org.springblade.core.tool.api.R;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author ：wzf
 * @apiNote ：员工信息同步流水记录
 * @since ：Created in 2022/8/26 9:16
 */
@RestController
@AllArgsConstructor
@RequestMapping("/userData")
public class UserSyncHistoryController {
	private final IUserSyncHistoryService userSyncHistoryService;
	/**
	 * 导入用户数据
	 */
	@PostMapping("/import")
	@ApiOperationSupport(order = 9)
	@ApiOperation(value = "导入检查明细", notes = "传入file")
	public R importData(MultipartFile file){
		return R.status(userSyncHistoryService.importData(file));
	}
}
