From c5f093e96c236753fd6bcb377188e3b10ce05c87 Mon Sep 17 00:00:00 2001 From: Administrator Date: Wed, 16 Apr 2025 15:32:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/org/hlrj/duobao_demo/entity/Recommendation.java | 4 +++- src/main/java/org/hlrj/duobao_demo/entity/SpecialTopic.java | 4 ++++ src/main/java/org/hlrj/duobao_demo/entity/VideoData.java | 2 ++ src/main/resources/mapper/RecommendationMapper.xml | 10 +++++++++- src/main/resources/mapper/SpecialTopicMapper.xml | 7 +++++++ src/main/resources/mapper/VideoDateMapper.xml | 1 + 6 files changed, 26 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/hlrj/duobao_demo/entity/Recommendation.java b/src/main/java/org/hlrj/duobao_demo/entity/Recommendation.java index f05d485..f755790 100644 --- a/src/main/java/org/hlrj/duobao_demo/entity/Recommendation.java +++ b/src/main/java/org/hlrj/duobao_demo/entity/Recommendation.java @@ -47,7 +47,7 @@ public class Recommendation implements Serializable { @ApiModelProperty(value = "点赞数") private Integer likes; - @ApiModelProperty(value = "评论数") + @ApiModelProperty(value = "观看数") private Integer comments; @ApiModelProperty(value = "分享数") @@ -56,5 +56,7 @@ public class Recommendation implements Serializable { @ApiModelProperty(value = "来源") private String source; + @ApiModelProperty(value = "头像") + private String head; } diff --git a/src/main/java/org/hlrj/duobao_demo/entity/SpecialTopic.java b/src/main/java/org/hlrj/duobao_demo/entity/SpecialTopic.java index bb5fb08..52e7caa 100644 --- a/src/main/java/org/hlrj/duobao_demo/entity/SpecialTopic.java +++ b/src/main/java/org/hlrj/duobao_demo/entity/SpecialTopic.java @@ -56,5 +56,9 @@ public class SpecialTopic implements Serializable { @ApiModelProperty(value = "点赞数") private Integer likeCount; + @ApiModelProperty(value = "俱乐部") + private String club; + @ApiModelProperty(value = "头像") + private String head; } diff --git a/src/main/java/org/hlrj/duobao_demo/entity/VideoData.java b/src/main/java/org/hlrj/duobao_demo/entity/VideoData.java index 4cfcf95..f768d21 100644 --- a/src/main/java/org/hlrj/duobao_demo/entity/VideoData.java +++ b/src/main/java/org/hlrj/duobao_demo/entity/VideoData.java @@ -43,5 +43,7 @@ public class VideoData implements Serializable { private String description;//描述 + private String head;//头像 + } diff --git a/src/main/resources/mapper/RecommendationMapper.xml b/src/main/resources/mapper/RecommendationMapper.xml index b13cf3f..e6b00da 100644 --- a/src/main/resources/mapper/RecommendationMapper.xml +++ b/src/main/resources/mapper/RecommendationMapper.xml @@ -13,6 +13,7 @@ + @@ -40,6 +41,9 @@ source=#{source}, + + head=#{head} + likes = likes + 1 where id = #{id} @@ -71,9 +75,13 @@ shares=#{shares}, - source=#{source} + source=#{source}, + + + head=#{head} + where id = #{id} diff --git a/src/main/resources/mapper/SpecialTopicMapper.xml b/src/main/resources/mapper/SpecialTopicMapper.xml index 1b2dfc5..1d48bdb 100644 --- a/src/main/resources/mapper/SpecialTopicMapper.xml +++ b/src/main/resources/mapper/SpecialTopicMapper.xml @@ -13,6 +13,7 @@ + @@ -39,6 +40,12 @@ commentCount=#{commentCount}, + + club=#{club}, + + + head=#{head}, + like_count = like_count + 1 where id = #{id} diff --git a/src/main/resources/mapper/VideoDateMapper.xml b/src/main/resources/mapper/VideoDateMapper.xml index 64dabbd..5720098 100644 --- a/src/main/resources/mapper/VideoDateMapper.xml +++ b/src/main/resources/mapper/VideoDateMapper.xml @@ -11,6 +11,7 @@ +