优化代码规范
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package xtools.app.monitor.health.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import xtools.boot.api.model.dto.Result;
|
||||
@@ -15,6 +17,7 @@ import xtools.boot.api.model.dto.Result;
|
||||
* @version : 1.0.0
|
||||
* @date : 2026/5/12 16:23
|
||||
*/
|
||||
@Tag(name = "健康检查")
|
||||
@RestController
|
||||
public class HealthController {
|
||||
|
||||
@@ -23,6 +26,7 @@ public class HealthController {
|
||||
*
|
||||
* @return ok
|
||||
*/
|
||||
@Operation(summary = "健康检查")
|
||||
@RequestMapping("/health")
|
||||
public Result<Object> health() {
|
||||
return Result.ok();
|
||||
|
||||
Reference in New Issue
Block a user