package com.gzzm.lobster.api;

import net.cyan.arachne.HttpMethod;
import net.cyan.arachne.annotation.Service;

import java.util.Date;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * HealthApi —— 服务健康检查 / Service health probe.
 */
@Service
public class HealthApi {

    @Service(url = "/ai/api/health", method = HttpMethod.all)
    public Map<String, Object> health() {
        Map<String, Object> out = new LinkedHashMap<>();
        out.put("status", "ok");
        out.put("service", "zm-ai-server");
        out.put("timestamp", new Date().getTime());
        return out;
    }
}
