mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-07-21 08:09:36 +08:00
dashboard-api
This commit is contained in:
parent
65ec26c545
commit
aaec8bfb82
@ -2,6 +2,8 @@ package xyz.playedu.api.constant;
|
||||
|
||||
public class SystemConstant {
|
||||
|
||||
public final static String VERSION = "v1.0-beta1";
|
||||
|
||||
public final static String ENV_PROD = "prod";
|
||||
|
||||
public final static String REDIS_PREFIX = "playedu:";
|
||||
|
@ -0,0 +1,27 @@
|
||||
package xyz.playedu.api.controller.backend;
|
||||
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import xyz.playedu.api.constant.SystemConstant;
|
||||
import xyz.playedu.api.types.JsonResponse;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
/**
|
||||
* @Author 杭州白书科技有限公司
|
||||
* @create 2023/3/7 13:55
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/backend/v1/dashboard")
|
||||
public class DashboardController {
|
||||
|
||||
@GetMapping("/index")
|
||||
public JsonResponse index() {
|
||||
HashMap<String, Object> data = new HashMap<>();
|
||||
data.put("version", SystemConstant.VERSION);
|
||||
|
||||
return JsonResponse.data(data);
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user