|
@@ -39,14 +39,14 @@ public class UserCertificateController {
|
|
|
|
|
|
@PostMapping("/create")
|
|
|
@Operation(summary = "创建用户证书")
|
|
|
- @PreAuthorize("@ss.hasPermission('menduner.system:user-certificate:create')")
|
|
|
+ @PreAuthorize("@ss.hasPermission('menduner:system:user-certificate:create')")
|
|
|
public CommonResult<Long> createUserCertificate(@Valid @RequestBody UserCertificateSaveReqVO createReqVO) {
|
|
|
return success(userCertificateService.createUserCertificate(createReqVO));
|
|
|
}
|
|
|
|
|
|
@PutMapping("/update")
|
|
|
@Operation(summary = "更新用户证书")
|
|
|
- @PreAuthorize("@ss.hasPermission('menduner.system:user-certificate:update')")
|
|
|
+ @PreAuthorize("@ss.hasPermission('menduner:system:user-certificate:update')")
|
|
|
public CommonResult<Boolean> updateUserCertificate(@Valid @RequestBody UserCertificateSaveReqVO updateReqVO) {
|
|
|
userCertificateService.updateUserCertificate(updateReqVO);
|
|
|
return success(true);
|
|
@@ -55,7 +55,7 @@ public class UserCertificateController {
|
|
|
@DeleteMapping("/delete")
|
|
|
@Operation(summary = "删除用户证书")
|
|
|
@Parameter(name = "id", description = "编号", required = true)
|
|
|
- @PreAuthorize("@ss.hasPermission('menduner.system:user-certificate:delete')")
|
|
|
+ @PreAuthorize("@ss.hasPermission('menduner:system:user-certificate:delete')")
|
|
|
public CommonResult<Boolean> deleteUserCertificate(@RequestParam("id") Long id) {
|
|
|
userCertificateService.deleteUserCertificate(id);
|
|
|
return success(true);
|
|
@@ -64,7 +64,7 @@ public class UserCertificateController {
|
|
|
@GetMapping("/get")
|
|
|
@Operation(summary = "获得用户证书")
|
|
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
|
|
- @PreAuthorize("@ss.hasPermission('menduner.system:user-certificate:query')")
|
|
|
+ @PreAuthorize("@ss.hasPermission('menduner:system:user-certificate:query')")
|
|
|
public CommonResult<UserCertificateRespVO> getUserCertificate(@RequestParam("id") Long id) {
|
|
|
UserCertificateDO userCertificate = userCertificateService.getUserCertificate(id);
|
|
|
return success(BeanUtils.toBean(userCertificate, UserCertificateRespVO.class));
|
|
@@ -72,7 +72,7 @@ public class UserCertificateController {
|
|
|
|
|
|
@GetMapping("/page")
|
|
|
@Operation(summary = "获得用户证书分页")
|
|
|
- @PreAuthorize("@ss.hasPermission('menduner.system:user-certificate:query')")
|
|
|
+ @PreAuthorize("@ss.hasPermission('menduner:system:user-certificate:query')")
|
|
|
public CommonResult<PageResult<UserCertificateRespVO>> getUserCertificatePage(@Valid UserCertificatePageReqVO pageReqVO) {
|
|
|
PageResult<UserCertificateDO> pageResult = userCertificateService.getUserCertificatePage(pageReqVO);
|
|
|
return success(BeanUtils.toBean(pageResult, UserCertificateRespVO.class));
|
|
@@ -80,7 +80,7 @@ public class UserCertificateController {
|
|
|
|
|
|
@GetMapping("/export-excel")
|
|
|
@Operation(summary = "导出用户证书 Excel")
|
|
|
- @PreAuthorize("@ss.hasPermission('menduner.system:user-certificate:export')")
|
|
|
+ @PreAuthorize("@ss.hasPermission('menduner:system:user-certificate:export')")
|
|
|
@ApiAccessLog(operateType = EXPORT)
|
|
|
public void exportUserCertificateExcel(@Valid UserCertificatePageReqVO pageReqVO,
|
|
|
HttpServletResponse response) throws IOException {
|