using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ERP.Framework.Constants { public class AuthConstant { /// /// 权鉴 Hearder /// public const string HEADER = "Authorization"; /// /// 登录用户密码错误 /// public const string PASSWORD_ERROR = "auth:password-error:"; /// /// /// public const string ONLINE_TOKEN = "auth:online-token:"; /// /// 最后一次登录时间(时限为token 长久有效期), /// null为token失效 /// -1 为被踢出 /// -2 为被顶下线 /// public const string LAST_ACTIVITY = "auth:last-activity:"; /// /// 用戶信息 /// public const string USER_INFO = "auth:user-info:"; /// /// Token List /// public const string TOKEN_LIST = "auth:token-list:"; /// /// 被踢下线 /// public const string KICKED_OFF = "-1"; /// /// 被顶下线 /// public const string SUBSTITUTED = "-2"; /// /// 首次密码错误 /// public const string FIRST_PASSWORD_ERROR = "1"; } }