Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-manage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
finance-oa
finance-manage
Commits
01b545e4
Commit
01b545e4
authored
Mar 16, 2021
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通用Controller添加响应返回消息
parent
c2e92006
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
ruoyi-common/src/main/java/com/ruoyi/common/core/controller/BaseController.java
...java/com/ruoyi/common/core/controller/BaseController.java
+43
-0
No files found.
ruoyi-common/src/main/java/com/ruoyi/common/core/controller/BaseController.java
View file @
01b545e4
...
@@ -84,6 +84,49 @@ public class BaseController
...
@@ -84,6 +84,49 @@ public class BaseController
return
rows
>
0
?
AjaxResult
.
success
()
:
AjaxResult
.
error
();
return
rows
>
0
?
AjaxResult
.
success
()
:
AjaxResult
.
error
();
}
}
/**
* 响应返回结果
*
* @param result 结果
* @return 操作结果
*/
protected
AjaxResult
toAjax
(
boolean
result
)
{
return
result
?
success
()
:
error
();
}
/**
* 返回成功
*/
public
AjaxResult
success
()
{
return
AjaxResult
.
success
();
}
/**
* 返回失败消息
*/
public
AjaxResult
error
()
{
return
AjaxResult
.
error
();
}
/**
* 返回成功消息
*/
public
AjaxResult
success
(
String
message
)
{
return
AjaxResult
.
success
(
message
);
}
/**
* 返回失败消息
*/
public
AjaxResult
error
(
String
message
)
{
return
AjaxResult
.
error
(
message
);
}
/**
/**
* 页面跳转
* 页面跳转
*/
*/
...
...
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