文件名从 assess-admin/src/main/java/com/gkhy/assess/admin/controller/SysLawController.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.SysLaw; |
| | | import com.gkhy.assess.system.service.SysLawService; |
| | |
| | | return CommonResult.success(lawService.getLawById(lawId)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @ApiOperation(value = "新增法律法规") |
| | | @PostMapping("/addLaw") |
| | |
| | | } |
| | | |
| | | |
| | | @RepeatSubmit |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @ApiOperation(value = "编辑法律法规") |
| | | @PutMapping("/editLaw") |
| | |
| | | } |
| | | |
| | | |
| | | @RepeatSubmit |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @ApiOperation(value = "删除法律法规") |
| | | @PutMapping("/remove/{lawId}") |
| | | @DeleteMapping("/remove/{lawId}") |
| | | public CommonResult removeLaw(@PathVariable(name = "lawId")Long lawId){ |
| | | return CommonResult.success(lawService.deleteLawById(lawId)); |
| | | } |
| | | |
| | | |
| | | @RepeatSubmit |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @ApiOperation(value = "法律法规状态修改,停用/启用") |
| | | @PostMapping("/changeStatus") |
| | | public CommonResult changeStatus(SysLaw law) |
| | | public CommonResult changeStatus(@RequestBody SysLaw law) |
| | | { |
| | | return CommonResult.success(lawService.changeLawStatus(law)); |
| | | } |