Constants.java 1.68 KB
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 = "http://139.129.166.85:8090";
    /**
     * 测试用 用户名、密码、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";


}