release: 用户积分日志列表 拆分APP和PC

release-2024-08-08
huangyw 4 months ago
parent e52e2ddd0d
commit 2ffef0516f

@ -190,10 +190,10 @@ public class PointController {
// return Result.success(); // return Result.success();
// } // }
@ApiOperation(value = "2.3.用户积分日志列表(APP&PC)", notes = "用户积分日志列表") @ApiOperation(value = "2.2.用户积分日志列表APP", notes = "用户积分日志列表")
@PostMapping("/log/list/{page}/{size}") @PostMapping("/admin/log/list/{page}/{size}")
@GlobalInterceptor(checkAppUserLogin = true) @GlobalInterceptor(checkAdminLogin = true)
public Result<PageResult<UserPointLogVO>> getUserPointLogList( public Result<PageResult<UserPointLogVO>> getUserPointLogListForAdmin(
@ApiParam(value = "Header中的token信息", required = true) @RequestHeader("Authorization") String token, @ApiParam(value = "Header中的token信息", required = true) @RequestHeader("Authorization") String token,
@ApiParam(value = "查询对象") @RequestBody UserPointLogSearchDto userPointLogSearchDto, @ApiParam(value = "查询对象") @RequestBody UserPointLogSearchDto userPointLogSearchDto,
@ApiParam(value = "页码", required = true) @PathVariable Integer page, @ApiParam(value = "页码", required = true) @PathVariable Integer page,
@ -202,6 +202,18 @@ public class PointController {
userPointLogService.getUserPointLogList(token, userPointLogSearchDto, page, size)); userPointLogService.getUserPointLogList(token, userPointLogSearchDto, page, size));
} }
@ApiOperation(value = "2.3.用户积分日志列表PC", notes = "用户积分日志列表")
@PostMapping("/app/log/list/{page}/{size}")
@GlobalInterceptor(checkAppUserLogin = true)
public Result<PageResult<UserPointLogVO>> getUserPointLogListForApp(
@ApiParam(value = "Header中的token信息", required = true) @RequestHeader("Authorization") String token,
@ApiParam(value = "查询对象") @RequestBody UserPointLogSearchDto userPointLogSearchDto,
@ApiParam(value = "页码", required = true) @PathVariable Integer page,
@ApiParam(value = "每页条数", required = true) @PathVariable Integer size) {
return Result.success(
userPointLogService.getUserPointLogList(token, userPointLogSearchDto, page, size));
}
@ApiOperation(value = "2.4.每日签到(APP)", notes = "仅限app用户调用") @ApiOperation(value = "2.4.每日签到(APP)", notes = "仅限app用户调用")
@PostMapping("/log/earn/sign") @PostMapping("/log/earn/sign")
@GlobalInterceptor(checkAppUserLogin = true) @GlobalInterceptor(checkAppUserLogin = true)

Loading…
Cancel
Save