| | |
| | | * 问卷题目Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-02 |
| | | * @date 2023-03-03 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/system/snytopic") |
| | | @RequestMapping("/smartor/svytopic") |
| | | public class SvyLibTopicController extends BaseController |
| | | { |
| | | @Autowired |
| | |
| | | /** |
| | | * 查询问卷题目列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:snytopic:list')") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopic:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyLibTopic svyLibTopic) |
| | | { |
| | |
| | | /** |
| | | * 导出问卷题目列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:snytopic:export')") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopic:export')") |
| | | @Log(title = "问卷题目", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibTopic svyLibTopic) |
| | |
| | | /** |
| | | * 获取问卷题目详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:snytopic:query')") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopic:query')") |
| | | @GetMapping(value = "/{topicid}") |
| | | public AjaxResult getInfo(@PathVariable("topicid") Long topicid) |
| | | { |
| | |
| | | /** |
| | | * 新增问卷题目 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:snytopic:add')") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopic:add')") |
| | | @Log(title = "问卷题目", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyLibTopic svyLibTopic) |
| | |
| | | /** |
| | | * 修改问卷题目 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:snytopic:edit')") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopic:edit')") |
| | | @Log(title = "问卷题目", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyLibTopic svyLibTopic) |
| | |
| | | /** |
| | | * 删除问卷题目 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:snytopic:remove')") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopic:remove')") |
| | | @Log(title = "问卷题目", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{topicids}") |
| | | public AjaxResult remove(@PathVariable Long[] topicids) |