⚡ 禁用 demo api.
This commit is contained in:
@@ -48,6 +48,7 @@ public class SystemRoleController {
|
||||
@Resource
|
||||
private SystemRoleMenuService systemRoleMenuService;
|
||||
|
||||
@DemoDisableApi
|
||||
@OperatorLog(SystemRoleOperatorType.CREATE)
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建角色")
|
||||
@@ -56,6 +57,7 @@ public class SystemRoleController {
|
||||
return systemRoleService.createSystemRole(request);
|
||||
}
|
||||
|
||||
@DemoDisableApi
|
||||
@OperatorLog(SystemRoleOperatorType.UPDATE)
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "通过 id 更新角色")
|
||||
@@ -116,6 +118,7 @@ public class SystemRoleController {
|
||||
return systemRoleService.deleteSystemRoleById(id);
|
||||
}
|
||||
|
||||
@DemoDisableApi
|
||||
@OperatorLog(SystemRoleOperatorType.GRANT_MENU)
|
||||
@PutMapping("/grant-menu")
|
||||
@Operation(summary = "分配角色菜单")
|
||||
|
||||
@@ -55,6 +55,7 @@ public class SystemUserController {
|
||||
@Resource
|
||||
private OperatorLogService operatorLogService;
|
||||
|
||||
@DemoDisableApi
|
||||
@OperatorLog(SystemUserOperatorType.CREATE)
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建用户")
|
||||
@@ -63,6 +64,7 @@ public class SystemUserController {
|
||||
return systemUserService.createSystemUser(request);
|
||||
}
|
||||
|
||||
@DemoDisableApi
|
||||
@OperatorLog(SystemUserOperatorType.UPDATE)
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "通过 id 更新用户")
|
||||
@@ -82,6 +84,7 @@ public class SystemUserController {
|
||||
return systemUserService.updateUserStatus(request);
|
||||
}
|
||||
|
||||
@DemoDisableApi
|
||||
@OperatorLog(SystemUserOperatorType.GRANT_ROLE)
|
||||
@PutMapping("/grant-role")
|
||||
@Operation(summary = "分配用户角色")
|
||||
|
||||
@@ -45,12 +45,6 @@ public class TagRelServiceImpl implements TagRelService {
|
||||
|
||||
@Override
|
||||
public void addTagRel(String type, Long relId, List<Long> tagIdList) {
|
||||
// 删除引用
|
||||
TagRelQueryRequest deleteRequest = new TagRelQueryRequest();
|
||||
deleteRequest.setTagType(type);
|
||||
deleteRequest.setRelId(relId);
|
||||
LambdaQueryWrapper<TagRelDO> deleteWrapper = this.buildQueryWrapper(deleteRequest);
|
||||
tagRelDAO.delete(deleteWrapper);
|
||||
// 查询 tag
|
||||
List<TagDO> tagList = tagDAO.selectBatchIds(tagIdList);
|
||||
// 插入引用
|
||||
@@ -63,9 +57,6 @@ public class TagRelServiceImpl implements TagRelService {
|
||||
.build())
|
||||
.collect(Collectors.toList());
|
||||
tagRelDAO.insertBatch(tagRelList);
|
||||
// 设置缓存
|
||||
String cacheKey = TagCacheKeyDefine.TAG_REL.format(type, relId);
|
||||
RedisStrings.setJson(cacheKey, TagCacheKeyDefine.TAG_REL, TagRelConvert.MAPPER.toCacheList(tagRelList));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user