feat: add point history

This commit is contained in:
Tim
2025-08-21 11:04:22 +08:00
parent cfce4d7d1d
commit 79fe8b5997
12 changed files with 384 additions and 62 deletions

View File

@@ -45,7 +45,7 @@ public class PostController {
draftService.deleteDraft(auth.getName());
PostDetailDto dto = postMapper.toDetailDto(post, auth.getName());
dto.setReward(levelService.awardForPost(auth.getName()));
dto.setPointReward(pointService.awardForPost(auth.getName()));
dto.setPointReward(pointService.awardForPost(auth.getName(), post.getId()));
return ResponseEntity.ok(dto);
}