package com.tcm.training.admin.app.points.controller; import com.tcm.training.admin.app.points.service.AppPointsOverviewService; import com.tcm.training.admin.app.points.vo.AppPointsOverviewVO; import com.tcm.training.admin.common.ApiResponse; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * APP 我的积分页面接口。 */ @Validated @RestController @RequestMapping({"/api/app/points", "/api/v1/app/points"}) public class AppPointsOverviewController { private final AppPointsOverviewService appPointsOverviewService; /** * 注入 APP 我的积分页面服务。 */ public AppPointsOverviewController(AppPointsOverviewService appPointsOverviewService) { this.appPointsOverviewService = appPointsOverviewService; } /** * 获取当前登录用户的积分页面聚合数据。 */ @GetMapping("/overview") public ApiResponse overview() { return ApiResponse.ok(appPointsOverviewService.getCurrentOverview()); } }