package com.rongwei.training.controller;

import com.rongwei.rwcommon.base.R;

import com.rongwei.trainingcommon.sys.service.ExportQuestionnaireRecordingsService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
/**
 * ExportQuestionnaireRecordingsController class
 * 导出问卷培训记录信息
 * @author XH
 * @date 2024/06/06
 */
@RestController
@RequestMapping("/export")
public class ExportQuestionnaireRecordingsController {
    @Autowired
    private ExportQuestionnaireRecordingsService exportQuestionnaireRecordingsService;

    @PostMapping("/questionnaire/recording/{id}")
    public void export(@PathVariable("id") String id, HttpServletResponse response){
     exportQuestionnaireRecordingsService.exportWord(id,response);
    }
}
