|
|
@@ -234,6 +234,15 @@ public class IntegralController extends AppBaseController {
|
|
|
return userIntegralLogsService.getNewcomerBenefits(Long.parseLong(getUserId()));
|
|
|
}
|
|
|
|
|
|
+ @Login
|
|
|
+ @ApiOperation("获取今日获得积分总数")
|
|
|
+ @GetMapping("/getTodayIntegralTotal")
|
|
|
+ public R getTodayIntegralTotal() {
|
|
|
+ Long userId = Long.parseLong(getUserId());
|
|
|
+ Long total = userIntegralLogsService.getTodayIntegralTotal(userId);
|
|
|
+ return R.ok().put("total", total);
|
|
|
+ }
|
|
|
+
|
|
|
@Login
|
|
|
@ApiOperation("分享健康知识获取积分")
|
|
|
@PostMapping("/shareHealth")
|