package com.rongwei.controller;


import com.rongwei.bscommon.sys.service.FsTrainingStaffService;
import com.rongwei.rwcommon.base.R;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 奥克宁可——培训人员清单 前端控制器
 * </p>
 *
 * @author trj
 * @since 2023-07-17
 */
@RestController
@RequestMapping("/training")
public class FsTrainingStaffController {

    private final Logger log = LoggerFactory.getLogger(this.getClass().getName());

    @Autowired
    private FsTrainingStaffService trainingStaffService;


    /**
     * 人员培训完成
     * @param fileListIds
     * @return
     */
    @PostMapping("/personnel-training")
    @ResponseBody
    public R personnelTraining(@RequestBody List<String> fileListIds){
        log.info("进入接口：personnel-training；参数为：{}",fileListIds);
        return trainingStaffService.personnelTraining(fileListIds);
    }
}

