dingxin 6 年 前
コミット
39f519e674

+ 9
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/SocialController.java ファイルの表示

@@ -444,5 +444,14 @@ public class SocialController extends BaseController {
444 444
         return response;
445 445
     }
446 446
 
447
+    @ApiOperation(value = "查询点赞次数", notes = "查询点赞次数")
448
+    @ApiImplicitParams({@ApiImplicitParam(paramType = "path", dataType = "integer", name = "id", value = "帖子id")})
449
+    @RequestMapping(value = "/transactionLikeList/{id}", method = RequestMethod.GET)
450
+    public ResponseBean transactionLikeList(@PathVariable("id") Integer id,HttpSession session) {
451
+        UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
452
+        ResponseBean transactionLike = socialServiceI.transactionLikeList(id,userElement);
453
+        return transactionLike;
454
+    }
455
+
447 456
 
448 457
 }

+ 7
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/SocialServiceI.java ファイルの表示

@@ -187,4 +187,11 @@ public interface SocialServiceI {
187 187
 	 */
188 188
     ResponseBean addTransactionReply(String paramets, UserElement userElement);
189 189
 
190
+	/**
191
+	 * 查询表帖子的点赞次数
192
+	 * @param id
193
+	 * @param userElement
194
+	 * @return
195
+	 */
196
+	ResponseBean transactionLikeList(Integer id, UserElement userElement);
190 197
 }

+ 6
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java ファイルの表示

@@ -601,6 +601,12 @@ public class SocialServiceImpl implements SocialServiceI {
601 601
         return response;
602 602
     }
603 603
 
604
+    @Override
605
+    public ResponseBean transactionLikeList(Integer id, UserElement userElement) {
606
+        
607
+        return null;
608
+    }
609
+
604 610
 
605 611
     @Override
606 612
     public void accessTicket(Integer communityId, TpTicket tpTicket, String ticketId, Integer userId) {