package com.rongwei.savecheck.controller;


import com.rongwei.rwcommon.base.R;
import com.rongwei.sfcommon.sys.service.FsFileDataListService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 */
@RestController
@RequestMapping("/fsFile")
public class FsFileDataListController {

    @Autowired
    private FsFileDataListService fileDataListService;
    private final Logger log = LoggerFactory.getLogger(FsFileDataListController.class.getName());

    /**
     * 定时任务接口，每天执行一次，查询培训开始时间前，两天内的数据，发送消息提醒
     */
    @PostMapping("/trainingReminder")
    public R trainingReminder(){
        return fileDataListService.trainingReminder();
    }
}

