Commit 2b0140a7 by 段启岩

修改删除博客时的博客找不到的提示

parent 231a22cd
......@@ -9,8 +9,8 @@ import cn.meteor.beyondclouds.core.IErrorCode;
public enum BlogErrorCode implements IErrorCode {
USERID_AUTH_ERROR(8001,"不是当前博客的拥有者"),
BLOG_NOT_FOUND(8002,"当前博客已经不存在"),
NO_VIEW_PRIVILEGES(8003,"没有查看权限")
;
NO_VIEW_PRIVILEGES(8003,"没有查看权限"),
USER_BLOG_NOT_FOUND(8004, "用户未发布过此博客");
private long code;
......
......@@ -169,7 +169,7 @@ public class BlogServiceImpl extends ServiceImpl<BlogMapper, Blog> implements IB
//1.判断当前用户是否发表过该博客
if (blog == null) {
throw new BlogServiceException(BlogErrorCode.BLOG_NOT_FOUND);
throw new BlogServiceException(BlogErrorCode.USER_BLOG_NOT_FOUND);
}
//2.删除博客评论表
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment