消防培训系统服务器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.8 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace AX.FireTrainingSys
{
/// <summary>
/// 表示错误码。
/// </summary>
/// <remarks>
/// 约定 60x 系列属于许可证错误;
/// 约定 61x 系列属于帐号错误;
/// </remarks>
public static class ErrorCodes
{
/// <summary>程序未经许可或许可证到期!</summary>
public const int E600 = 600;
/// <summary>帐号(身份证号)已注册!</summary>
public const int E610 = 610;
/// <summary>帐号或密码不正确!</summary>
public const int E611 = 611;
/// <summary>帐号被禁用!</summary>
public const int E612 = 612;
/// <summary>非有效令牌!</summary>
public const int E613 = 613;
/// <summary>令牌已过期,请重新认证!</summary>
public const int E614 = 614;
/// <summary>不能撤销已被引用的公开课件!</summary>
public const int E620 = 620;
/// <summary>不能删除已被引用的公开课件!</summary>
public const int E621 = 621;
/// <summary>
/// 错误码相对应的消息。
/// </summary>
public static readonly Dictionary<int, string> Messages = new Dictionary<int, string>()
{
{ E600, "程序未经许可或许可证到期!" },
{ E610, "帐号(身份证号)已注册!" },
{ E611, "帐号或密码不正确!" },
{ E612, "帐号被禁用!" },
{ E613, "非有效令牌!" },
{ E614, "令牌已过期,请重新认证!" },
{ E620, "不能撤销已被引用的公开课件!" },
{ E621, "不能删除已被引用的公开课件!" },
};
}
}