package com.rongyichuang.common.api; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.HashMap; import java.util.Map; @RestController @RequestMapping("/api/health") public class HealthController { @GetMapping public Map health() { Map response = new HashMap<>(); response.put("status", "UP"); response.put("timestamp", System.currentTimeMillis()); response.put("service", "ryc-backend"); return response; } }