Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
operation-control-platform
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
王锦盛
operation-control-platform
Commits
0646754e
Commit
0646754e
authored
Mar 27, 2022
by
liukai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应用管理——编辑
parent
70099ba6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
src/main/java/com/pms/ocp/common/constants/ResponseResult.java
...ain/java/com/pms/ocp/common/constants/ResponseResult.java
+42
-0
No files found.
src/main/java/com/pms/ocp/common/constants/ResponseResult.java
0 → 100644
View file @
0646754e
package
com.pms.ocp.common.constants
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
lombok.ToString
;
@Data
@ToString
@NoArgsConstructor
public
class
ResponseResult
implements
Response
{
//操作是否成功
boolean
success
=
SUCCESS
;
//操作代码
int
code
=
SUCCESS_CODE
;
//提示信息
String
message
;
public
ResponseResult
(
Code
Code
){
this
.
success
=
Code
.
success
();
this
.
code
=
Code
.
code
();
this
.
message
=
Code
.
message
();
}
public
ResponseResult
(
boolean
success
,
int
code
,
String
msg
){
this
.
success
=
success
;
this
.
code
=
code
;
this
.
message
=
msg
;
}
public
static
ResponseResult
SUCCESS
(){
return
new
ResponseResult
(
CommonCode
.
SUCCESS
);
}
public
static
ResponseResult
FAIL
(){
return
new
ResponseResult
(
CommonCode
.
FAIL
);
}
}
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