GlobalStatus.java
2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
package com.trash.garbage.global;
/**
* 全局状态管理
*
* @author guzijian
*/
public class GlobalStatus {
/**
* 未注销
*/
public static final int DEL_FLAG_NO = 0;
/**
* 已注销
*/
public static final int DEL_FLAG_YES = 1;
/**
* 地址查询类型 当前地址
*/
public static final String QUERY_ADDRESS_TYPE_CURRENT = "CURRENT";
/**
* 地址查询类型 所有
*/
public static final String QUERY_ADDRESS_TYPE_ALL = "ALL";
/**
* 用户状态管理
*/
public enum GarUserStatusEnum {
/**
* 微信登录
*/
WX_LOGIN(1, "微信登录"),
/**
* 普通登录
*/
NORMAL_LOGIN(0, "普通登录"),
NORMAL_USER(0, "居民用户"),
DRIVER_USER(1, "管理负责人");
private Integer status;
private String description;
public Integer getStatus() {
return this.status;
}
public String getDescription() {
return this.description;
}
GarUserStatusEnum(Integer status, String description) {
this.status = status;
this.description = description;
}
}
/**
* 地址
*/
public enum GarAddressStatus {
NORMAL_ADDRESS(0, "地址"),
CURRENT_ADDRESS(1, "当前地址");
GarAddressStatus(Integer status, String description) {
this.status = status;
this.description = description;
}
private String description;
private Integer status;
public Integer getValue() {
return this.status;
}
public String getDescription() {
return this.description;
}
}
/**
* 订单
*/
public enum GarOrderStatus {
NEW_ORDER(0, "新订单"),
ACTIVE_ORDER(1, "处理中"),
ALL_ORDER(2, "全部订单"),
SUCCESS_ORDER(3, "已完成"),
FAIL_ORDER(9, "订单处理失败"),
CANCEL_FLAG_NO(0, "未取消订单"),
CANCEL_FLAG_YES(1, "取消订单"),
IMAGE_TYPE_CURRENT(0, "现场图片"),
IMAGE_TYPE_PUT_ON(1, "装车图片"),
IMAGE_TYPE_PUT_DOWN(2, "卸车图片"),
EVALUATE_TYPE_COMPANY(0,"对公司评价"),
EVALUATE_TYPE_USER(1,"对用户评价"),
EVALUATE_ORDER_NO(0,"待评价"),
EVALUATE_ORDER_YES(1,"已评价");
GarOrderStatus(Integer status, String description) {
this.status = status;
this.description = description;
}
private String description;
private Integer status;
public Integer getValue() {
return this.status;
}
public String getDescription() {
return this.description;
}
}
}