| | |
| | | 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.*; |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "新增字典类型") |
| | | @PostMapping("/addDictType") |
| | |
| | | return CommonResult.success(dictTypeService.addDictType(dictType)); |
| | | } |
| | | |
| | | |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "编辑字典类型") |
| | | @PutMapping("/editDictType") |
| | |
| | | return CommonResult.success(dictTypeService.editDictType(dictType)); |
| | | } |
| | | |
| | | |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "删除字典类型") |
| | | @DeleteMapping("/remove/{dictId}") |
| | |
| | | return CommonResult.success(dictTypeService.deleteDictTypeById(dictId)); |
| | | } |
| | | |
| | | |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "字典类型状态修改,停用/启用") |
| | | @PostMapping("/changeStatus") |