zoukankan      html  css  js  c++  java
  • 常见页面响应状态及显示信息

    string msg;
                switch (responseType)
                {
                    case ResponseType.LoginExpiration:
                        msg = "登陆已过期,请重新登陆"; break;
                    case ResponseType.TokenExpiration:
                        msg = "Token已过期,请重新登陆"; break;
                    case ResponseType.AccountLocked:
                        msg = "帐号已被锁定"; break;
                    case ResponseType.LoginSuccess:
                        msg = "登陆成功"; break;
                    case ResponseType.ParametersLack:
                        msg = "参数不完整"; break;
                    case ResponseType.NoPermissions:
                        msg = "没有权限操作"; break;
                    case ResponseType.NoRolePermissions:
                        msg = "角色没有权限操作"; break;
                    case ResponseType.ServerError:
                        msg = "服务器好像出了点问题....."; break;
                    case ResponseType.LoginError:
                        msg = "用户名或密码错误"; break;
                    case ResponseType.SaveSuccess:
                        msg = "保存成功"; break;
                    case ResponseType.NoKey:
                        msg = "没有主键不能编辑"; break;
                    case ResponseType.NoKeyDel:
                        msg = "没有主键不能删除"; break;
                    case ResponseType.KeyError:
                        msg = "主键不正确或没有传入主键"; break;
                    case ResponseType.EidtSuccess:
                        msg = "编辑成功"; break;
                    case ResponseType.DelSuccess:
                        msg = "删除成功"; break;
                    case ResponseType.RegisterSuccess:
                        msg = "注册成功"; break;
                    case ResponseType.AuditSuccess:
                        msg = "审核成功"; break;
                    case ResponseType.ModifyPwdSuccess:
                        msg = "密码修改成功"; break;
                    case ResponseType.OperSuccess:
                        msg = "操作成功"; break;
                    case ResponseType.PINError:
                        msg = "验证码不正确"; break;
    
                    default: msg = responseType.ToString(); break;
                }
                return msg;

    其中responseType为枚举类型

    记录编程的点滴,体会学习的乐趣
  • 相关阅读:
    jQuery
    jQuery
    jQuery Callback 函数
    怎样提高团队管理能力4
    poj 3461 Oulipo(KMP模板题)
    每日一小练——按字典顺序列出全部排列
    Java数据结构与算法之排序
    China Vis 2015 会议小结
    网络基础知识小小说
    NS3网络仿真(7): Wifi节点
  • 原文地址:https://www.cnblogs.com/AduBlog/p/13526750.html
Copyright © 2011-2022 走看看