修复会员总获得积分api

This commit is contained in:
pikachu
2021-08-10 19:21:11 +08:00
parent 2f48def734
commit 0a17fa9f53
3 changed files with 49 additions and 3 deletions

View File

@@ -15,6 +15,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -46,4 +47,11 @@ public class PointsHistoryBuyerController {
public ResultMessage<MemberPointsHistoryVO> getMemberPointsHistoryVO() {
return ResultUtil.data(memberPointsHistoryService.getMemberPointsHistoryVO(UserContext.getCurrentUser().getId()));
}
@ApiOperation(value = "修复会员总获得积分数据")
@PostMapping(value = "/repairPointData")
public ResultMessage<String> repairPointData() {
return ResultUtil.data(memberPointsHistoryService.repairPointData());
}
}