From 2d31aeecd18fc4df673efbb3e4407bcb3a0e0b3b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=A9=99=E5=AD=90?= <454313500@qq.com>
Date: Mon, 20 Mar 2023 23:43:49 +0800
Subject: [PATCH] =?UTF-8?q?feat:=E5=AE=8C=E6=88=90=E7=82=B9=E8=B5=9E?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Yi.BBS.Vue3/src/apis/agreeApi.js | 11 +++
Yi.BBS.Vue3/src/components/DisscussCard.vue | 29 ++++++-
Yi.BBS.Vue3/src/views/Discuss.vue | 4 +-
Yi.BBS.Vue3/src/views/Index.vue | 2 +-
.../module/Yi.Framework.Template/Program.cs | 10 ++-
.../Exhibition/Dtos/Argee/ArgeeDto.cs | 30 +++++++
.../ApplicationSwaggerDoc.xml | 11 +++
.../Exhibition/AgreeService.cs | 82 ++++++++++++++++++
.../BBS/Yi.BBS.Domain/DomainSwaggerDoc.xml | 10 +++
.../Exhibition/Entities/AgreeEntity .cs | 39 +++++++++
.../project/BBS/Yi.BBS.Web/yi-sqlsugar-dev.db | Bin 278528 -> 286720 bytes
.../ApplicationSwaggerDoc.xml | 11 +++
.../bbs/Yi.BBS.Domain/DomainSwaggerDoc.xml | 10 +++
.../project/bbs/Yi.BBS.Web/yi-sqlsugar-dev.db | Bin 278528 -> 286720 bytes
14 files changed, 238 insertions(+), 11 deletions(-)
create mode 100644 Yi.BBS.Vue3/src/apis/agreeApi.js
create mode 100644 Yi.Framework.Net6/src/project/BBS/Yi.BBS.Application.Contracts/Exhibition/Dtos/Argee/ArgeeDto.cs
create mode 100644 Yi.Framework.Net6/src/project/BBS/Yi.BBS.Application/Exhibition/AgreeService.cs
create mode 100644 Yi.Framework.Net6/src/project/BBS/Yi.BBS.Domain/Exhibition/Entities/AgreeEntity .cs
diff --git a/Yi.BBS.Vue3/src/apis/agreeApi.js b/Yi.BBS.Vue3/src/apis/agreeApi.js
new file mode 100644
index 00000000..864a8957
--- /dev/null
+++ b/Yi.BBS.Vue3/src/apis/agreeApi.js
@@ -0,0 +1,11 @@
+import myaxios from '@/utils/request'
+export function operate(discussId){
+ if(discussId==undefined)
+ {
+ return;
+ }
+ return myaxios({
+ url: `/agree/operate/${discussId}`,
+ method: 'post'
+ })
+};
\ No newline at end of file
diff --git a/Yi.BBS.Vue3/src/components/DisscussCard.vue b/Yi.BBS.Vue3/src/components/DisscussCard.vue
index 6feb2c4f..a031b86d 100644
--- a/Yi.BBS.Vue3/src/components/DisscussCard.vue
+++ b/Yi.BBS.Vue3/src/components/DisscussCard.vue
@@ -19,8 +19,8 @@
-
- 点赞
+
+ 点赞:{{ agreeNum??0 }}
收藏
@@ -34,17 +34,38 @@