package com.rongwei.controller;


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

import org.springframework.stereotype.Controller;

import java.util.List;

/**
 * <p>
 * 奥克宁可——文件清单日志 前端控制器
 * </p>
 *
 * @author trj
 * @since 2023-07-17
 */
@RestController
@RequestMapping("/record-history")
public class FsFileDataListRecordController {

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

    @Autowired
    private FsFileDataListRecordService fileDataListRecordService;

    /**
     * 文件历史生成
     * @param fileListIds
     * @return
     */
    @PostMapping("/history-produce")
    @ResponseBody
    public R historyProduce(@RequestBody List<String> fileListIds){
        log.info("进入接口:history-produce;参数为:{}",fileListIds);
        return fileDataListRecordService.historyProduce(fileListIds);
    }


}

