Pārlūkot izejas kodu

新增Model类库

heteng 3 gadi atpakaļ
vecāks
revīzija
2d76e3aec6

+ 0 - 4
MicroServices/Business/Business.Domain/Models/Book.cs

@@ -28,10 +28,6 @@ namespace Business.Models
         /// </summary>
         public int Price { get; set; }
 
-        /// <summary>
-        /// 页数
-        /// </summary>
-        public int TotalNum { get; set; }
 
 
     }

+ 6 - 0
MicroServices/Business/Business.sln

@@ -19,6 +19,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Business.HttpApi.Client", "
 EndProject
 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Business.Core", "Business.Core\Business.Core.csproj", "{183A14B9-5316-4D18-95E8-AE17D1302AF0}"
 EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bussiness.Model", "Bussiness.Model\Bussiness.Model.csproj", "{D9A37E35-A3BD-4A11-A3D8-571586EB2007}"
+EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Any CPU = Debug|Any CPU
@@ -57,6 +59,10 @@ Global
 		{183A14B9-5316-4D18-95E8-AE17D1302AF0}.Debug|Any CPU.Build.0 = Debug|Any CPU
 		{183A14B9-5316-4D18-95E8-AE17D1302AF0}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{183A14B9-5316-4D18-95E8-AE17D1302AF0}.Release|Any CPU.Build.0 = Release|Any CPU
+		{D9A37E35-A3BD-4A11-A3D8-571586EB2007}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{D9A37E35-A3BD-4A11-A3D8-571586EB2007}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{D9A37E35-A3BD-4A11-A3D8-571586EB2007}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{D9A37E35-A3BD-4A11-A3D8-571586EB2007}.Release|Any CPU.Build.0 = Release|Any CPU
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE

+ 46 - 0
MicroServices/Business/Bussiness.Model/Base/BaseEntity.cs

@@ -0,0 +1,46 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Volo.Abp.MultiTenancy;
+using Volo.Abp;
+
+namespace Business.Models
+{
+    public abstract class BaseEntity: ISoftDelete
+    {
+        /// <summary>
+        /// 创建人
+        /// </summary>
+        public virtual long create_By { get; set; }
+        /// <summary>
+        /// 创建人名称
+        /// </summary>
+        public virtual string create_by_Name { get; set; }
+        /// <summary>
+        /// 创建时间
+        /// </summary>
+        public virtual DateTime create_Time { get; set; }
+        /// <summary>
+        /// 修改人
+        /// </summary>
+        public virtual long update_By { get; set; }
+        /// <summary>
+        /// 修改人名称
+        /// </summary>
+        public virtual string update_by_Name { get; set; }
+        /// <summary>
+        /// 修改时间
+        /// </summary>
+        public virtual DateTime update_Time { get; set; }
+        /// <summary>
+        /// 企业ID
+        /// </summary>
+        public virtual long tenant_Id { get; set; }
+        /// <summary>
+        /// 删除标识
+        /// </summary>
+        public bool IsDeleted { get; set; }
+    }
+}

+ 13 - 0
MicroServices/Business/Bussiness.Model/Bussiness.Model.csproj

@@ -0,0 +1,13 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+  <PropertyGroup>
+    <TargetFramework>net6.0</TargetFramework>
+    <ImplicitUsings>enable</ImplicitUsings>
+    <Nullable>enable</Nullable>
+  </PropertyGroup>
+
+  <ItemGroup>
+    <Folder Include="Tech\" />
+  </ItemGroup>
+
+</Project>