using System.ComponentModel; namespace DS.Module.Core { /// /// 返回结果枚举 /// public enum ResultCode { /// /// 成功结果类型 /// [Description("操作成功")] Success = 0, /// /// 操作取消或操作没引发任何变化 /// [Description("操作没引发任何变化")] NoChanged = 1, /// /// 失败结果类型 /// [Description("操作失败")] Fail = -1, /// /// 异常结果类型 /// [Description("操作异常")] Error = -2, /// /// 其他 /// [Description("其他")] Other = -3, /// /// 其他 /// [Description("没权限")] NoPermission = 401, /// /// /// [Description("没数据")] NoDatavailable = 201 } }