package top.baogutang.common.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import top.baogutang.common.domain.Results;

/**
 * @author：niko
 * @desc： 心跳检测
 * @time 2023年12月5日21:56:58
 */
@Slf4j
@RestController
public class CheckServerController {

    @Value(value = "${spring.application.name}")
    private String serverName;

    @GetMapping("/checkServer")
    public Results checkServer() {
        log.info(">>>>>>>>>>check server success!,server name:{}<<<<<<<<<<", serverName);
        return Results.ok();
    }
}