package com.test.musichouduan.controller; 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("/basic-test") public class BasicTestController { /** * 基本测试接口 */ @GetMapping public Map test() { Map result = new HashMap<>(); result.put("code", 200); result.put("message", "基本测试成功"); result.put("data", "Hello, Basic Test!"); result.put("time", System.currentTimeMillis()); return result; } }