Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beyond-clouds
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
段启岩
beyond-clouds
Commits
2b0140a7
Commit
2b0140a7
authored
Feb 04, 2020
by
段启岩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改删除博客时的博客找不到的提示
parent
231a22cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/main/java/cn/meteor/beyondclouds/modules/blog/enums/BlogErrorCode.java
+2
-2
src/main/java/cn/meteor/beyondclouds/modules/blog/service/impl/BlogServiceImpl.java
+1
-1
No files found.
src/main/java/cn/meteor/beyondclouds/modules/blog/enums/BlogErrorCode.java
View file @
2b0140a7
...
...
@@ -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
;
...
...
src/main/java/cn/meteor/beyondclouds/modules/blog/service/impl/BlogServiceImpl.java
View file @
2b0140a7
...
...
@@ -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.删除博客评论表
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment