feat: 完善sys_enum枚举管理与初始化能力

This commit is contained in:
2026-05-18 22:33:20 +08:00
parent 4a20a25282
commit 736f400119
10 changed files with 211 additions and 33 deletions

View File

@@ -34,4 +34,20 @@ class SysEnumComponentStructureTests {
assertNotNull(serviceMethod);
assertNotNull(controllerMethod);
}
@Test
void sysEnumShouldExposeSaveOrUpdateAndDeleteInterfaces() throws NoSuchMethodException {
Method saveOrUpdateMethod = SysEnumController.class.getMethod("saveOrUpdate", SysEnum.class);
Method deleteMethod = SysEnumController.class.getMethod("deleteById", Long.class);
assertNotNull(saveOrUpdateMethod);
assertNotNull(deleteMethod);
}
@Test
void sysEnumShouldProvideManualInitTestEntry() throws NoSuchMethodException {
Method initMethod = SysEnumDataInitTests.class.getMethod("initDefaultEnums");
assertNotNull(initMethod);
}
}