package com.rongwei.controller;

import com.rongwei.bscommon.sys.service.FsFileDataListRecordService;
import com.rongwei.bscommon.sys.service.RemindService;
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;

/**
 * RemindController class
 *
 * @author XH
 * @date 2023/07/25
 */
@RestController
@RequestMapping("/remind")
public class RemindController {

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

    @Autowired
    private RemindService remindService;

    /**
     * 文件培训提现
     * @param fileListIds
     * @return
     */
    @PostMapping("/train")
    @ResponseBody
    public R trainRemind(@RequestBody List<String> fileListIds){
        log.info("进入接口:remind/train;参数为:{}",fileListIds);
        return remindService.trainRemind(fileListIds);
    }
}
