using System.Collections.Generic;

namespace ObjectMessage
{
    /// <summary>
    /// 用做提示的状态码定义
    /// </summary>
    public static class MessageTipCode
    {
        public const int Error_WrongData = 1;
        public const int Error_NoPermission = 2;
        public const int Error_Argument = 3;
        public const int Error_Server = 4;
        public const int Error_DB = 5;
    }

    public static class MessageTip
    {
        public static Dictionary<int, string> Tips = new Dictionary<int, string>()
        {
            { MessageTipCode.Error_WrongData, "数据错误!" },
            { MessageTipCode.Error_NoPermission, "您的权限不足!" },
            { MessageTipCode.Error_Argument, "参数错误!" },
            { MessageTipCode.Error_Server, "服务器错误，操作失败!" },
            { MessageTipCode.Error_DB, "数据库错误，操作失败!" },
        };
    }
}