帮助中心

This commit is contained in:
2026-03-13 14:42:33 +08:00
parent 554be38052
commit 7bdbe5bf14
3 changed files with 5 additions and 4 deletions

View File

@@ -47,7 +47,8 @@ public class UserVersionController {
*/
@GetMapping("/getHelp")
public CzgResult<Map<String, String>> getHelpInfo() {
List<SysParamsDTO> systemHelps = sysParamsService.getParamsByParamType("system_help");
return CzgResult.success(systemHelps.stream().collect(Collectors.toMap(SysParamsDTO::getParamCode, SysParamsDTO::getParamValue)));
List<SysParamsDTO> systemHelps = sysParamsService.getByParamType("system_help");
Map<String, String> systemHelpMap = systemHelps.stream().collect(Collectors.toMap(SysParamsDTO::getParamCode, SysParamsDTO::getParamValue));
return CzgResult.success(systemHelpMap);
}
}