Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pension
Project
Project
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
mengmeng
pension
Commits
f5bb3fe9
Commit
f5bb3fe9
authored
4 years ago
by
mengmeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add enum OrderStatus
parent
3ca0a8c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
1 deletion
+40
-1
Constant.java
...ommon/src/main/java/io/hmit/common/constant/Constant.java
+40
-1
No files found.
hmit-common/src/main/java/io/hmit/common/constant/Constant.java
View file @
f5bb3fe9
...
...
@@ -178,4 +178,43 @@ public interface Constant {
return
value
;
}
}
}
\ No newline at end of file
/**
* 订单状态
*/
enum
OrderStatus
{
/**
* 未接单/已预约
*/
BOOKED
(
0
,
"未接单"
),
/**
* 已接单
*/
ORDER
(
1
,
"已接单"
),
/**
* 已完成
*/
DONE
(
2
,
"已完成"
),
/**
* 已取消
*/
CANCLE
(
3
,
"已取消"
);
private
int
status
;
private
String
message
;
OrderStatus
(
int
status
,
String
message
){
this
.
status
=
status
;
this
.
message
=
message
;
}
public
int
geStatus
(){
return
status
;
}
public
String
getMessage
()
{
return
message
;
}
}
}
This diff is collapsed.
Click to expand it.
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