liusheng
2024-09-18 907641e56c2085aaa81f267946dc3e3e9fca73e7
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrLibaTargetoptionController.java
@@ -9,6 +9,8 @@
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.smartor.domain.IvrLibaTargetoption;
import com.smartor.service.IIvrLibaTargetoptionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
@@ -22,6 +24,7 @@
 * @author ruoyi
 * @date 2023-12-14
 */
@Api(description = "指标选项库")
@RestController
@RequestMapping("/smartor/targetoption")
public class IvrLibaTargetoptionController extends BaseController
@@ -32,7 +35,8 @@
    /**
     * 查询指标选项库列表
     */
    @PreAuthorize("@ss.hasPermi('system:targetoption:list')")
    @ApiOperation("查询指标选项库列表")
    //@PreAuthorize("@ss.hasPermi('system:targetoption:list')")
    @PostMapping("/list")
    public TableDataInfo list(@RequestBody    IvrLibaTargetoption ivrLibaTargetoption)
    {
@@ -44,7 +48,8 @@
    /**
     * 导出指标选项库列表
     */
    @PreAuthorize("@ss.hasPermi('system:targetoption:export')")
    @ApiOperation("导出指标选项库列表")
    //@PreAuthorize("@ss.hasPermi('system:targetoption:export')")
    @Log(title = "指标选项库", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
    public void export(HttpServletResponse response, IvrLibaTargetoption ivrLibaTargetoption)
@@ -57,7 +62,8 @@
    /**
     * 获取指标选项库详细信息
     */
    @PreAuthorize("@ss.hasPermi('system:targetoption:query')")
    @ApiOperation("获取指标选项库详细信息")
    //@PreAuthorize("@ss.hasPermi('system:targetoption:query')")
    @GetMapping(value = "/getInfo/{targetoptionid}")
    public AjaxResult getInfo(@PathVariable("targetoptionid") Long targetoptionid)
    {
@@ -67,7 +73,8 @@
    /**
     * 新增指标选项库
     */
    @PreAuthorize("@ss.hasPermi('system:targetoption:add')")
    @ApiOperation("新增指标选项库")
    //@PreAuthorize("@ss.hasPermi('system:targetoption:add')")
    @Log(title = "指标选项库", businessType = BusinessType.INSERT)
    @PostMapping("/add")
    public AjaxResult add(@RequestBody IvrLibaTargetoption ivrLibaTargetoption)
@@ -78,7 +85,8 @@
    /**
     * 修改指标选项库
     */
    @PreAuthorize("@ss.hasPermi('system:targetoption:edit')")
    @ApiOperation("修改指标选项库")
    //@PreAuthorize("@ss.hasPermi('system:targetoption:edit')")
    @Log(title = "指标选项库", businessType = BusinessType.UPDATE)
    @PostMapping("/edit")
    public AjaxResult edit(@RequestBody IvrLibaTargetoption ivrLibaTargetoption)
@@ -89,7 +97,8 @@
    /**
     * 删除指标选项库
     */
    @PreAuthorize("@ss.hasPermi('system:targetoption:remove')")
    @ApiOperation("删除指标选项库")
    //@PreAuthorize("@ss.hasPermi('system:targetoption:remove')")
    @Log(title = "指标选项库", businessType = BusinessType.DELETE)
   @GetMapping("/remove/{targetoptionids}")
    public AjaxResult remove(@PathVariable Long[] targetoptionids)