修改类型

This commit is contained in:
daihh
2022-11-03 11:45:01 +08:00
parent bca1b90399
commit d10802b476
3 changed files with 3 additions and 3 deletions

View File

@@ -75,7 +75,7 @@ public class CommentsApi extends ApiBaseController{
* 只显示某个内容下的一级评论,现在只有笔记
* */
@PostMapping("/list")
public JsonResponse<List<Comments>> list(Integer objType,Integer objId){
public JsonResponse<List<Comments>> list(Integer objType,String objId){
if(objId==null){
return badRequest("参数异常");
}

View File

@@ -141,7 +141,7 @@ public interface ICommentsService {
*
* 笔记的回复
* */
List<Comments> list(Integer objType,Integer objId);
List<Comments> list(Integer objType,String objId);

View File

@@ -290,7 +290,7 @@ public class CommentsServiceImpl implements ICommentsService{
}
@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));
return list;
}