Parcourir la source

修改权限字符

车车 il y a 5 mois
Parent
commit
11f2db8d30

+ 6 - 6
yudao-module-iscs/src/main/java/cn/iocoder/yudao/module/iscs/controller/admin/mailnotifyconfig/MailNotifyConfigController.java

@@ -40,14 +40,14 @@ public class MailNotifyConfigController {
 
     @PostMapping("/insertMailNotifyConfig")
     @Operation(summary = "创建系统邮件提醒周期配置")
-    @PreAuthorize("@ss.hasPermission('iscs:mail-notify-config:create')")
+    @PreAuthorize("@ss.hasPermission('iscs:notify:create')")
     public CommonResult<Long> insertMailNotifyConfig(@Valid @RequestBody MailNotifyConfigSaveReqVO createReqVO) {
         return success(mailNotifyConfigService.createMailNotifyConfig(createReqVO));
     }
 
     @PutMapping("/updateMailNotifyConfig")
     @Operation(summary = "更新系统邮件提醒周期配置")
-    @PreAuthorize("@ss.hasPermission('iscs:mail-notify-config:update')")
+    @PreAuthorize("@ss.hasPermission('iscs:notify:update')")
     public CommonResult<Boolean> updateMailNotifyConfig(@Valid @RequestBody MailNotifyConfigSaveReqVO updateReqVO) {
         mailNotifyConfigService.updateMailNotifyConfig(updateReqVO);
         return success(true);
@@ -56,7 +56,7 @@ public class MailNotifyConfigController {
     @DeleteMapping("/deleteMailNotifyConfigList")
     @Parameter(name = "ids", description = "编号", required = true)
     @Operation(summary = "批量删除系统邮件提醒周期配置")
-                @PreAuthorize("@ss.hasPermission('iscs:mail-notify-config:delete')")
+                @PreAuthorize("@ss.hasPermission('iscs:notify:delete')")
     public CommonResult<Boolean> deleteMailNotifyConfigList(@RequestParam("ids") List<Long> ids) {
         mailNotifyConfigService.deleteMailNotifyConfigListByIds(ids);
         return success(true);
@@ -65,7 +65,7 @@ public class MailNotifyConfigController {
     @GetMapping("/selectMailNotifyConfigById")
     @Operation(summary = "获得系统邮件提醒周期配置")
     @Parameter(name = "id", description = "编号", required = true, example = "1024")
-    @PreAuthorize("@ss.hasPermission('iscs:mail-notify-config:query')")
+    @PreAuthorize("@ss.hasPermission('iscs:notify:query')")
     public CommonResult<MailNotifyConfigRespVO> selectMailNotifyConfigById(@RequestParam("id") Long id) {
         MailNotifyConfigDO mailNotifyConfig = mailNotifyConfigService.getMailNotifyConfig(id);
         return success(BeanUtils.toBean(mailNotifyConfig, MailNotifyConfigRespVO.class));
@@ -73,7 +73,7 @@ public class MailNotifyConfigController {
 
     @GetMapping("/getMailNotifyConfigPage")
     @Operation(summary = "获得系统邮件提醒周期配置分页")
-    @PreAuthorize("@ss.hasPermission('iscs:mail-notify-config:query')")
+    @PreAuthorize("@ss.hasPermission('iscs:notify:query')")
     public CommonResult<PageResult<MailNotifyConfigRespVO>> getMailNotifyConfigPage(@Valid MailNotifyConfigPageReqVO pageReqVO) {
         PageResult<MailNotifyConfigDO> pageResult = mailNotifyConfigService.getMailNotifyConfigPage(pageReqVO);
         return success(BeanUtils.toBean(pageResult, MailNotifyConfigRespVO.class));
@@ -81,7 +81,7 @@ public class MailNotifyConfigController {
 
     @GetMapping("/exportMailNotifyConfigExcel")
     @Operation(summary = "导出系统邮件提醒周期配置 Excel")
-    @PreAuthorize("@ss.hasPermission('iscs:mail-notify-config:export')")
+    @PreAuthorize("@ss.hasPermission('iscs:notify:export')")
     @ApiAccessLog(operateType = EXPORT)
     public void exportMailNotifyConfigExcel(@Valid MailNotifyConfigPageReqVO pageReqVO,
               HttpServletResponse response) throws IOException {

+ 3 - 0
yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/vo/user/UserRespVO.java

@@ -28,6 +28,9 @@ public class UserRespVO{
     @ExcelProperty("用户昵称")
     private String nickname;
 
+    @ExcelProperty("工作卡")
+    private String cardNfc;
+
     @Schema(description = "备注", example = "我是一个用户")
     private String remark;