| | |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | @Api("问卷题目") |
| | | @Api(description = "问卷题目") |
| | | @RestController |
| | | @RequestMapping("/smartor/svytopic") |
| | | public class SvyLibTopicController extends BaseController { |
| | |
| | | return toAjax(svyLibTopicService.deleteSvyLibTopicByTopicids(topicids)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 批量导入问题目 |
| | | */ |
| | | @ApiOperation("批量导入问问题目") |
| | | @PostMapping("/importLitTopic") |
| | | public AjaxResult importLitTopic(MultipartFile multipartFile) { |
| | | LoginUser loginUser = getLoginUser(); |
| | | SysUser user = loginUser.getUser(); |
| | | return success(svyLibTopicService.importLitTopic(user, multipartFile)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导入题目模板 |
| | | * |
| | | * @param response |
| | | */ |
| | | @ApiOperation("导入题目模板") |
| | | @PostMapping("/importLitTopicTemplate") |
| | | public void importLitTopicTemplate(HttpServletResponse response) { |
| | | ExcelUtil<SvyLibTopicRes> util = new ExcelUtil<SvyLibTopicRes>(SvyLibTopicRes.class); |
| | | util.importTemplateExcel(response, "导入题目"); |
| | | } |
| | | |
| | | /** |
| | | * 获取题目 |
| | | */ |
| | | @ApiOperation("获取题目") |
| | | @PostMapping("/showTopic") |
| | | public AjaxResult showTopic(@RequestBody SvyTopicReq svyTopicReq) { |
| | | return success(svyLibTopicService.showTopic(svyTopicReq)); |
| | | } |
| | | |
| | | } |