|
@@ -1,5 +1,6 @@
|
|
|
package com.citu.module.menduner.system.controller.app.common.system;
|
|
|
|
|
|
+import cn.hutool.core.map.MapUtil;
|
|
|
import com.citu.framework.common.pojo.CommonResult;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
@@ -13,6 +14,8 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import com.citu.framework.security.core.annotations.PreAuthenticated;
|
|
|
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
import static com.citu.framework.common.pojo.CommonResult.success;
|
|
|
|
|
|
@Tag(name = "公共 - 系统")
|
|
@@ -32,7 +35,10 @@ public class SystemController {
|
|
|
@GetMapping("/get/version")
|
|
|
@Operation(summary = "获取系统版本号")
|
|
|
@PreAuthenticated
|
|
|
- public CommonResult<String> getVersion() {
|
|
|
- return success(version);
|
|
|
+ public CommonResult<Map<Object,Object>> getVersion() {
|
|
|
+ return success(MapUtil.builder()
|
|
|
+ .put("version", version)
|
|
|
+ .put("time", System.currentTimeMillis())
|
|
|
+ .build());
|
|
|
}
|
|
|
}
|