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,
    }
}
