From 8f521203423711a2747877025ba454f91c56a178 Mon Sep 17 00:00:00 2001 From: stevelee Date: Mon, 16 May 2022 14:12:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9E=9A=E4=B8=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BPA.Common.Entity.csproj | 2 +- .../BPA.Common.Entity/BaseMGCreateModel.cs | 23 +++++++++++++++++++ .../Annex/EnumAnnexBusinessType.cs | 20 ++++++++++++++++ src/BPA.Common.Enums/Annex/EnumAnnexType.cs | 20 ++++++++++++++++ src/BPA.Common.Enums/BPA.Common.Enums.csproj | 2 +- 5 files changed, 65 insertions(+), 2 deletions(-) create mode 100644 src/BPA.Common.Entity/BPA.Common.Entity/BaseMGCreateModel.cs create mode 100644 src/BPA.Common.Enums/Annex/EnumAnnexBusinessType.cs create mode 100644 src/BPA.Common.Enums/Annex/EnumAnnexType.cs diff --git a/src/BPA.Common.Entity/BPA.Common.Entity/BPA.Common.Entity.csproj b/src/BPA.Common.Entity/BPA.Common.Entity/BPA.Common.Entity.csproj index e17659d..2bf083b 100644 --- a/src/BPA.Common.Entity/BPA.Common.Entity/BPA.Common.Entity.csproj +++ b/src/BPA.Common.Entity/BPA.Common.Entity/BPA.Common.Entity.csproj @@ -3,7 +3,7 @@ net6.0 enable enable - 1.0.6 + 1.0.8 diff --git a/src/BPA.Common.Entity/BPA.Common.Entity/BaseMGCreateModel.cs b/src/BPA.Common.Entity/BPA.Common.Entity/BaseMGCreateModel.cs new file mode 100644 index 0000000..fa33e72 --- /dev/null +++ b/src/BPA.Common.Entity/BPA.Common.Entity/BaseMGCreateModel.cs @@ -0,0 +1,23 @@ +namespace BPA.Common.Entity; + +public class BaseMGCreateModel +{ + /// 创建人 + public SimpleEmployeeModel Creator { get; set; } + + /// 创建时间 + public DateTime CreateDate { get; set; } +} + +public class SimpleEmployeeModel +{ + /// + /// CreateId + /// + public long CreateId { get; set; } + + /// + /// CreateIdStr + /// + public string CreateIdStr { get; set; } +} \ No newline at end of file diff --git a/src/BPA.Common.Enums/Annex/EnumAnnexBusinessType.cs b/src/BPA.Common.Enums/Annex/EnumAnnexBusinessType.cs new file mode 100644 index 0000000..c7d99c1 --- /dev/null +++ b/src/BPA.Common.Enums/Annex/EnumAnnexBusinessType.cs @@ -0,0 +1,20 @@ +using System.ComponentModel; + +namespace BPA.Common.Enums.Annex +{ + public enum EnumAnnexBusinessType + { + /// + [Description("空")] None = -1, + /// 客户 + [Description("客户")] Customer = 1, + /// 联系人 + [Description("联系人")] Contact = 2, + /// 工作流 + [Description("工作流")] WorkFlow = 3, + /// 产品附件 + [Description("产品附件")] Product = 4, + /// 产品图片/头像 + [Description("产品图片/头像")] ProductPicture = 5, + } +} diff --git a/src/BPA.Common.Enums/Annex/EnumAnnexType.cs b/src/BPA.Common.Enums/Annex/EnumAnnexType.cs new file mode 100644 index 0000000..2184493 --- /dev/null +++ b/src/BPA.Common.Enums/Annex/EnumAnnexType.cs @@ -0,0 +1,20 @@ +using System.ComponentModel; + +namespace BPA.Common.Enums.Annex +{ + public enum EnumAnnexType + { + /// 文档 + [Description("文档")] Doc, + /// 压缩文件 + [Description("压缩文件")] Compress, + /// 图片 + [Description("图片")] Image, + /// 视频 + [Description("视频")] Video, + /// 音频 + [Description("音频")] Audio, + /// 未知 + [Description("未知")] Unknow, + } +} diff --git a/src/BPA.Common.Enums/BPA.Common.Enums.csproj b/src/BPA.Common.Enums/BPA.Common.Enums.csproj index 577dff3..268137f 100644 --- a/src/BPA.Common.Enums/BPA.Common.Enums.csproj +++ b/src/BPA.Common.Enums/BPA.Common.Enums.csproj @@ -3,7 +3,7 @@ net6.0 enable enable - 1.0.8 + 1.0.9