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 @@
+