From c80ecf958c701a011ab5cd011fb83352dbeb2b9e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=A9=99=E5=AD=90?= <454313500@qq.com>
Date: Thu, 11 Jan 2024 22:06:15 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E7=AD=BE=E5=88=B0?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Services/Integral/IntegralService.cs | 21 ++++-
.../Entities/BbsUserExtraInfoEntity.cs | 1 +
.../Entities/Forum/AgreeEntity .cs | 2 +
.../Entities/Forum/ArticleEntity.cs | 3 +
.../Entities/Forum/CommentEntity.cs | 2 +
.../Entities/Forum/DiscussEntity.cs | 3 +
.../Entities/Integral/SignInEntity.cs | 7 ++
.../Managers/IntegralManager.cs | 92 ++++++++++++++++++-
.../Entities/LoginLogEntity.cs | 1 +
.../Entities/UserEntity.cs | 1 +
10 files changed, 125 insertions(+), 8 deletions(-)
diff --git a/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Integral/IntegralService.cs b/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Integral/IntegralService.cs
index 768506d2..b8c23ed2 100644
--- a/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Integral/IntegralService.cs
+++ b/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Integral/IntegralService.cs
@@ -3,18 +3,33 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using Microsoft.AspNetCore.Authorization;
using Volo.Abp.Application.Services;
+using Volo.Abp.Users;
using Yi.Framework.Bbs.Domain.Managers;
namespace Yi.Framework.Bbs.Application.Services.Integral
{
- public class IntegralService:ApplicationService
+ public class IntegralService : ApplicationService
{
private IntegralManager _integralManager;
- public IntegralService(IntegralManager integralManager)
+ private ICurrentUser _currentUser;
+ public IntegralService(IntegralManager integralManager, ICurrentUser currentUser)
{
- _integralManager= integralManager;
+ _integralManager = integralManager;
+ _currentUser = currentUser;
}
+
+ ///
+ /// 签到
+ ///
+ ///
+ [Authorize]
+ public async Task