Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyuan
byit-myth-job
Commits
9662a0d6
Commit
9662a0d6
authored
Mar 27, 2020
by
guominglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加配置
parent
2e83f196
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
ResponseResult.java
...o-core/src/main/java/com/byit/dto/web/ResponseResult.java
+14
-0
IndexController.java
...java/com/byit/demo/client/controller/IndexController.java
+2
-1
No files found.
byit-myth-core/myth-dto-core/src/main/java/com/byit/dto/web/ResponseResult.java
View file @
9662a0d6
...
...
@@ -87,4 +87,17 @@ public class ResponseResult<T> implements Serializable {
tResponseResult
.
setCode
(
code
);
return
tResponseResult
;
}
/**
* 判断是否成功
* @return
*/
public
boolean
isSuccess
(){
//成功
if
(
"0000000"
.
equals
(
this
.
code
)){
return
true
;
}
//失败
return
false
;
}
}
\ No newline at end of file
demo-client/byit-demo-client/src/main/java/com/byit/demo/client/controller/IndexController.java
View file @
9662a0d6
...
...
@@ -27,7 +27,8 @@ public class IndexController {
@RequestMapping
(
"/demo"
)
@ResponseBody
public
UserDTO
say
(
String
name
){
return
demoService
.
hello
(
name
);
System
.
out
.
println
(
name
);
return
null
;
}
@RequestMapping
(
"/demo1"
)
@ResponseBody
...
...
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