liusheng
2024-05-07 29d027349c605bda0b7944301cd82a25ec9c1d7a
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyLibTopicoptionController.java
@@ -38,8 +38,8 @@
     * 查询问卷问题选项列表
     */
    @PreAuthorize("@ss.hasPermi('smartor:svytopicoption:list')")
    @GetMapping("/list")
    public TableDataInfo list(SvyLibTopicoption svyLibTopicoption)
   @PostMapping("/list")
    public TableDataInfo list(@RequestBody SvyLibTopicoption svyLibTopicoption)
    {
        startPage();
        List<SvyLibTopicoption> list = svyLibTopicoptionService.selectSvyLibTopicoptionList(svyLibTopicoption);
@@ -74,7 +74,7 @@
     */
    @PreAuthorize("@ss.hasPermi('smartor:svytopicoption:add')")
    @Log(title = "问卷问题选项", businessType = BusinessType.INSERT)
    @PostMapping
    @PostMapping("/add")
    public AjaxResult add(@RequestBody SvyLibTopicoption svyLibTopicoption)
    {
        return toAjax(svyLibTopicoptionService.insertSvyLibTopicoption(svyLibTopicoption));
@@ -85,7 +85,7 @@
     */
    @PreAuthorize("@ss.hasPermi('smartor:svytopicoption:edit')")
    @Log(title = "问卷问题选项", businessType = BusinessType.UPDATE)
    @PutMapping
    @PostMapping("/edit")
    public AjaxResult edit(@RequestBody SvyLibTopicoption svyLibTopicoption)
    {
        return toAjax(svyLibTopicoptionService.updateSvyLibTopicoption(svyLibTopicoption));
@@ -96,7 +96,7 @@
     */
    @PreAuthorize("@ss.hasPermi('smartor:svytopicoption:remove')")
    @Log(title = "问卷问题选项", businessType = BusinessType.DELETE)
   @DeleteMapping("/{optionids}")
   @GetMapping("/remove/{optionids}")
    public AjaxResult remove(@PathVariable Long[] optionids)
    {
        return toAjax(svyLibTopicoptionService.deleteSvyLibTopicoptionByOptionids(optionids));