|
|
|
@ -31,7 +31,7 @@ public class UserPointsController {
|
|
|
|
|
* @return 用户积分详情
|
|
|
|
|
*/
|
|
|
|
|
@Operation(summary = "用户积分详情")
|
|
|
|
|
@GetMapping("/pointsDetail")
|
|
|
|
|
@PostMapping("/pointsDetail")
|
|
|
|
|
@tokenValid
|
|
|
|
|
public Result<UserPointsVo> pointsDetail(@RequestHeader String token){
|
|
|
|
|
String openid = new JwtUtil().parseOpenid(token);
|
|
|
|
@ -44,9 +44,9 @@ public class UserPointsController {
|
|
|
|
|
* @return 用户积分记录 list Vo
|
|
|
|
|
*/
|
|
|
|
|
@Operation(summary = "用户积分记录")
|
|
|
|
|
@GetMapping("/list")
|
|
|
|
|
@PostMapping("/list")
|
|
|
|
|
@tokenValid
|
|
|
|
|
public ResultPageInfo<UserPointsRecordListVo> list(@Validated UserPointsRecordListDTO userPointsRecordListDTO,@RequestHeader String token){
|
|
|
|
|
public ResultPageInfo<UserPointsRecordListVo> list(@Validated @RequestBody UserPointsRecordListDTO userPointsRecordListDTO,@RequestHeader String token){
|
|
|
|
|
String openid = new JwtUtil().parseOpenid(token);
|
|
|
|
|
return ResultPageInfo.success(userPointsRecordsService.list(userPointsRecordListDTO,openid),"请求成功");
|
|
|
|
|
}
|
|
|
|
|