mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-13 21:06:48 +08:00
修改类型
This commit is contained in:
@@ -75,7 +75,7 @@ public class CommentsApi extends ApiBaseController{
|
|||||||
* 只显示某个内容下的一级评论,现在只有笔记
|
* 只显示某个内容下的一级评论,现在只有笔记
|
||||||
* */
|
* */
|
||||||
@PostMapping("/list")
|
@PostMapping("/list")
|
||||||
public JsonResponse<List<Comments>> list(Integer objType,Integer objId){
|
public JsonResponse<List<Comments>> list(Integer objType,String objId){
|
||||||
if(objId==null){
|
if(objId==null){
|
||||||
return badRequest("参数异常");
|
return badRequest("参数异常");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ public interface ICommentsService {
|
|||||||
*
|
*
|
||||||
* 笔记的回复
|
* 笔记的回复
|
||||||
* */
|
* */
|
||||||
List<Comments> list(Integer objType,Integer objId);
|
List<Comments> list(Integer objType,String objId);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -290,7 +290,7 @@ public class CommentsServiceImpl implements ICommentsService{
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<Comments> list(Integer objType, Integer objId) {
|
public List<Comments> list(Integer objType, String objId) {
|
||||||
List<Comments> list = dao.findList(FieldFilters.eq("objType", objType), FieldFilters.eq("objId", objId));
|
List<Comments> list = dao.findList(FieldFilters.eq("objType", objType), FieldFilters.eq("objId", objId));
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user