操控平台后端代码
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.

605 lines
16 KiB

5 months ago
// 大名科技(天津)有限公司版权所有 电话:18020030720 QQ:515096995
//
// 此源代码遵循位于源代码树根目录中的 LICENSE 文件的许可证
namespace Admin.NET.Core;
/// <summary>
/// 系统错误码
/// </summary>
[ErrorCodeType]
[Description("系统错误码")]
public enum ErrorCodeEnum
{
/// <summary>
/// 验证码错误
/// </summary>
3 months ago
[ErrorCodeItemMetadata("验证码错误")] D0008,
5 months ago
/// <summary>
/// 账号不存在
/// </summary>
3 months ago
[ErrorCodeItemMetadata("账号不存在")] D0009,
5 months ago
/// <summary>
/// 密码不正确
/// </summary>
3 months ago
[ErrorCodeItemMetadata("密码不正确")] D1000,
5 months ago
/// <summary>
/// 非法操作!禁止删除自己
/// </summary>
3 months ago
[ErrorCodeItemMetadata("非法操作,禁止删除自己")] D1001,
5 months ago
/// <summary>
/// 记录不存在
/// </summary>
3 months ago
[ErrorCodeItemMetadata("记录不存在")] D1002,
5 months ago
/// <summary>
/// 账号已存在
/// </summary>
3 months ago
[ErrorCodeItemMetadata("账号已存在")] D1003,
5 months ago
/// <summary>
/// 旧密码不匹配
/// </summary>
3 months ago
[ErrorCodeItemMetadata("旧密码输入错误")] D1004,
5 months ago
/// <summary>
/// 测试数据禁止更改admin密码
/// </summary>
[ErrorCodeItemMetadata("测试数据禁止更改用户【admin】密码")]
D1005,
/// <summary>
/// 数据已存在
/// </summary>
3 months ago
[ErrorCodeItemMetadata("数据已存在")] D1006,
5 months ago
/// <summary>
/// 数据不存在或含有关联引用,禁止删除
/// </summary>
[ErrorCodeItemMetadata("数据不存在或含有关联引用,禁止删除")]
D1007,
/// <summary>
/// 禁止为管理员分配角色
/// </summary>
3 months ago
[ErrorCodeItemMetadata("禁止为管理员分配角色")] D1008,
5 months ago
/// <summary>
/// 重复数据或记录含有不存在数据
/// </summary>
[ErrorCodeItemMetadata("重复数据或记录含有不存在数据")]
D1009,
/// <summary>
/// 禁止为超级管理员角色分配权限
/// </summary>
[ErrorCodeItemMetadata("禁止为超级管理员角色分配权限")]
D1010,
/// <summary>
/// 非法操作,未登录
/// </summary>
3 months ago
[ErrorCodeItemMetadata("非法操作,未登录")] D1011,
5 months ago
/// <summary>
/// Id不能为空
/// </summary>
3 months ago
[ErrorCodeItemMetadata("Id不能为空")] D1012,
5 months ago
/// <summary>
/// 所属机构不在自己的数据范围内
/// </summary>
3 months ago
[ErrorCodeItemMetadata("没有权限操作该数据")] D1013,
5 months ago
/// <summary>
/// 禁止删除超级管理员
/// </summary>
3 months ago
[ErrorCodeItemMetadata("禁止删除超级管理员")] D1014,
5 months ago
/// <summary>
/// 禁止修改超级管理员状态
/// </summary>
3 months ago
[ErrorCodeItemMetadata("禁止修改超级管理员状态")] D1015,
5 months ago
/// <summary>
/// 没有权限
/// </summary>
3 months ago
[ErrorCodeItemMetadata("没有权限")] D1016,
5 months ago
/// <summary>
/// 账号已冻结
/// </summary>
3 months ago
[ErrorCodeItemMetadata("账号已冻结")] D1017,
5 months ago
/// <summary>
/// 禁止删除管理员
/// </summary>
3 months ago
[ErrorCodeItemMetadata("禁止删除管理员")] D1018,
5 months ago
/// <summary>
/// 禁止删除系统管理员角色
/// </summary>
3 months ago
[ErrorCodeItemMetadata("禁止删除系统管理员角色")] D1019,
5 months ago
/// <summary>
/// 禁止修改系统管理员角色
/// </summary>
3 months ago
[ErrorCodeItemMetadata("禁止修改系统管理员角色")] D1020,
5 months ago
/// <summary>
/// 禁止为系统管理员角色分配权限
/// </summary>
[ErrorCodeItemMetadata("禁止为系统管理员角色分配权限")]
D1021,
/// <summary>
/// 禁止为超级管理员分配角色
/// </summary>
[ErrorCodeItemMetadata("禁止为超级管理员分配角色")]
D1022,
/// <summary>
/// 禁止删除默认租户
/// </summary>
3 months ago
[ErrorCodeItemMetadata("禁止删除默认租户")] D1023,
5 months ago
/// <summary>
/// 已将其他地方登录账号下线
/// </summary>
[ErrorCodeItemMetadata("已将其他地方登录账号下线")]
D1024,
/// <summary>
/// 此角色下面存在账号禁止删除
/// </summary>
[ErrorCodeItemMetadata("此角色下面存在账号禁止删除")]
D1025,
/// <summary>
/// 禁止修改本人账号状态
/// </summary>
3 months ago
[ErrorCodeItemMetadata("禁止修改本人账号状态")] D1026,
5 months ago
/// <summary>
/// 密码错误次数过多,账号已锁定,请半小时后重试!
/// </summary>
[ErrorCodeItemMetadata("密码错误次数过多,账号已锁定,请半小时后重试!")]
D1027,
/// <summary>
/// 新密码不能与旧密码相同
/// </summary>
3 months ago
[ErrorCodeItemMetadata("新密码不能与旧密码相同")] D1028,
5 months ago
/// <summary>
/// 父机构不存在
/// </summary>
3 months ago
[ErrorCodeItemMetadata("父机构不存在")] D2000,
5 months ago
/// <summary>
/// 当前机构Id不能与父机构Id相同
/// </summary>
[ErrorCodeItemMetadata("当前机构Id不能与父机构Id相同")]
D2001,
/// <summary>
/// 已有相同组织机构,编码或名称相同
/// </summary>
[ErrorCodeItemMetadata("已有相同组织机构,编码或名称相同")]
D2002,
/// <summary>
/// 没有权限操作机构
/// </summary>
3 months ago
[ErrorCodeItemMetadata("没有权限操作机构")] D2003,
5 months ago
/// <summary>
/// 该机构下有用户禁止删除
/// </summary>
3 months ago
[ErrorCodeItemMetadata("该机构下有用户禁止删除")] D2004,
5 months ago
/// <summary>
/// 附属机构下有用户禁止删除
/// </summary>
[ErrorCodeItemMetadata("附属机构下有用户禁止删除")]
D2005,
/// <summary>
/// 只能增加下级机构
/// </summary>
3 months ago
[ErrorCodeItemMetadata("只能增加下级机构")] D2006,
5 months ago
/// <summary>
/// 下级机构下有用户禁止删除
/// </summary>
[ErrorCodeItemMetadata("下级机构下有用户禁止删除")]
D2007,
/// <summary>
/// 租户默认机构禁止删除
/// </summary>
3 months ago
[ErrorCodeItemMetadata("租户默认机构禁止删除")] D2008,
5 months ago
/// <summary>
/// 禁止增加根节点机构
/// </summary>
3 months ago
[ErrorCodeItemMetadata("禁止增加根节点机构")] D2009,
5 months ago
/// <summary>
/// 字典类型不存在
/// </summary>
3 months ago
[ErrorCodeItemMetadata("字典类型不存在")] D3000,
5 months ago
/// <summary>
/// 字典类型已存在
/// </summary>
[ErrorCodeItemMetadata("字典类型已存在,名称或编码重复")]
D3001,
/// <summary>
/// 字典类型下面有字典值禁止删除
/// </summary>
[ErrorCodeItemMetadata("字典类型下面有字典值禁止删除")]
D3002,
/// <summary>
/// 字典值已存在
/// </summary>
[ErrorCodeItemMetadata("字典值已存在,名称或编码重复")]
D3003,
/// <summary>
/// 字典值不存在
/// </summary>
3 months ago
[ErrorCodeItemMetadata("字典值不存在")] D3004,
5 months ago
/// <summary>
/// 字典状态错误
/// </summary>
3 months ago
[ErrorCodeItemMetadata("字典状态错误")] D3005,
5 months ago
/// <summary>
/// 菜单已存在
/// </summary>
3 months ago
[ErrorCodeItemMetadata("菜单已存在")] D4000,
5 months ago
/// <summary>
/// 路由地址为空
/// </summary>
3 months ago
[ErrorCodeItemMetadata("路由地址为空")] D4001,
5 months ago
/// <summary>
/// 打开方式为空
/// </summary>
3 months ago
[ErrorCodeItemMetadata("打开方式为空")] D4002,
5 months ago
/// <summary>
/// 权限标识格式为空
/// </summary>
3 months ago
[ErrorCodeItemMetadata("权限标识格式为空")] D4003,
5 months ago
/// <summary>
/// 权限标识格式错误
/// </summary>
[ErrorCodeItemMetadata("权限标识格式错误 如xxx:xxx")]
D4004,
/// <summary>
/// 权限不存在
/// </summary>
3 months ago
[ErrorCodeItemMetadata("权限不存在")] D4005,
5 months ago
/// <summary>
/// 父级菜单不能为当前节点,请重新选择父级菜单
/// </summary>
[ErrorCodeItemMetadata("父级菜单不能为当前节点,请重新选择父级菜单")]
D4006,
/// <summary>
/// 不能移动根节点
/// </summary>
3 months ago
[ErrorCodeItemMetadata("不能移动根节点")] D4007,
5 months ago
/// <summary>
/// 禁止本节点与父节点相同
/// </summary>
3 months ago
[ErrorCodeItemMetadata("禁止本节点与父节点相同")] D4008,
5 months ago
/// <summary>
/// 路由名称重复
/// </summary>
3 months ago
[ErrorCodeItemMetadata("路由名称重复")] D4009,
5 months ago
/// <summary>
/// 父节点不能为按钮类型
/// </summary>
3 months ago
[ErrorCodeItemMetadata("父节点不能为按钮类型")] D4010,
5 months ago
/// <summary>
/// 已存在同名或同编码应用
/// </summary>
3 months ago
[ErrorCodeItemMetadata("已存在同名或同编码应用")] D5000,
5 months ago
/// <summary>
/// 默认激活系统只能有一个
/// </summary>
3 months ago
[ErrorCodeItemMetadata("默认激活系统只能有一个")] D5001,
5 months ago
/// <summary>
/// 该应用下有菜单禁止删除
/// </summary>
3 months ago
[ErrorCodeItemMetadata("该应用下有菜单禁止删除")] D5002,
5 months ago
/// <summary>
/// 已存在同名或同编码应用
/// </summary>
3 months ago
[ErrorCodeItemMetadata("已存在同名或同编码应用")] D5003,
5 months ago
/// <summary>
/// 已存在同名或同编码职位
/// </summary>
3 months ago
[ErrorCodeItemMetadata("已存在同名或同编码职位")] D6000,
5 months ago
/// <summary>
/// 该职位下有用户禁止删除
/// </summary>
3 months ago
[ErrorCodeItemMetadata("该职位下有用户禁止删除")] D6001,
5 months ago
/// <summary>
/// 无权修改本职位
/// </summary>
3 months ago
[ErrorCodeItemMetadata("无权修改本职位")] D6002,
5 months ago
/// <summary>
/// 职位不存在
/// </summary>
3 months ago
[ErrorCodeItemMetadata("职位不存在")] D6003,
5 months ago
/// <summary>
/// 通知公告状态错误
/// </summary>
3 months ago
[ErrorCodeItemMetadata("通知公告状态错误")] D7000,
5 months ago
/// <summary>
/// 通知公告删除失败
/// </summary>
3 months ago
[ErrorCodeItemMetadata("通知公告删除失败")] D7001,
5 months ago
/// <summary>
/// 通知公告编辑失败
/// </summary>
[ErrorCodeItemMetadata("通知公告编辑失败,类型必须为草稿")]
D7002,
/// <summary>
/// 通知公告操作失败,非发布者不能进行操作
/// </summary>
[ErrorCodeItemMetadata("通知公告操作失败,非发布者不能进行操作")]
D7003,
/// <summary>
/// 文件不存在
/// </summary>
3 months ago
[ErrorCodeItemMetadata("文件不存在")] D8000,
5 months ago
/// <summary>
/// 不允许的文件类型
/// </summary>
3 months ago
[ErrorCodeItemMetadata("不允许的文件类型")] D8001,
5 months ago
/// <summary>
/// 文件超过允许大小
/// </summary>
3 months ago
[ErrorCodeItemMetadata("文件超过允许大小")] D8002,
5 months ago
/// <summary>
/// 文件后缀错误
/// </summary>
3 months ago
[ErrorCodeItemMetadata("文件后缀错误")] D8003,
5 months ago
/// <summary>
/// 文件已存在
/// </summary>
3 months ago
[ErrorCodeItemMetadata("文件已存在")] D8004,
5 months ago
/// <summary>
/// 已存在同名或同编码参数配置
/// </summary>
[ErrorCodeItemMetadata("已存在同名或同编码参数配置")]
D9000,
/// <summary>
/// 禁止删除系统参数
/// </summary>
3 months ago
[ErrorCodeItemMetadata("禁止删除系统参数")] D9001,
5 months ago
/// <summary>
/// 已存在同名任务调度
/// </summary>
3 months ago
[ErrorCodeItemMetadata("已存在同名任务调度")] D1100,
5 months ago
/// <summary>
/// 任务调度不存在
/// </summary>
3 months ago
[ErrorCodeItemMetadata("任务调度不存在")] D1101,
5 months ago
/// <summary>
/// 演示环境禁止修改数据
/// </summary>
3 months ago
[ErrorCodeItemMetadata("演示环境禁止修改数据")] D1200,
5 months ago
/// <summary>
/// 已存在同名的租户
/// </summary>
3 months ago
[ErrorCodeItemMetadata("已存在同名的租户")] D1300,
5 months ago
/// <summary>
/// 已存在同名的租户管理员
/// </summary>
3 months ago
[ErrorCodeItemMetadata("已存在同名的租户管理员")] D1301,
5 months ago
/// <summary>
/// 租户从库配置错误
/// </summary>
3 months ago
[ErrorCodeItemMetadata("租户从库配置错误")] D1302,
5 months ago
/// <summary>
/// 该表代码模板已经生成过
/// </summary>
3 months ago
[ErrorCodeItemMetadata("该表代码模板已经生成过")] D1400,
5 months ago
/// <summary>
/// 该类型不存在
/// </summary>
3 months ago
[ErrorCodeItemMetadata("该类型不存在")] D1501,
5 months ago
/// <summary>
/// 该字段不存在
/// </summary>
3 months ago
[ErrorCodeItemMetadata("该字段不存在")] D1502,
5 months ago
/// <summary>
/// 该类型不是枚举类型
/// </summary>
3 months ago
[ErrorCodeItemMetadata("该类型不是枚举类型")] D1503,
5 months ago
/// <summary>
/// 该实体不存在
/// </summary>
3 months ago
[ErrorCodeItemMetadata("该实体不存在")] D1504,
5 months ago
/// <summary>
/// 父菜单不存在
/// </summary>
3 months ago
[ErrorCodeItemMetadata("父菜单不存在")] D1505,
5 months ago
/// <summary>
/// 父资源不存在
/// </summary>
3 months ago
[ErrorCodeItemMetadata("父资源不存在")] D1600,
5 months ago
/// <summary>
/// 当前资源Id不能与父资源Id相同
/// </summary>
[ErrorCodeItemMetadata("当前资源Id不能与父资源Id相同")]
D1601,
/// <summary>
/// 已有相同编码或名称
/// </summary>
3 months ago
[ErrorCodeItemMetadata("已有相同编码或名称")] D1602,
5 months ago
/// <summary>
/// 脚本代码不能为空
/// </summary>
3 months ago
[ErrorCodeItemMetadata("脚本代码不能为空")] D1701,
5 months ago
/// <summary>
/// 脚本代码中的作业类,需要定义 [JobDetail] 特性
/// </summary>
[ErrorCodeItemMetadata("脚本代码中的作业类,需要定义 [JobDetail] ")]
D1702,
/// <summary>
/// 作业编号需要与脚本代码中的作业类 [JobDetail('jobId')] 一致
/// </summary>
[ErrorCodeItemMetadata("作业编号需要与脚本代码中的作业类 [JobDetail('jobId')] ")]
D1703,
/// <summary>
/// 禁止修改作业编号
/// </summary>
3 months ago
[ErrorCodeItemMetadata("禁止修改作业编号")] D1704,
5 months ago
/// <summary>
/// 执行作业失败
/// </summary>
3 months ago
[ErrorCodeItemMetadata("执行作业失败")] D1705,
5 months ago
/// <summary>
/// 已存在同名打印模板
/// </summary>
3 months ago
[ErrorCodeItemMetadata("已存在同名打印模板")] D1800,
5 months ago
/// <summary>
/// 已存在同名功能或同名程序及插件
/// </summary>
[ErrorCodeItemMetadata("已存在同名功能或同名程序及插件")]
D1900,
/// <summary>
/// 已存在同名或同编码项目
/// </summary>
3 months ago
[ErrorCodeItemMetadata("已存在同名或同编码项目")] xg1000,
5 months ago
/// <summary>
/// 已存在相同证件号码人员
/// </summary>
3 months ago
[ErrorCodeItemMetadata("已存在相同证件号码人员")] xg1001,
5 months ago
/// <summary>
/// 检测数据不存在
/// </summary>
3 months ago
[ErrorCodeItemMetadata("检测数据不存在")] xg1002,
5 months ago
/// <summary>
/// 请添加数据列
/// </summary>
3 months ago
[ErrorCodeItemMetadata("请添加数据列")] db1000,
5 months ago
/// <summary>
/// 数据表不存在
/// </summary>
3 months ago
[ErrorCodeItemMetadata("数据表不存在")] db1001,
5 months ago
/// <summary>
/// 数据表不存在
/// </summary>
3 months ago
[ErrorCodeItemMetadata("不允许添加相同字段名")] db1002,
5 months ago
/// <summary>
/// 父节点不存在
/// </summary>
3 months ago
[ErrorCodeItemMetadata("父节点不存在")] R2000,
5 months ago
/// <summary>
/// 当前节点Id不能与父节点Id相同
/// </summary>
[ErrorCodeItemMetadata("当前节点Id不能与父节点Id相同")]
R2001,
/// <summary>
/// 已有相同编码或名称
/// </summary>
3 months ago
[ErrorCodeItemMetadata("已有相同编码或名称")] R2002,
5 months ago
/// <summary>
/// 默认租户状态禁止修改
/// </summary>
3 months ago
[ErrorCodeItemMetadata("默认租户状态禁止修改")] Z1001,
5 months ago
/// <summary>
/// 禁止创建此类型的数据库
/// </summary>
3 months ago
[ErrorCodeItemMetadata("禁止创建此类型的数据库")] Z1002,
5 months ago
/// <summary>
/// 租户已禁用
/// </summary>
3 months ago
[ErrorCodeItemMetadata("租户已禁用")] Z1003,
5 months ago
/// <summary>
/// 租户库连接不能为空
/// </summary>
3 months ago
[ErrorCodeItemMetadata("租户库连接不能为空")] Z1004,
5 months ago
/// <summary>
/// 身份标识已存在
/// </summary>
3 months ago
[ErrorCodeItemMetadata("身份标识已存在")] O1000,
[ErrorCodeItemMetadata("设备已存在")] Device1000,
5 months ago
}