/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the yifu4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

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

import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeePreLogDetail;
import com.yifu.cloud.plus.v1.yifu.archives.service.TEmployeePreLogDetailService;
import com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * 入职确认信息变更日志明细表
 *
 * @author hgw
 * @date 2025-04-07 15:35:05
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/temployeeprelogdetail")
@Tag(name = "入职确认信息变更日志明细表管理")
public class TEmployeePreLogDetailController {

	private final TEmployeePreLogDetailService tEmployeePreLogDetailService;

	/**
	 * 批量保存入职确认信息变更日志明细（内部接口）
	 *
	 * @param detailList 日志明细列表
	 * @return Boolean
	 */
	@Inner
	@PostMapping("/inner/saveBatch")
	public Boolean saveBatch(@RequestBody List<TEmployeePreLogDetail> detailList) {
		return tEmployeePreLogDetailService.saveBatch(detailList);
	}

}
