namespace Edu.Common.API
{
    /// <summary>
    /// Api返回结果枚举
    /// </summary>
    public enum ResultCode
    {
        /// <summary>
        /// 服务器异常
        /// </summary>
        AbnormalServer = -1,
        /// <summary>
        /// 请求成功
        /// </summary>
        Success = 1,
        /// <summary>
        /// 操作失败
        /// </summary>
        Fail = 0,

        /// <summary>
        /// 服务器返回提示用户信息，询问用户是否继续操作
        /// </summary>
        Tip = 2,

        /// <summary>
        /// Toneken过期
        /// </summary>
        TokenOverdue = 10000,
        /// <summary>
        /// Token不合法
        /// </summary>
        TokenIllegal = 10001,

        /// <summary>
        /// 请求参数为空
        /// </summary>
        ParamIsNull = 10002,
        /// <summary>
        /// 表单重复提交
        /// </summary>
        FormRepeatSubmit = 10003,
        /// <summary>
        /// 不在打卡范围
        /// </summary>
        NotInCardRange = 20001,
        /// <summary>
        /// 账号未激活
        /// </summary>
        AccountNotActivation = 10007,
        /// <summary>
        /// 绑定账号
        /// </summary>
        AccountBind = 10008,
    }
}
