| | |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | return CommonResult.success(dictDataService.getDictDataById(dictId)); |
| | | } |
| | | |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "新增字典数据") |
| | | @PostMapping("/addDictData") |
| | |
| | | } |
| | | |
| | | |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "编辑字典数据") |
| | | @PutMapping("/editDictData") |
| | |
| | | } |
| | | |
| | | |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "删除字典数据") |
| | | @DeleteMapping("/remove/{dictId}") |
| | |
| | | } |
| | | |
| | | |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "字典数据状态修改,停用/启用") |
| | | @PostMapping("/changeStatus") |