| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svycategory:add')") |
| | | @Log(title = "问卷分类", businessType = BusinessType.INSERT) |
| | | @ApiOperation("新增问卷分类") |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyCategory svyCategory) { |
| | | return toAjax(svyCategoryService.insertSvyCategory(svyCategory)); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svycategory:edit')") |
| | | @Log(title = "问卷分类", businessType = BusinessType.UPDATE) |
| | | @ApiOperation("修改问卷分类") |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyCategory svyCategory) { |
| | | return toAjax(svyCategoryService.updateSvyCategory(svyCategory)); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svycategory:remove')") |
| | | @Log(title = "问卷分类", businessType = BusinessType.DELETE) |
| | | @ApiOperation("删除问卷分类") |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(svyCategoryService.deleteSvyCategoryByIds(ids)); |