Author | SHA1 | Message | Date |
---|---|---|---|
stevelee | db8249bcd7 | 添加BaseEntity | 2 years ago |
stevelee | 4ad532a7aa | 增加ERRORCODE枚举 | 2 years ago |
stevelee | 471f526d96 | 提交EnumPlatformType | 2 years ago |
stevelee | 3d7e54552f | 提交并更新包 | 2 years ago |
stevelee | 3da6ddcea4 | 提交CRM中的枚举 | 2 years ago |
stevelee | 8f3f0acdb9 | 提交枚举 | 2 years ago |
@@ -0,0 +1,44 @@ | |||
namespace BPA.Common.Entity | |||
{ | |||
/// <summary> | |||
/// 公用类 | |||
/// </summary> | |||
public abstract class AbstractEntity | |||
{ | |||
/// <summary> | |||
/// 主键 Guid | |||
/// </summary> | |||
public string Id { get; set; } | |||
/// <summary> | |||
/// 删除标识 | |||
/// 0=> 正常使用 | |||
/// 1=> 已经被标记删除 | |||
/// </summary> | |||
public int IsDeleted { get; set; } | |||
/// <summary> | |||
/// 删除时间 | |||
/// </summary> | |||
public DateTime DeleteAt { get; set; } | |||
/// <summary> | |||
/// 删除人 | |||
/// </summary> | |||
public string DeleteBy { get; set; } | |||
/// <summary> | |||
/// 更新时间 | |||
/// </summary> | |||
public DateTime UpdateAt { get; set; } | |||
/// <summary> | |||
/// 更新人 | |||
/// </summary> | |||
public string UpdateBy { get; set; } | |||
/// <summary> | |||
/// 创建时间 | |||
/// </summary> | |||
public DateTime CreateAt { get; set; } | |||
/// <summary> | |||
/// 创建人 | |||
/// </summary> | |||
public string CreateBy { get; set; } | |||
} | |||
} |
@@ -0,0 +1,19 @@ | |||
<Project Sdk="Microsoft.NET.Sdk"> | |||
<PropertyGroup> | |||
<TargetFramework>net6.0</TargetFramework> | |||
<ImplicitUsings>enable</ImplicitUsings> | |||
<Nullable>enable</Nullable> | |||
<VersionPrefix>1.0.3</VersionPrefix> | |||
<PackageReleaseNotes /> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<PackageReference Include="BPA.Component.DbClient" Version="1.0.6" /> | |||
<ProjectReference Include="..\..\BPA.Common.Enums\BPA.Common.Enums.csproj" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<PackageReference Include="Nuget.Tools.V2" Version="1.1.7"> | |||
<PrivateAssets>all</PrivateAssets> | |||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | |||
</PackageReference> | |||
</ItemGroup> | |||
</Project> |
@@ -0,0 +1,15 @@ | |||
using SqlSugar; | |||
namespace BPA.Common.Entity; | |||
/// <summary> | |||
/// 基础类型 | |||
/// </summary> | |||
public abstract class BaseEntity | |||
{ | |||
/// <summary> | |||
/// 主键 Guid | |||
/// </summary> | |||
[SugarColumn(IsPrimaryKey = true, ColumnDataType = "Nvarchar(64)", IsNullable = false)] | |||
public string Id { get; set; } = Guid.NewGuid().ToString(); | |||
} |
@@ -0,0 +1,10 @@ | |||
using SqlSugar; | |||
namespace BPA.Common.Entity; | |||
public class BaseGroupIdEntity : Entity | |||
{ | |||
// TODO:MOD | |||
[SugarColumn(ColumnDataType = "nvarchar(64)", ColumnDescription = "GroupId", IsNullable = true)] | |||
public string GroupId { get; set; } /*= App.User?.FindFirst(ClaimConst.GroupId)?.Value;*/ | |||
} |
@@ -0,0 +1,88 @@ | |||
using SqlSugar; | |||
namespace BPA.Common.Entity | |||
{ | |||
/// <summary> | |||
/// 修改人修改时间 | |||
/// </summary> | |||
public class BaseOPEntity : BaseEntity | |||
{ | |||
/// <summary> | |||
/// 删除标识 | |||
/// 0=> 正常使用 | |||
/// 1=> 已经被标记删除 | |||
/// </summary> | |||
[SugarColumn(ColumnDataType = "bit", ColumnDescription = "是否删除", IsNullable = false)] | |||
public bool IsDeleted { get; set; } | |||
/// <summary> | |||
/// 删除时间 | |||
/// </summary> | |||
[SugarColumn(ColumnDataType = "DateTime", ColumnDescription = "删除时间", IsNullable = true)] | |||
public DateTime DeleteAt { get; set; } | |||
/// <summary> | |||
/// 删除人 | |||
/// </summary> | |||
[SugarColumn(ColumnDataType = "nvarchar(64)", ColumnDescription = "删除人", IsNullable = true)] | |||
public string DeleteBy { get; set; } | |||
/// <summary> | |||
/// 更新时间 | |||
/// </summary> | |||
[SugarColumn(ColumnDataType = "DateTime", ColumnDescription = "更新时间", IsNullable = true)] | |||
public DateTime UpdateAt { get; set; } | |||
/// <summary> | |||
/// 更新人 | |||
/// </summary> | |||
[SugarColumn(ColumnDataType = "nvarchar(64)", ColumnDescription = "更新人", IsNullable = true)] | |||
public string UpdateBy { get; set; } | |||
/// <summary> | |||
/// 创建时间 | |||
/// </summary> | |||
[SugarColumn(ColumnDataType = "DateTime", ColumnDescription = "创建时间", IsNullable = true)] | |||
public DateTime CreateAt { get; set; } = DateTime.Now; | |||
/// <summary> | |||
/// 创建人 | |||
/// </summary> | |||
[SugarColumn(ColumnDataType = "nvarchar(64)", ColumnDescription = "创建人", IsNullable = true)] | |||
public string CreateBy { get; set; } | |||
// /// <summary> | |||
// /// 新增 | |||
// /// </summary> | |||
// public virtual void Create() | |||
// { | |||
// var userId = App.User?.FindFirst(ClaimConst.CLAINM_USERID)?.Value; | |||
// var userName = App.User?.FindFirst(ClaimConst.CLAINM_ACCOUNT)?.Value; | |||
// Id = Guid.NewGuid().ToString(); | |||
// CreateAt = DateTime.Now; | |||
// CreateBy = !string.IsNullOrEmpty(userId) ? userId : "admin"; | |||
// } | |||
// | |||
// /// <summary> | |||
// /// 修改 | |||
// /// </summary> | |||
// public virtual void Modify() | |||
// { | |||
// var userId = App.User?.FindFirst(ClaimConst.CLAINM_USERID)?.Value; | |||
// var userName = App.User?.FindFirst(ClaimConst.CLAINM_ACCOUNT)?.Value; | |||
// UpdateAt = DateTime.Now; | |||
// UpdateBy = !string.IsNullOrEmpty(userId) ? userId : "admin"; | |||
// } | |||
// | |||
// /// <summary> | |||
// /// 删除 | |||
// /// </summary> | |||
// public virtual void Delete() | |||
// { | |||
// var userId = App.User?.FindFirst(ClaimConst.CLAINM_USERID)?.Value; | |||
// var userName = App.User?.FindFirst(ClaimConst.CLAINM_ACCOUNT)?.Value; | |||
// DeleteAt = DateTime.Now; | |||
// DeleteBy = !string.IsNullOrEmpty(userId) ? userId : "admin"; | |||
// } | |||
} | |||
} |
@@ -0,0 +1,11 @@ | |||
namespace BPA.Common.Entity | |||
{ | |||
public class BaseSheetEntity : BaseGroupIdEntity | |||
{ | |||
public DateTime OperDate { get; set; } | |||
public DateTime ApproveAt { get; set; } | |||
public string ApproveBy { get; set; } | |||
public int IsApprove { get; set; } | |||
public string Remark { get; set; } | |||
} | |||
} |
@@ -0,0 +1,17 @@ | |||
using BPA.Common.Enums.CRM; | |||
using SqlSugar; | |||
namespace BPA.Common.Entity | |||
{ | |||
/// <summary> | |||
/// 自定义实体基类 | |||
/// </summary> | |||
public abstract class Entity : BaseOPEntity | |||
{ | |||
/// <summary> | |||
/// 状态 | |||
/// </summary> | |||
[SugarColumn(ColumnDataType = "int", ColumnDescription = "状态", IsNullable = false)] | |||
public EnumCommonStatus Status { get; set; } = EnumCommonStatus.ENABLE; | |||
} | |||
} |
@@ -0,0 +1,20 @@ | |||
namespace BPA.Common.Entity | |||
{ | |||
public class MinEntity:BaseEntity | |||
{ | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public int IsDeleted { get; set; } | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public DateTime DeleteUpdateTime { get; set; } | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public string Key { get; set; } | |||
} | |||
} |
@@ -0,0 +1,33 @@ | |||
| |||
Microsoft Visual Studio Solution File, Format Version 12.00 | |||
# Visual Studio Version 17 | |||
VisualStudioVersion = 17.1.32228.430 | |||
MinimumVisualStudioVersion = 10.0.40219.1 | |||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BPA.Common.Enums", "BPA.Common.Enums\BPA.Common.Enums.csproj", "{40445FDD-C1C0-43B9-B81B-97A205588A9F}" | |||
EndProject | |||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BPA.Common.Entity", "BPA.Common.Entity\BPA.Common.Entity\BPA.Common.Entity.csproj", "{CEA98162-B2F1-4ADA-9285-71530DC85A1F}" | |||
EndProject | |||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{3568749A-C48C-461B-A6DB-A216E0F24727}" | |||
EndProject | |||
Global | |||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | |||
Debug|Any CPU = Debug|Any CPU | |||
Release|Any CPU = Release|Any CPU | |||
EndGlobalSection | |||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | |||
{40445FDD-C1C0-43B9-B81B-97A205588A9F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | |||
{40445FDD-C1C0-43B9-B81B-97A205588A9F}.Debug|Any CPU.Build.0 = Debug|Any CPU | |||
{40445FDD-C1C0-43B9-B81B-97A205588A9F}.Release|Any CPU.ActiveCfg = Release|Any CPU | |||
{40445FDD-C1C0-43B9-B81B-97A205588A9F}.Release|Any CPU.Build.0 = Release|Any CPU | |||
{CEA98162-B2F1-4ADA-9285-71530DC85A1F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | |||
{CEA98162-B2F1-4ADA-9285-71530DC85A1F}.Debug|Any CPU.Build.0 = Debug|Any CPU | |||
{CEA98162-B2F1-4ADA-9285-71530DC85A1F}.Release|Any CPU.ActiveCfg = Release|Any CPU | |||
{CEA98162-B2F1-4ADA-9285-71530DC85A1F}.Release|Any CPU.Build.0 = Release|Any CPU | |||
EndGlobalSection | |||
GlobalSection(SolutionProperties) = preSolution | |||
HideSolutionNode = FALSE | |||
EndGlobalSection | |||
GlobalSection(ExtensibilityGlobals) = postSolution | |||
SolutionGuid = {39BA7DB9-34F3-4655-BD8B-38CD98F497D0} | |||
EndGlobalSection | |||
EndGlobal |
@@ -0,0 +1,20 @@ | |||
<Project Sdk="Microsoft.NET.Sdk"> | |||
<PropertyGroup> | |||
<TargetFramework>net6.0</TargetFramework> | |||
<ImplicitUsings>enable</ImplicitUsings> | |||
<Nullable>enable</Nullable> | |||
<VersionPrefix>1.0.6</VersionPrefix> | |||
<PackageReleaseNotes /> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<Folder Include="Machine" /> | |||
<Folder Include="Order" /> | |||
<Folder Include="Proxy" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<PackageReference Include="Nuget.Tools.V2" Version="1.1.7"> | |||
<PrivateAssets>all</PrivateAssets> | |||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | |||
</PackageReference> | |||
</ItemGroup> | |||
</Project> |
@@ -0,0 +1,14 @@ | |||
namespace BPA.Common.Enums.CAP.Static; | |||
/// <summary> | |||
/// CAP 消息名称 | |||
/// </summary> | |||
// ReSharper disable all InconsistentNaming | |||
public static class BPACommonCapName | |||
{ | |||
/// <summary> | |||
/// TestWebApiDb | |||
/// </summary> | |||
/// <returns></returns> | |||
public const string TestWebApiCapDb = nameof(TestWebApiCapDb); | |||
} |
@@ -0,0 +1,40 @@ | |||
using System.ComponentModel; | |||
namespace BPA.Common.Enums.CRM.Coupon | |||
{ | |||
/// <summary> | |||
/// 优惠券领取类型 | |||
/// </summary> | |||
public enum EnumCouponGitType | |||
{ | |||
/// <summary> | |||
/// 小程序领取 | |||
/// </summary> | |||
[Description("小程序领取")] Applet = 1, | |||
/// <summary> | |||
/// 线下门店扫码 | |||
/// </summary> | |||
[Description("线下门店扫码")] StoreScanCode = 2, | |||
/// <summary> | |||
/// 活动下发 | |||
/// </summary> | |||
[Description("活动下发")] Activity = 3, | |||
/// <summary> | |||
/// 好友分享领取 | |||
/// </summary> | |||
[Description("好友分享领取")] Share = 4, | |||
/// <summary> | |||
/// 指定领取 | |||
/// </summary> | |||
[Description("指定领取")] Specify = 5, | |||
/// <summary> | |||
/// 参与活动 | |||
/// </summary> | |||
[Description("参与活动")] Participate = 6 | |||
} | |||
} |
@@ -0,0 +1,22 @@ | |||
using System.ComponentModel; | |||
namespace BPA.Common.Enums.CRM.Coupon | |||
{ | |||
public enum EnumCouponStatus | |||
{ | |||
/// <summary> | |||
/// 生效 | |||
/// </summary> | |||
[Description("生效")] Take = 1, | |||
/// <summary> | |||
/// 生效 | |||
/// </summary> | |||
[Description("失效")] Invalid = 2, | |||
/// <summary> | |||
/// 作废 | |||
/// </summary> | |||
[Description("作废")] Waste = 3 | |||
} | |||
} |
@@ -0,0 +1,25 @@ | |||
using System.ComponentModel; | |||
namespace BPA.Common.Enums.CRM.Coupon | |||
{ | |||
/// <summary> | |||
/// 优惠券类型 | |||
/// </summary> | |||
public enum EnumCouponType | |||
{ | |||
/// <summary> | |||
/// 满减优惠卷 | |||
/// </summary> | |||
[Description("满减优惠卷")] FullDiscountCoupon = 1, | |||
/// <summary> | |||
/// 代金卷 | |||
/// </summary> | |||
[Description("代金卷")] Vouchers = 2, | |||
/// <summary> | |||
/// 无门槛优惠卷 | |||
/// </summary> | |||
[Description("无门槛优惠卷")] NoThresholdCoupon = 3 | |||
} | |||
} |
@@ -0,0 +1,20 @@ | |||
using System.ComponentModel; | |||
namespace BPA.Common.Enums.CRM | |||
{ | |||
/// <summary> | |||
/// 分账账户类型 | |||
/// </summary> | |||
public enum EnumAccountType | |||
{ | |||
/// <summary> | |||
/// 商户 | |||
/// </summary> | |||
[Description("商户")] MERCHANT = 0, | |||
/// <summary> | |||
/// 个人 | |||
/// </summary> | |||
[Description("个人")] PERSONAL = 1, | |||
} | |||
} |
@@ -0,0 +1,25 @@ | |||
using System.ComponentModel; | |||
namespace BPA.Common.Enums.CRM | |||
{ | |||
public enum EnumAdminType | |||
{ | |||
/// <summary> | |||
/// 超级管理员 | |||
/// </summary> | |||
[Description("超级管理员")] | |||
SuperAdmin = 1, | |||
/// <summary> | |||
/// 管理员 | |||
/// </summary> | |||
[Description("管理员")] | |||
Admin = 2, | |||
/// <summary> | |||
/// 普通账号 | |||
/// </summary> | |||
[Description("普通账号")] | |||
None = 3 | |||
} | |||
} |
@@ -0,0 +1,28 @@ | |||
using System.ComponentModel; | |||
namespace BPA.Common.Enums.CRM | |||
{ | |||
/// <summary> | |||
/// 公共状态 | |||
/// </summary> | |||
public enum EnumCommonStatus | |||
{ | |||
/// <summary> | |||
/// 正常 | |||
/// </summary> | |||
[Description("正常")] | |||
ENABLE = 0, | |||
/// <summary> | |||
/// 停用 | |||
/// </summary> | |||
[Description("停用")] | |||
DISABLE = 1, | |||
/// <summary> | |||
/// 删除 | |||
/// </summary> | |||
[Description("删除")] | |||
DELETED = 2 | |||
} | |||
} |
@@ -0,0 +1,27 @@ | |||
using System.ComponentModel; | |||
namespace BPA.Common.Enums.CRM | |||
{ | |||
public enum EnumCouponUseType | |||
{ | |||
/// <summary> | |||
/// 未使用 | |||
/// </summary> | |||
[Description("未使用")] NoUse = 1, | |||
/// <summary> | |||
/// 已核销 | |||
/// </summary> | |||
[Description("已核销")] WriteOff = 2, | |||
/// <summary> | |||
/// 占用中 | |||
/// </summary> | |||
[Description("占用中")] Occupied = 3, | |||
/// <summary> | |||
/// 已失效 | |||
/// </summary> | |||
[Description("已失效")] Invalidation = 4 | |||
} | |||
} |
@@ -0,0 +1,37 @@ | |||
using System.ComponentModel; | |||
namespace BPA.Common.Enums.CRM | |||
{ | |||
public enum EnumDataScopeType | |||
{ | |||
/// <summary> | |||
/// 全部数据 | |||
/// </summary> | |||
[Description("全部数据")] | |||
ALL = 1, | |||
/// <summary> | |||
/// 本部门及以下数据 | |||
/// </summary> | |||
[Description("本部门及以下数据")] | |||
DEPT_WITH_CHILD = 2, | |||
/// <summary> | |||
/// 本部门数据 | |||
/// </summary> | |||
[Description("本部门数据")] | |||
DEPT = 3, | |||
/// <summary> | |||
/// 仅本人数据 | |||
/// </summary> | |||
[Description("仅本人数据")] | |||
SELF = 4, | |||
/// <summary> | |||
/// 自定义数据 | |||
/// </summary> | |||
[Description("自定义数据")] | |||
DEFINE = 5 | |||
} | |||
} |
@@ -0,0 +1,34 @@ | |||
using System.ComponentModel; | |||
namespace BPA.Common.Enums.CRM | |||
{ | |||
/// <summary> | |||
/// 系统菜单类型 | |||
/// </summary> | |||
public enum EnumMenuOpenType | |||
{ | |||
/// <summary> | |||
/// 无 | |||
/// </summary> | |||
[Description("无")] | |||
NONE = 0, | |||
/// <summary> | |||
/// 组件 | |||
/// </summary> | |||
[Description("组件")] | |||
COMPONENT = 1, | |||
/// <summary> | |||
/// 内链 | |||
/// </summary> | |||
[Description("内链")] | |||
INNER = 2, | |||
/// <summary> | |||
/// 外链 | |||
/// </summary> | |||
[Description("外链")] | |||
OUTER = 3 | |||
} | |||
} |
@@ -0,0 +1,30 @@ | |||
using System.ComponentModel; | |||
namespace BPA.Common.Enums.CRM | |||
{ | |||
/// <summary> | |||
/// 操蛋类型 | |||
/// </summary> | |||
public enum EnumMenuType | |||
{ | |||
/// <summary> | |||
/// 目录 | |||
/// </summary> | |||
[Description("目录")] DIR = 0, | |||
/// <summary> | |||
/// 菜单 | |||
/// </summary> | |||
[Description("菜单")] MENU = 1, | |||
/// <summary> | |||
/// 按钮 | |||
/// </summary> | |||
[Description("按钮")] BTN = 2, | |||
/// <summary> | |||
/// 下拉框 | |||
/// </summary> | |||
[Description("下拉框")] DROP = 3, | |||
} | |||
} |
@@ -0,0 +1,33 @@ | |||
using System.ComponentModel; | |||
namespace BPA.Common.Enums.CRM | |||
{ | |||
/// <summary> | |||
/// 组织类型 | |||
/// </summary> | |||
public enum EnumOrgType | |||
{ | |||
/// <summary> | |||
/// 机构部门 | |||
/// </summary> | |||
[Description("机构部门")] | |||
ORG = 0, | |||
/// <summary> | |||
/// 配送中心 | |||
/// </summary> | |||
[Description("配送中心")] | |||
DEVLIVERY = 1, | |||
/// <summary> | |||
/// 门店 | |||
/// </summary> | |||
[Description("门店")] | |||
STORE = 2, | |||
/// <summary> | |||
/// 门店 | |||
/// </summary> | |||
[Description("加盟店")] | |||
FranchiseeSTORE = 3 | |||
} | |||
} |
@@ -0,0 +1,26 @@ | |||
using System.ComponentModel; | |||
namespace BPA.Common.Enums.CRM; | |||
public enum EnumPlatformType | |||
{ | |||
/// <summary> | |||
/// 默认 | |||
/// </summary> | |||
[Description("默认")] Default = 0, | |||
/// <summary> | |||
/// 微信 | |||
/// </summary> | |||
[Description("微信")] WeChat = 1, | |||
/// <summary> | |||
/// 支付宝 | |||
/// </summary> | |||
[Description("支付宝")] Alipay = 2, | |||
/// <summary> | |||
/// 全部 | |||
/// </summary> | |||
[Description("全部")] Whole = 3 | |||
} |
@@ -0,0 +1,17 @@ | |||
using System.ComponentModel; | |||
namespace BPA.Common.Enums.CRM | |||
{ | |||
public enum EnumSRDUserType | |||
{ | |||
/// <summary> | |||
/// 人员 | |||
/// </summary> | |||
[Description("人员")] USER = 0, | |||
/// <summary> | |||
/// 人员分类 | |||
/// </summary> | |||
[Description("人员分类")] USERTYPE = 1 | |||
} | |||
} |
@@ -0,0 +1,11 @@ | |||
using BPA.Common.Enums.CRM; | |||
namespace BPA.Common.Enums; | |||
public class Program | |||
{ | |||
public void main() | |||
{ | |||
} | |||
} |
@@ -0,0 +1,19 @@ | |||
using System.ComponentModel; | |||
namespace BPA.Common.Enums.Systems; | |||
/// <summary> | |||
/// 业务类型 | |||
/// </summary> | |||
public enum EnumBusinessType | |||
{ | |||
/// <summary> | |||
/// 业务日志 | |||
/// </summary> | |||
[Description("业务日志")] BusinessLog, | |||
/// <summary> | |||
/// 其他业务类型 | |||
/// </summary> | |||
[Description("其他业务类型")] BusinessOther = 999 | |||
} |
@@ -0,0 +1,393 @@ | |||
using System.ComponentModel; | |||
namespace BPA.Common.Enums.Systems; | |||
/// <summary> | |||
/// 系统错误码 | |||
/// </summary> | |||
public enum ErrorCode | |||
{ | |||
/// <summary> | |||
/// 用户名或密码不正确 | |||
/// </summary> | |||
[Description("用户名或密码不正确")] | |||
D1000, | |||
/// <summary> | |||
/// 非法操作!禁止删除自己 | |||
/// </summary> | |||
[Description("非法操作,禁止删除自己")] | |||
D1001, | |||
/// <summary> | |||
/// 记录不存在 | |||
/// </summary> | |||
[Description("记录不存在")] | |||
D1002, | |||
/// <summary> | |||
/// 账号已存在 | |||
/// </summary> | |||
[Description("账号已存在")] | |||
D1003, | |||
/// <summary> | |||
/// 旧密码不匹配 | |||
/// </summary> | |||
[Description("旧密码输入错误")] | |||
D1004, | |||
/// <summary> | |||
/// 测试数据禁止更改admin密码 | |||
/// </summary> | |||
[Description("测试数据禁止更改用户【admin】密码")] | |||
D1005, | |||
/// <summary> | |||
/// 数据已存在 | |||
/// </summary> | |||
[Description("数据已存在")] | |||
D1006, | |||
/// <summary> | |||
/// 数据不存在或含有关联引用,禁止删除 | |||
/// </summary> | |||
[Description("数据不存在或含有关联引用,禁止删除")] | |||
D1007, | |||
/// <summary> | |||
/// 禁止为管理员分配角色 | |||
/// </summary> | |||
[Description("禁止为管理员分配角色")] | |||
D1008, | |||
/// <summary> | |||
/// 重复数据或记录含有不存在数据 | |||
/// </summary> | |||
[Description("重复数据或记录含有不存在数据")] | |||
D1009, | |||
/// <summary> | |||
/// 禁止为超级管理员角色分配权限 | |||
/// </summary> | |||
[Description("禁止为超级管理员角色分配权限")] | |||
D1010, | |||
/// <summary> | |||
/// 非法数据 | |||
/// </summary> | |||
[Description("非法数据")] | |||
D1011, | |||
/// <summary> | |||
/// Id不能为空 | |||
/// </summary> | |||
[Description("Id不能为空")] | |||
D1012, | |||
/// <summary> | |||
/// 所属机构不在自己的数据范围内 | |||
/// </summary> | |||
[Description("没有权限操作该数据")] | |||
D1013, | |||
/// <summary> | |||
/// 禁止删除超级管理员 | |||
/// </summary> | |||
[Description("禁止删除超级管理员")] | |||
D1014, | |||
/// <summary> | |||
/// 禁止修改超级管理员状态 | |||
/// </summary> | |||
[Description("禁止修改超级管理员状态")] | |||
D1015, | |||
/// <summary> | |||
/// 没有权限 | |||
/// </summary> | |||
[Description("没有权限")] | |||
D1016, | |||
/// <summary> | |||
/// 账号已冻结 | |||
/// </summary> | |||
[Description("账号已冻结")] | |||
D1017, | |||
/// <summary> | |||
/// 父机构不存在 | |||
/// </summary> | |||
[Description("父机构不存在")] | |||
D2000, | |||
/// <summary> | |||
/// 当前机构Id不能与父机构Id相同 | |||
/// </summary> | |||
[Description("当前机构Id不能与父机构Id相同")] | |||
D2001, | |||
/// <summary> | |||
/// 已有相同组织机构,编码或名称相同 | |||
/// </summary> | |||
[Description("已有相同组织机构,编码或名称相同")] | |||
D2002, | |||
/// <summary> | |||
/// 没有权限操作机构 | |||
/// </summary> | |||
[Description("没有权限操作机构")] | |||
D2003, | |||
/// <summary> | |||
/// 该机构下有员工禁止删除 | |||
/// </summary> | |||
[Description("该机构下有员工禁止删除")] | |||
D2004, | |||
/// <summary> | |||
/// 附属机构下有员工禁止删除 | |||
/// </summary> | |||
[Description("附属机构下有员工禁止删除")] | |||
D2005, | |||
/// <summary> | |||
/// 只能增加下级机构 | |||
/// </summary> | |||
[Description("只能增加下级机构")] | |||
D2006, | |||
/// <summary> | |||
/// 字典类型不存在 | |||
/// </summary> | |||
[Description("字典类型不存在")] | |||
D3000, | |||
/// <summary> | |||
/// 字典类型已存在 | |||
/// </summary> | |||
[Description("字典类型已存在,名称或编码重复")] | |||
D3001, | |||
/// <summary> | |||
/// 字典类型下面有字典值禁止删除 | |||
/// </summary> | |||
[Description("字典类型下面有字典值禁止删除")] | |||
D3002, | |||
/// <summary> | |||
/// 字典值已存在 | |||
/// </summary> | |||
[Description("字典值已存在,名称或编码重复")] | |||
D3003, | |||
/// <summary> | |||
/// 字典值不存在 | |||
/// </summary> | |||
[Description("字典值不存在")] | |||
D3004, | |||
/// <summary> | |||
/// 字典状态错误 | |||
/// </summary> | |||
[Description("字典状态错误")] | |||
D3005, | |||
/// <summary> | |||
/// 菜单已存在 | |||
/// </summary> | |||
[Description("菜单已存在")] | |||
D4000, | |||
/// <summary> | |||
/// 路由地址为空 | |||
/// </summary> | |||
[Description("路由地址为空")] | |||
D4001, | |||
/// <summary> | |||
/// 打开方式为空 | |||
/// </summary> | |||
[Description("打开方式为空")] | |||
D4002, | |||
/// <summary> | |||
/// 权限标识格式为空 | |||
/// </summary> | |||
[Description("权限标识格式为空")] | |||
D4003, | |||
/// <summary> | |||
/// 权限标识格式错误 | |||
/// </summary> | |||
[Description("权限标识格式错误")] | |||
D4004, | |||
/// <summary> | |||
/// 权限不存在 | |||
/// </summary> | |||
[Description("权限不存在")] | |||
D4005, | |||
/// <summary> | |||
/// 父级菜单不能为当前节点,请重新选择父级菜单 | |||
/// </summary> | |||
[Description("父级菜单不能为当前节点,请重新选择父级菜单")] | |||
D4006, | |||
/// <summary> | |||
/// 不能移动根节点 | |||
/// </summary> | |||
[Description("不能移动根节点")] | |||
D4007, | |||
/// <summary> | |||
/// 已存在同名或同编码应用 | |||
/// </summary> | |||
[Description("已存在同名或同编码应用")] | |||
D5000, | |||
/// <summary> | |||
/// 默认激活系统只能有一个 | |||
/// </summary> | |||
[Description("默认激活系统只能有一个")] | |||
D5001, | |||
/// <summary> | |||
/// 该应用下有菜单禁止删除 | |||
/// </summary> | |||
[Description("该应用下有菜单禁止删除")] | |||
D5002, | |||
/// <summary> | |||
/// 已存在同名或同编码应用 | |||
/// </summary> | |||
[Description("已存在同名或同编码应用")] | |||
D5003, | |||
/// <summary> | |||
/// 已存在同名或同编码职位 | |||
/// </summary> | |||
[Description("已存在同名或同编码职位")] | |||
D6000, | |||
/// <summary> | |||
/// 该职位下有员工禁止删除 | |||
/// </summary> | |||
[Description("该职位下有员工禁止删除")] | |||
D6001, | |||
/// <summary> | |||
/// 通知公告状态错误 | |||
/// </summary> | |||
[Description("通知公告状态错误")] | |||
D7000, | |||
/// <summary> | |||
/// 通知公告删除失败 | |||
/// </summary> | |||
[Description("通知公告删除失败")] | |||
D7001, | |||
/// <summary> | |||
/// 通知公告编辑失败 | |||
/// </summary> | |||
[Description("通知公告编辑失败,类型必须为草稿")] | |||
D7002, | |||
/// <summary> | |||
/// 文件不存在 | |||
/// </summary> | |||
[Description("文件不存在")] | |||
D8000, | |||
/// <summary> | |||
/// 已存在同名或同编码参数配置 | |||
/// </summary> | |||
[Description("已存在同名或同编码参数配置")] | |||
D9000, | |||
/// <summary> | |||
/// 禁止删除系统参数 | |||
/// </summary> | |||
[Description("禁止删除系统参数")] | |||
D9001, | |||
/// <summary> | |||
/// 已存在同名任务调度 | |||
/// </summary> | |||
[Description("已存在同名任务调度")] | |||
D1100, | |||
/// <summary> | |||
/// 任务调度不存在 | |||
/// </summary> | |||
[Description("任务调度不存在")] | |||
D1101, | |||
/// <summary> | |||
/// 演示环境禁止修改数据 | |||
/// </summary> | |||
[Description("演示环境禁止修改数据")] | |||
D1200, | |||
/// <summary> | |||
/// 已存在同名或同管理员或同主机租户 | |||
/// </summary> | |||
[Description("已存在同名或同主机租户")] | |||
D1300, | |||
/// <summary> | |||
/// 该表代码模板已经生成过 | |||
/// </summary> | |||
[Description("该表代码模板已经生成过")] | |||
D1400, | |||
/// <summary> | |||
/// 该类型不存在 | |||
/// </summary> | |||
[Description("该类型不存在")] | |||
D1501, | |||
/// <summary> | |||
/// 该字段不存在 | |||
/// </summary> | |||
[Description("该字段不存在")] | |||
D1502, | |||
/// <summary> | |||
/// 该类型不是枚举类型 | |||
/// </summary> | |||
[Description("该类型不是枚举类型")] | |||
D1503, | |||
/// <summary> | |||
/// 该实体不存在 | |||
/// </summary> | |||
[Description("该实体不存在")] | |||
D1504, | |||
/// <summary> | |||
/// 父菜单不存在 | |||
/// </summary> | |||
[Description("父菜单不存在")] | |||
D1505, | |||
/// <summary> | |||
/// 已存在同名或同编码项目 | |||
/// </summary> | |||
[Description("已存在同名或同编码项目")] | |||
xg1000, | |||
/// <summary> | |||
/// 已存在相同证件号码人员 | |||
/// </summary> | |||
[Description("已存在相同证件号码人员")] | |||
xg1001, | |||
/// <summary> | |||
/// 检测数据不存在 | |||
/// </summary> | |||
[Description("检测数据不存在")] | |||
xg1002, | |||
} |
@@ -0,0 +1,24 @@ | |||
using System.ComponentModel; | |||
namespace BPA.Common.Enums.Systems; | |||
/// <summary> | |||
/// 实体状态 | |||
/// </summary> | |||
public enum EnumStatus | |||
{ | |||
/// <summary> | |||
/// 正常 | |||
/// </summary> | |||
[Description("正常")] Enable = 0, | |||
/// <summary> | |||
/// 停用 | |||
/// </summary> | |||
[Description("停用")] DISABLE = 1, | |||
/// <summary> | |||
/// 删除 | |||
/// </summary> | |||
[Description("删除")] DELETED = 2 | |||
} |
@@ -1,25 +0,0 @@ | |||
| |||
Microsoft Visual Studio Solution File, Format Version 12.00 | |||
# Visual Studio Version 17 | |||
VisualStudioVersion = 17.1.32228.430 | |||
MinimumVisualStudioVersion = 10.0.40219.1 | |||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BPA.Common.Eums", "BPA.Common.Eums\BPA.Common.Eums.csproj", "{D374996C-68F3-4F53-964B-A3C39AF428FE}" | |||
EndProject | |||
Global | |||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | |||
Debug|Any CPU = Debug|Any CPU | |||
Release|Any CPU = Release|Any CPU | |||
EndGlobalSection | |||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | |||
{D374996C-68F3-4F53-964B-A3C39AF428FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | |||
{D374996C-68F3-4F53-964B-A3C39AF428FE}.Debug|Any CPU.Build.0 = Debug|Any CPU | |||
{D374996C-68F3-4F53-964B-A3C39AF428FE}.Release|Any CPU.ActiveCfg = Release|Any CPU | |||
{D374996C-68F3-4F53-964B-A3C39AF428FE}.Release|Any CPU.Build.0 = Release|Any CPU | |||
EndGlobalSection | |||
GlobalSection(SolutionProperties) = preSolution | |||
HideSolutionNode = FALSE | |||
EndGlobalSection | |||
GlobalSection(ExtensibilityGlobals) = postSolution | |||
SolutionGuid = {39BA7DB9-34F3-4655-BD8B-38CD98F497D0} | |||
EndGlobalSection | |||
EndGlobal |
@@ -1,9 +0,0 @@ | |||
<Project Sdk="Microsoft.NET.Sdk"> | |||
<PropertyGroup> | |||
<TargetFramework>net6.0</TargetFramework> | |||
<ImplicitUsings>enable</ImplicitUsings> | |||
<Nullable>enable</Nullable> | |||
</PropertyGroup> | |||
</Project> |