| | |
| | | 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(lawService.getLawById(lawId)); |
| | | } |
| | | |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @ApiOperation(value = "新增法律法规") |
| | | @PostMapping("/addLaw") |
| | | public CommonResult addLaw(@Validated @RequestBody SysLaw law){ |
| | |
| | | } |
| | | |
| | | |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @ApiOperation(value = "编辑法律法规") |
| | | @PutMapping("/editLaw") |
| | | public CommonResult editLaw(@Validated @RequestBody SysLaw law){ |
| | |
| | | } |
| | | |
| | | |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @ApiOperation(value = "删除法律法规") |
| | | @PutMapping("/remove/{lawId}") |
| | | public CommonResult removeLaw(@PathVariable(name = "lawId")Long lawId){ |
| | |
| | | } |
| | | |
| | | |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @ApiOperation(value = "法律法规状态修改,停用/启用") |
| | | @PostMapping("/changeStatus") |
| | | public CommonResult changeStatus(SysLaw law) |