package org.scy.common;

/**
 * 常量定义
 * Created by shicy on 2017/8/31.
 */
@SuppressWarnings("unused")
public final class Const {

    // 平台帐号
    public final static String PLATFORM_CODE = "1000000000000000";

    // 有效
    public final static short ENABLED = 1;

    // 无效
    public final static short DISABLED = 0;

    // 用户名称登录
    public final static short LOGIN_TYPE_NAME = 1;

    // 手机号码登录
    public final static short LOGIN_TYPE_MOBILE = 2;

    // 邮箱登录
    public final static short LOGIN_TYPE_EMAIL = 3;

    // 参数错误
    public final static short MSG_CODE_PARAMINVALID  = 1000;

    // 参数缺失
    public final static short MSG_CODE_PARAMMISSING = 1001;

    // 参数格式错误
    public final static short MSG_CODE_PARAMFORMATERROR = 1002;

    // 存在重复
    public final static short MSG_CODE_DUPLICATED = 1003;

    // 对象不存在
    public final static short MSG_CODE_NOTEXIST = 1004;

    // 数据为空
    public final static short MSG_CODE_DATAEMPTY = 1005;

    // 服务拒绝访问或连接失败
    public final static short MSG_CODE_SERVERREFUSED = 1010;

    // 当前帐户错误，不存在或密码错误
    public final static short MSG_CODE_ACCOUNTERROR = 1100;

    // 没有操作权限
    public final static short MSG_CODE_NOPERMISSION = 1101;

    // 验证码错误
    public final static short MSG_CODE_VALIDFAILED = 1102;

}

@@ -309,24 +309,135 @@
 ABLED = 0;%0A%0A
+    // %E5%8F%AA%E8%AF%BB%0A    public final static short READONLY = 0;%0A%0A    // %E5%8F%AF%E5%86%99%0A    public final static short WRITEABLE = 1;%0A%0A
     // %E7%94%A8%E6%88%B7%E5%90%8D%E7%A7%B0%E7%99%BB

添加 Const.READONLY, Const.WRITEABLE