【新增】system user 和 role 接入新操作日志

This commit is contained in:
YunaiV
2024-04-04 09:57:06 +08:00
parent 87c7b3fac2
commit f869a5718d
4 changed files with 3 additions and 22 deletions

View File

@ -79,23 +79,6 @@ public class RoleServiceImplTest extends BaseDbUnitTest {
assertPojoEquals(reqVO, newRoleDO);
}
@Test
public void testUpdateRoleStatus() {
// mock 数据
RoleDO roleDO = randomPojo(RoleDO.class, o -> o.setStatus(CommonStatusEnum.ENABLE.getStatus())
.setType(RoleTypeEnum.CUSTOM.getType()));
roleMapper.insert(roleDO);
// 准备参数
Long roleId = roleDO.getId();
// 调用
roleService.updateRoleStatus(roleId, CommonStatusEnum.DISABLE.getStatus());
// 断言
RoleDO dbRoleDO = roleMapper.selectById(roleId);
assertEquals(CommonStatusEnum.DISABLE.getStatus(), dbRoleDO.getStatus());
}
@Test
public void testUpdateRoleDataScope() {
// mock 数据