| | |
| | | |
| | | |
| | | import com.gkhy.exam.common.annotation.Log; |
| | | import com.gkhy.exam.common.annotation.RepeatSubmit; |
| | | import com.gkhy.exam.common.api.CommonResult; |
| | | import com.gkhy.exam.common.enums.BusinessType; |
| | | import com.gkhy.exam.system.domain.SysCarousel; |
| | |
| | | return CommonResult.success(carouselService.selectCarouselById(carouselId)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @PreAuthorize("hasAnyAuthority('train:exam:system')") |
| | | @Log(title = "轮播图管理", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "新增轮播图") |
| | |
| | | return CommonResult.success(carouselService.insertCarousel(carousel)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @PreAuthorize("hasAnyAuthority('train:exam:system')") |
| | | @Log(title = "轮播图管理", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "编辑轮播图") |
| | |
| | | return CommonResult.success(carouselService.updateCarousel(carousel)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @PreAuthorize("hasAnyAuthority('train:exam:system')") |
| | | @Log(title = "轮播图管理", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "删除轮播图") |