| | |
| | | package com.xiaopeng.account.controller; |
| | | |
| | | import com.xiaopeng.account.service.IXpAppUserService; |
| | | import com.xiaopeng.api.dto.statistics.StatisticsQueryDTO; |
| | | import com.xiaopeng.api.dto.statistics.UserStatisticsDTO; |
| | | import com.xiaopeng.common.core.domain.R; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import org.springframework.stereotype.Controller; |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @author mitao |
| | | * @since 2026-02-03 |
| | | */ |
| | | @Controller |
| | | @RequestMapping("/xp-app-user") |
| | | @RestController |
| | | @Api(tags = "小程序用户") |
| | | public class XpAppUserController { |
| | | |
| | | @Resource |
| | | private IXpAppUserService xpAppUserService; |
| | | |
| | | /** |
| | | * 获取用户统计数据(内部接口) |
| | | * |
| | | * @param query 查询参数 |
| | | * @return 用户统计数据 |
| | | */ |
| | | @ApiOperation(value = "获取用户统计数据", tags = {"内部接口"}) |
| | | @PostMapping("/inner/appUser/statistics") |
| | | public R<UserStatisticsDTO> getUserStatistics(@RequestBody StatisticsQueryDTO query) { |
| | | return R.ok(xpAppUserService.getUserStatistics(query)); |
| | | } |
| | | } |