文件名从 assess-admin/src/main/java/com/gkhy/assess/admin/controller/SysDictTypeController.java 修改 |
| | |
| | | package com.gkhy.assess.admin.controller; |
| | | package com.gkhy.assess.admin.controller.web; |
| | | |
| | | import com.gkhy.assess.common.annotation.RepeatSubmit; |
| | | import com.gkhy.assess.common.api.CommonResult; |
| | | import com.gkhy.assess.system.domain.SysDictType; |
| | | import com.gkhy.assess.system.domain.SysLaw; |
| | |
| | | |
| | | |
| | | |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "新增字典类型") |
| | | @PostMapping("/addDictType") |
| | | public CommonResult addDictType(@Validated @RequestBody SysDictType dictType){ |
| | |
| | | } |
| | | |
| | | |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "编辑字典类型") |
| | | @PutMapping("/editDictType") |
| | | public CommonResult editDictType(@Validated @RequestBody SysDictType dictType){ |
| | |
| | | } |
| | | |
| | | |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "删除字典类型") |
| | | @DeleteMapping("/remove/{dictId}") |
| | | public CommonResult removeDictType(@PathVariable(name = "dictId")Long dictId){ |
| | |
| | | } |
| | | |
| | | |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "字典类型状态修改,停用/启用") |
| | | @PostMapping("/changeStatus") |
| | | public CommonResult changeStatus(SysDictType SysDictType) |
| | | public CommonResult changeStatus(@RequestBody SysDictType SysDictType) |
| | | { |
| | | return CommonResult.success(dictTypeService.changeDictTypeStatus(SysDictType)); |
| | | } |
| | |
| | | * 校验字典类型 |
| | | */ |
| | | @PostMapping("/checkDictTypeUnique") |
| | | public CommonResult checkDictTypeUnique(SysDictType dictType) |
| | | public CommonResult checkDictTypeUnique(@RequestBody SysDictType dictType) |
| | | { |
| | | return CommonResult.success(dictTypeService.checkDictTypeUnique(dictType)); |
| | | } |