|
@@ -0,0 +1,38 @@
|
|
|
+package com.citu.module.menduner.system.controller.app.common.system;
|
|
|
+
|
|
|
+import com.citu.framework.common.pojo.CommonResult;
|
|
|
+import io.swagger.v3.oas.annotations.Operation;
|
|
|
+import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
+import org.springframework.cloud.context.config.annotation.RefreshScope;
|
|
|
+import org.springframework.validation.annotation.Validated;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import javax.annotation.security.PermitAll;
|
|
|
+
|
|
|
+import static com.citu.framework.common.pojo.CommonResult.success;
|
|
|
+
|
|
|
+@Tag(name = "公共 - 系统")
|
|
|
+@RestController
|
|
|
+@RequestMapping("/menduner/system")
|
|
|
+@Validated
|
|
|
+@Slf4j
|
|
|
+@RefreshScope
|
|
|
+public class SystemController {
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 版本号
|
|
|
+ */
|
|
|
+ @Value("${citu.version:v00.01.01.1212}")
|
|
|
+ private String version;
|
|
|
+
|
|
|
+ @GetMapping("/get/version")
|
|
|
+ @Operation(summary = "获取系统版本号")
|
|
|
+ @PermitAll
|
|
|
+ public CommonResult<String> getVersion() {
|
|
|
+ return success(version);
|
|
|
+ }
|
|
|
+}
|