返回信息类(ResponseInfo):
public class ResponseInfo { public static final String Status = "status";
public static final String Info = "info"; private String status;
private String info; public String getStatus() {
return status;
}
public void setStatus(String status) { this.status = status;
}
public String getInfo() {
return info;
}
public void setInfo(String info) {
this.info = info;
}
}
状态类(Status):
public class Status {
public static final String RESPONSE_OK = "success";
public static final String RESPONSE_ERR = "failed";
}
提示信息类(Info):
public class Info { public static final String PARAMS_ERR = "参数异常";
public static final String SERVER_ERR = "服务器端错误";
public static final String DATABASE_ERR = "数据库错误";
public static final String UNKNOWN_ERR = "未知错误";
public static final String NODATA = "无数据"; public static final String DATAEXISTS = "记录已存在";
public static final String DELETEERR = "删除失败";
public static final String UPDATEERR = "修改失败"; public static final String NOTLOGIN = "未登录";
public static final String LOGIN = "已登录";
public static final String REGISTER = "注册成功"; public static final String NORIGHT = "未通过审核";
public static final String RIGHT = "已通过审核";
public static final String NOEXAMINE = "仍未审核";
}