From 068fc7f2e81178e55fa191a13709af64b1a163f6 Mon Sep 17 00:00:00 2001
From: EricsHu <hrr145632>
Date: 星期一, 05 十二月 2022 14:27:43 +0800
Subject: [PATCH] 处理编码
---
src/main/java/com/qxueyou/scc/operation/topic/action/StuTopicController.java | 208 ++++++++++++++++++++++++++--------------------------
1 files changed, 104 insertions(+), 104 deletions(-)
diff --git a/src/main/java/com/qxueyou/scc/operation/topic/action/StuTopicController.java b/src/main/java/com/qxueyou/scc/operation/topic/action/StuTopicController.java
index 81680de..3c6470d 100644
--- a/src/main/java/com/qxueyou/scc/operation/topic/action/StuTopicController.java
+++ b/src/main/java/com/qxueyou/scc/operation/topic/action/StuTopicController.java
@@ -19,12 +19,12 @@
import io.swagger.annotations.ApiOperation;
/**
- * 学习端 话题前端控制器
+ * 瀛︿範绔� 璇濋鍓嶇鎺у埗鍣�
*
* @author chenjunliang
*
*/
-@Api(tags="讨论接口")
+@Api(tags="璁ㄨ鎺ュ彛")
@RestController
@CrossOrigin(origins="*",maxAge=3600)
@RequestMapping(value = "/stu/topic")
@@ -37,23 +37,23 @@
IUserService userService;
/**
- * 获取热门话题列表
+ * 鑾峰彇鐑棬璇濋鍒楄〃
*
* @param classId
- * 班级id
+ * 鐝骇id
* @param keyword
- * 索搜关键字
+ * 绱㈡悳鍏抽敭瀛�
* @param limit
- * 每页显示几条
+ * 姣忛〉鏄剧ず鍑犳潯
* @param pageNum
- * 页码
- * @return status (0,为开始。1,讨论中。2,已结束。)
+ * 椤电爜
+ * @return status (0,涓哄紑濮嬨��1,璁ㄨ涓��2,宸茬粨鏉熴��)
*/
- @ApiOperation(value = "获取热门话题列表", notes = "")
+ @ApiOperation(value = "鑾峰彇鐑棬璇濋鍒楄〃", notes = "")
@ApiImplicitParams({
- @ApiImplicitParam(name = "classId", value = "班级id", required = true, paramType="query", dataType = "String"),
- @ApiImplicitParam(name = "type", value = "1热门,2最近", required = true, paramType="query", dataType = "int"),
- @ApiImplicitParam(name = "scope", value = "1班级,2机构", required = true, paramType="query", dataType = "int"),
+ @ApiImplicitParam(name = "classId", value = "鐝骇id", required = true, paramType="query", dataType = "String"),
+ @ApiImplicitParam(name = "type", value = "1鐑棬锛�2鏈�杩�", required = true, paramType="query", dataType = "int"),
+ @ApiImplicitParam(name = "scope", value = "1鐝骇锛�2鏈烘瀯", required = true, paramType="query", dataType = "int"),
})
@GetMapping(value = "getHotTopicLst")
public Result getClassTopicLst(String classId, @RequestParam(defaultValue="")String keyword, Pager pager, int type, int scope) {
@@ -62,38 +62,38 @@
}
/**
- * 我的回复
+ * 鎴戠殑鍥炲
*
* @param pageSize
- * 每页显示多少条
+ * 姣忛〉鏄剧ず澶氬皯鏉�
* @param currentPage
- * 当前页码
+ * 褰撳墠椤电爜
*/
- @ApiOperation(value = "app端接口-我的回复", notes = "")
+ @ApiOperation(value = "app绔帴鍙�-鎴戠殑鍥炲", notes = "")
@GetMapping(value = "/app/myComment")
public Result appMyComment(Pager pager) {
return topicService.appMyComment(ClientUtils.getUserId(), pager);
}
/**
- * app端接口-回复我的获取列表
+ * app绔帴鍙�-鍥炲鎴戠殑鑾峰彇鍒楄〃
*
* @param pager
* @return
*/
- @ApiOperation(value = "app端接口-回复我的获取列表", notes = "")
+ @ApiOperation(value = "app绔帴鍙�-鍥炲鎴戠殑鑾峰彇鍒楄〃", notes = "")
@GetMapping(value = "/app/commentToMe")
public Result commentToMe(Pager pager) {
return topicService.commentToMe(ClientUtils.getUserId(), pager);
}
/**
- * app端接口-我的点赞
+ * app绔帴鍙�-鎴戠殑鐐硅禐
*
* @param pager
* @return
*/
- @ApiOperation(value = "app端接口-我的点赞", notes = "")
+ @ApiOperation(value = "app绔帴鍙�-鎴戠殑鐐硅禐", notes = "")
@GetMapping(value = "/app/myPraise")
public Result appMyPraise(Pager pager) {
@@ -101,33 +101,33 @@
}
/**
- * app端接口-给我赞的
+ * app绔帴鍙�-缁欐垜璧炵殑
*
* @param pager
* @return
*/
- @ApiOperation(value = "app端接口-给我赞的", notes = "")
+ @ApiOperation(value = "app绔帴鍙�-缁欐垜璧炵殑", notes = "")
@GetMapping(value = "/app/praiseToMe")
public Result praiseToMe(Pager pager) {
return topicService.praiseToMe(ClientUtils.getUserId(), pager);
}
/**
- * 获取话题列表
+ * 鑾峰彇璇濋鍒楄〃
*
* @param classId
- * 班级id
+ * 鐝骇id
* @param keyword
- * 索搜关键字
+ * 绱㈡悳鍏抽敭瀛�
* @param limit
- * 每页显示几条
+ * 姣忛〉鏄剧ず鍑犳潯
* @param pageNum
- * 页码
- * @return status (0,为开始。1,讨论中。2,已结束。)
+ * 椤电爜
+ * @return status (0,涓哄紑濮嬨��1,璁ㄨ涓��2,宸茬粨鏉熴��)
*/
- @ApiOperation(value = "获取话题列表", notes = "")
+ @ApiOperation(value = "鑾峰彇璇濋鍒楄〃", notes = "")
@ApiImplicitParams({
- @ApiImplicitParam(name = "classId", value = "班级id", required = true, paramType="query", dataType = "String")
+ @ApiImplicitParam(name = "classId", value = "鐝骇id", required = true, paramType="query", dataType = "String")
})
@GetMapping(value = "getTopicLst")
public Result getTopicLst(String classId, String keyword, Integer limit, Integer pageNum) {
@@ -141,27 +141,27 @@
}
/**
- * 学习端 发布/更新话题
+ * 瀛︿範绔� 鍙戝竷/鏇存柊璇濋
*
* @param topicName
- * 话题名称
+ * 璇濋鍚嶇О
* @param topicDesc
- * 话题描述
+ * 璇濋鎻忚堪
* @param starTime
- * 开始时间
+ * 寮�濮嬫椂闂�
* @param endTime
- * 结束时间
+ * 缁撴潫鏃堕棿
* @param classId
- * 班级id(可以多个)
+ * 鐝骇id(鍙互澶氫釜)
*/
- @ApiOperation(value = "发布/更新话题", notes = "")
+ @ApiOperation(value = "鍙戝竷/鏇存柊璇濋", notes = "")
@ApiImplicitParams({
- @ApiImplicitParam(name = "classId", value = "班级ids", required = true, paramType="query", dataType = "String"),
- @ApiImplicitParam(name = "topicName", value = "讨论名称", required = true, paramType="query", dataType = "String"),
- @ApiImplicitParam(name = "topicDesc", value = "内容", required = true, paramType="query", dataType = "String"),
- @ApiImplicitParam(name = "startTime", value = "开始时间", required = true, paramType="query", dataType = "String"),
- @ApiImplicitParam(name = "endTime", value = "结束时间", required = true, paramType="query", dataType = "String"),
- @ApiImplicitParam(name = "topicId", value = "讨论id", required = true, paramType="query", dataType = "String"),
+ @ApiImplicitParam(name = "classId", value = "鐝骇ids", required = true, paramType="query", dataType = "String"),
+ @ApiImplicitParam(name = "topicName", value = "璁ㄨ鍚嶇О", required = true, paramType="query", dataType = "String"),
+ @ApiImplicitParam(name = "topicDesc", value = "鍐呭", required = true, paramType="query", dataType = "String"),
+ @ApiImplicitParam(name = "startTime", value = "寮�濮嬫椂闂�", required = true, paramType="query", dataType = "String"),
+ @ApiImplicitParam(name = "endTime", value = "缁撴潫鏃堕棿", required = true, paramType="query", dataType = "String"),
+ @ApiImplicitParam(name = "topicId", value = "璁ㄨid", required = true, paramType="query", dataType = "String"),
})
@PostMapping(value = "addOrUpdateTopic")
public Result addOrUpdateTopic(@RequestBody TopicInfo topicInfo) {
@@ -172,14 +172,14 @@
}
/**
- * 学习端讨论区
+ * 瀛︿範绔璁哄尯
*
* @param keyword
- * 搜索关键字
+ * 鎼滅储鍏抽敭瀛�
* @param limit
- * 每页显示几条
+ * 姣忛〉鏄剧ず鍑犳潯
* @param pageNum
- * 页码
+ * 椤电爜
*/
@GetMapping(value = "lstCommonTopic")
public Result lstCommonTopic(String keyword, Integer limit, Integer pageNum, String classId) {
@@ -187,16 +187,16 @@
}
/**
- * 学习端 讨论统计
+ * 瀛︿範绔� 璁ㄨ缁熻
*/
- @ApiOperation(value = "学习端 讨论统计", notes = "")
+ @ApiOperation(value = "瀛︿範绔� 璁ㄨ缁熻", notes = "")
@GetMapping(value = "commentDetail")
public Result commentDetail() {
return topicService.commentDetail(ClientUtils.getUserId());
}
/**
- * 班级论坛
+ * 鐝骇璁哄潧
*/
@GetMapping(value = "getClassForumLst")
public Result getClassForum() {
@@ -205,7 +205,7 @@
}
/**
- * 学习端获取班级论坛详情
+ * 瀛︿範绔幏鍙栫彮绾ц鍧涜鎯�
*/
@GetMapping(value = "getClassForumDetail")
public Result getClassForumDetail(String classId) {
@@ -214,14 +214,14 @@
}
/**
- * 获取话题详情
+ * 鑾峰彇璇濋璇︽儏
*
* @param topicId
- * 话题id
+ * 璇濋id
*/
- @ApiOperation(value = "获取话题详情", notes = "")
+ @ApiOperation(value = "鑾峰彇璇濋璇︽儏", notes = "")
@ApiImplicitParams({
- @ApiImplicitParam(name = "topicId", value = "讨论id", required = true, paramType="query", dataType = "String"),
+ @ApiImplicitParam(name = "topicId", value = "璁ㄨid", required = true, paramType="query", dataType = "String"),
})
@GetMapping(value = "getTopicDetails")
public Result getTopicDetails(String topicId) {
@@ -229,18 +229,18 @@
}
/**
- * 获取详情 获取评论列表
+ * 鑾峰彇璇︽儏 鑾峰彇璇勮鍒楄〃
*
* @param topicId
- * 话题id
+ * 璇濋id
* @param limit
- * 每页显示几条
+ * 姣忛〉鏄剧ず鍑犳潯
* @param pageNum
- * 页码
+ * 椤电爜
*/
- @ApiOperation(value = "获取详情 获取评论列表", notes = "")
+ @ApiOperation(value = "鑾峰彇璇︽儏 鑾峰彇璇勮鍒楄〃", notes = "")
@ApiImplicitParams({
- @ApiImplicitParam(name = "topicId", value = "讨论id", required = false, paramType="query", dataType = "String"),
+ @ApiImplicitParam(name = "topicId", value = "璁ㄨid", required = false, paramType="query", dataType = "String"),
})
@GetMapping(value = "getCommentLst")
public Result getCommentLst(String topicId, Integer pageSize, Integer pageNum) {
@@ -249,14 +249,14 @@
}
/**
- * 我发布的话题
+ * 鎴戝彂甯冪殑璇濋
*
* @param pageSize
- * 每页显示多少条
+ * 姣忛〉鏄剧ず澶氬皯鏉�
* @param pageNum
- * 当前页码
+ * 褰撳墠椤电爜
*/
- @ApiOperation(value = "我发布的话题", notes = "")
+ @ApiOperation(value = "鎴戝彂甯冪殑璇濋", notes = "")
@GetMapping(value = "myTopic")
public Result myTopic(Integer pageSize, Integer pageNum) {
@@ -264,14 +264,14 @@
}
/**
- * 我的回复
+ * 鎴戠殑鍥炲
*
* @param pageSize
- * 每页显示多少条
+ * 姣忛〉鏄剧ず澶氬皯鏉�
* @param currentPage
- * 当前页码
+ * 褰撳墠椤电爜
*/
- @ApiOperation(value = "我的回复", notes = "")
+ @ApiOperation(value = "鎴戠殑鍥炲", notes = "")
@GetMapping(value = "myComment")
public Result myComment(Integer pageSize, Integer pageNum) {
@@ -279,14 +279,14 @@
}
/**
- * 我的回复
+ * 鎴戠殑鍥炲
*
* @param pageSize
- * 每页显示多少条
+ * 姣忛〉鏄剧ず澶氬皯鏉�
* @param currentPage
- * 当前页码
+ * 褰撳墠椤电爜
*/
- @ApiOperation(value = "我的点赞", notes = "")
+ @ApiOperation(value = "鎴戠殑鐐硅禐", notes = "")
@GetMapping(value = "myPraise")
public Result myPraise(Integer pageSize, Integer pageNum) {
@@ -294,11 +294,11 @@
}
/**
- * 删除我的回复
+ * 鍒犻櫎鎴戠殑鍥炲
*/
- @ApiOperation(value = "删除我的回复", notes = "")
+ @ApiOperation(value = "鍒犻櫎鎴戠殑鍥炲", notes = "")
@ApiImplicitParams({
- @ApiImplicitParam(name = "commentId", value = "评论id", required = false, paramType="query", dataType = "String"),
+ @ApiImplicitParam(name = "commentId", value = "璇勮id", required = false, paramType="query", dataType = "String"),
})
@GetMapping(value = "deleteMycomment")
public Result deleteMycomment(String commentId) {
@@ -306,50 +306,50 @@
}
/**
- * 回复我的获取列表
+ * 鍥炲鎴戠殑鑾峰彇鍒楄〃
*
* @param keyword
- * 话题id
+ * 璇濋id
* @param limit
- * 每页显示几条
+ * 姣忛〉鏄剧ず鍑犳潯
* @param pageNum
- * 页码
+ * 椤电爜
*
*/
- @ApiOperation(value = "回复我的获取列表", notes = "")
+ @ApiOperation(value = "鍥炲鎴戠殑鑾峰彇鍒楄〃", notes = "")
@GetMapping(value = "getCommentLstToMe")
public Result gerCommentLstToMe(Integer pageSize, Integer pageNum) {
return topicService.getCommentLstToMe(pageSize, pageNum);
}
/**
- * 获取我的点赞
+ * 鑾峰彇鎴戠殑鐐硅禐
*/
- @ApiOperation(value = "获取我的点赞", notes = "")
+ @ApiOperation(value = "鑾峰彇鎴戠殑鐐硅禐", notes = "")
@GetMapping(value = "getPraiseLst")
public Result getPraiseLst(Integer pageSize, Integer pageNum) {
return topicService.getPraiseLst(pageSize, pageNum);
}
/**
- * 话题回复评论
+ * 璇濋鍥炲璇勮
*
* @param content
- * 评论内容
+ * 璇勮鍐呭
* @param topicId
- * 话题id
- * @param 回复评论的id
+ * 璇濋id
+ * @param 鍥炲璇勮鐨刬d
*/
/**
- * 获取我的点赞
+ * 鑾峰彇鎴戠殑鐐硅禐
*/
- @ApiOperation(value = "话题回复评论", notes = "")
+ @ApiOperation(value = "璇濋鍥炲璇勮", notes = "")
@ApiImplicitParams({
- @ApiImplicitParam(name = "commentedId", value = "被评论的id", required = false, paramType="query", dataType = "String"),
- @ApiImplicitParam(name = "content", value = "回复内容", required = false, paramType="query", dataType = "String"),
- @ApiImplicitParam(name = "commentObjectId", value = "评论话题id", required = false, paramType="query", dataType = "String"),
- @ApiImplicitParam(name = "commentParentId", value = "父评论id", required = true, paramType="query", dataType = "String"),
- @ApiImplicitParam(name = "commentedName", value = "被评论者", required = false, paramType="query", dataType = "String"),
+ @ApiImplicitParam(name = "commentedId", value = "琚瘎璁虹殑id", required = false, paramType="query", dataType = "String"),
+ @ApiImplicitParam(name = "content", value = "鍥炲鍐呭", required = false, paramType="query", dataType = "String"),
+ @ApiImplicitParam(name = "commentObjectId", value = "璇勮璇濋id", required = false, paramType="query", dataType = "String"),
+ @ApiImplicitParam(name = "commentParentId", value = "鐖惰瘎璁篿d", required = true, paramType="query", dataType = "String"),
+ @ApiImplicitParam(name = "commentedName", value = "琚瘎璁鸿��", required = false, paramType="query", dataType = "String"),
})
@GetMapping(value = "addComment")
public Result addComment(String content, String commentObjectId, String commentParentId, String commentedId,
@@ -358,17 +358,17 @@
}
/**
- * 点赞话题/评论
+ * 鐐硅禐璇濋/璇勮
*
* @param commentId
- * 评论id
+ * 璇勮id
* @param topicId
- * 话题id
+ * 璇濋id
*/
- @ApiOperation(value = "点赞话题/评论", notes = "")
+ @ApiOperation(value = "鐐硅禐璇濋/璇勮", notes = "")
@ApiImplicitParams({
- @ApiImplicitParam(name = "commentId", value = "点赞评论id", required = false, paramType="query", dataType = "String"),
- @ApiImplicitParam(name = "commentObjectId", value = "点赞话题id", required = false, paramType="query", dataType = "String"),
+ @ApiImplicitParam(name = "commentId", value = "鐐硅禐璇勮id", required = false, paramType="query", dataType = "String"),
+ @ApiImplicitParam(name = "commentObjectId", value = "鐐硅禐璇濋id", required = false, paramType="query", dataType = "String"),
})
@GetMapping(value = "addPraise")
public Result addPraise(String commentId, String commentObjectId) {
@@ -376,14 +376,14 @@
}
/**
- * 删除话题
+ * 鍒犻櫎璇濋
*
* @param topicId
- * 话题id
+ * 璇濋id
*/
- @ApiOperation(value = "删除讨论", notes = "")
+ @ApiOperation(value = "鍒犻櫎璁ㄨ", notes = "")
@ApiImplicitParams({
- @ApiImplicitParam(name = "topicId", value = "讨论id", required = false, paramType="query", dataType = "String"),
+ @ApiImplicitParam(name = "topicId", value = "璁ㄨid", required = false, paramType="query", dataType = "String"),
})
@PostMapping(value = "deleteTopic")
public Result deleteTopic(String topicId) {
--
Gitblit v1.8.0