using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LiveTools.Data { public class ResultVar { /// /// 数据库错误 /// public const int json_DbError = -1000; /// /// API未发现 /// public const int json_APIUnFound = -1001; /// /// 未登陆 /// public const int json_UnLogin = -1002; /// /// 没有权限 /// public const int json_UnAuthorized = -1003; /// /// 账号过期 /// public const int json_UserOutDate = -1004; /// /// 结果返回成功 /// public const int json_Success = 1; /// /// 错误的用户名 /// public const int json_UserUnFound = -1; /// /// 数据没发现 /// public const int json_DbUnFound = -1; /// /// 错误的密码 /// public const int json_ErrorPwd = -2; /// /// 无效的字符串 /// public const int json_InvalidStr = -3; /// /// 用户已被禁用 /// public const int json_ForbiddenUser = -4; /// /// 用户已存在 /// public const int json_UserExist = -5; } public class ConstVar { public const string json_Result = "Result"; public const string json_ResultText = "ResultText"; /// /// 6位校验码,目前只启用首位校验码为1 /// public const string json_Start = "100000"; /// /// 登陆成功的字符串 /// public const string Login_Success = "tianrui"; public ConstVar() { // // TODO: 在此处添加构造函数逻辑 // } } }