| | |
| | | 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.*; |
| | |
| | | * @author ruoyi |
| | | * @date 2023-12-14 |
| | | */ |
| | | @Api(description = "指标选项库") |
| | | @RestController |
| | | @RequestMapping("/smartor/targetoption") |
| | | public class IvrLibaTargetoptionController extends BaseController |
| | |
| | | /** |
| | | * 查询指标选项库列表 |
| | | */ |
| | | @ApiOperation("查询指标选项库列表") |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibaTargetoption ivrLibaTargetoption) |
| | |
| | | /** |
| | | * 导出指标选项库列表 |
| | | */ |
| | | @ApiOperation("导出指标选项库列表") |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:export')") |
| | | @Log(title = "指标选项库", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | |
| | | /** |
| | | * 获取指标选项库详细信息 |
| | | */ |
| | | @ApiOperation("获取指标选项库详细信息") |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:query')") |
| | | @GetMapping(value = "/getInfo/{targetoptionid}") |
| | | public AjaxResult getInfo(@PathVariable("targetoptionid") Long targetoptionid) |
| | |
| | | /** |
| | | * 新增指标选项库 |
| | | */ |
| | | @ApiOperation("新增指标选项库") |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:add')") |
| | | @Log(title = "指标选项库", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | |
| | | /** |
| | | * 修改指标选项库 |
| | | */ |
| | | @ApiOperation("修改指标选项库") |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:edit')") |
| | | @Log(title = "指标选项库", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | |
| | | /** |
| | | * 删除指标选项库 |
| | | */ |
| | | @ApiOperation("删除指标选项库") |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:remove')") |
| | | @Log(title = "指标选项库", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{targetoptionids}") |