Constants.java
1.97 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
package com.xkl;
/**
* Created by win7 on 2016/12/25.
*/
public interface Constants {
/**
* 服务地址
*/
// String URL_PREFIX = "http://127.0.0.1:8090";
// String URL_PREFIX = "https://www.hanhezy.com:8090/";
String URL_PREFIX = "https://api.xkljk.com/";
/**
* 测试用 用户名、密码、openid、openidtype
*/
String USR_ACC = "user1";
String USR_PWD = "pass1";
String USR_OPENID = "abcdefghijklmnopqrstuvwxyz123456";
String USR_OPENID_TYPE = "0";
/**
* 只有区域管理员、区域操作员才能使用接口访问。
*/
// admin account
public static final String ADMIN_ACCOUNT = "user1";
// admin password
public static final String ADMIN_PWD = "pass1";
/**
* 密钥
*/
// 加密密钥
String KEY = "weixin";
// 密钥ID
String KEY_ID = "1";
/**
* 性别
*/
String MALE = "0";
String FEMALE = "1";
/**
* return code
*/
int CODE_SUCC = 100;
int OPENID_BIND_SUCCESS = 2001; //OPENID绑定成功
int OPENID_UNBIND_SUCESS = 2002;//OPENID解除绑定成功
int USER_LOGOUT = 1001;//退出登录成功
int USER_REGISTER = 1000;//用户注册成功
int USER_IS_EXIT = -1005;//用户已注册
int SIGN_ERROR = -100;//签名错误或者客户端时间有误
int USERNAME_OR_PASSWORD_ERROR = -1001;//用户名或密码错误/Account or Password is wrong
int USER_MODPASS_LOGOUT = 1002;//修改密码成功,请重新登录
int REPORT_INVALID_ERROR = -11142;//报告在数据库中不存在/Report is not exist in the DB
int USER_NOT_FOUND = -1002;//用户不存在/User is not exist
int COMPANY_ERROR = -11170;//"用户所属公司信息有误/Company infomation error";
/**
* Operation
*/
public static final int OP_NEWUSER_REGISTER = 0;
public static final int OP_HELTH_EXAM = 1;
public static final int OP_OLDUSER_GUIDE = 2;
public static final int OP_NEWUSER_DIAGNOSE = 3;
}