【新增】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

@ -14,8 +14,6 @@ public interface DictTypeConstants {
String USER_SEX = "system_user_sex"; // 用户性别
String OPERATE_TYPE = "system_operate_type"; // 操作类型
String LOGIN_TYPE = "system_login_type"; // 登录日志的类型
String LOGIN_RESULT = "system_login_result"; // 登录结果

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 数据