diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Config/SwaggerDoc.xml b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Config/SwaggerDoc.xml
index 614f74b5..d10b11a6 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Config/SwaggerDoc.xml
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Config/SwaggerDoc.xml
@@ -17,13 +17,13 @@
-
+
列表查询
-
+
条件分页查询
@@ -147,7 +147,7 @@
文章控制器
-
+
动态条件分页查询
@@ -155,7 +155,7 @@
-
+
添加
@@ -175,24 +175,12 @@
-
+
回复文章或回复评论
-
-
- 动态条件分页查询
-
-
-
-
-
- 动态条件分页查询
-
-
-
账户管理
@@ -249,7 +237,7 @@
-
+
动态条件分页查询
@@ -257,21 +245,21 @@
-
+
动态条件查询
-
+
添加
-
+
更新
@@ -285,7 +273,7 @@
-
+
动态条件分页查询
@@ -293,7 +281,7 @@
-
+
动态条件分页查询
@@ -313,7 +301,7 @@
文件
-
+
文件上传下载
@@ -356,7 +344,7 @@
-
+
动态条件分页查询
@@ -369,21 +357,21 @@
菜单管理
-
+
动态条件查询全部
-
+
插入
-
+
更新
@@ -423,7 +411,7 @@
-
+
动态条件分页查询
@@ -431,7 +419,7 @@
-
+
动态条件分页查询
@@ -444,7 +432,7 @@
角色管理
-
+
动态条件分页查询
@@ -496,7 +484,7 @@
用户管理
-
+
动态条件分页查询
@@ -548,19 +536,31 @@
-
+
重置密码
+
+
+ 动态条件分页查询
+
+
+
+
+
+ 动态条件分页查询
+
+
+
测试控制器
-
+
依赖注入,优雅写法
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Community/AgreeController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/BBS/AgreeController.cs
similarity index 93%
rename from Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Community/AgreeController.cs
rename to Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/BBS/AgreeController.cs
index ef52a5c0..0bfe0e0c 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Community/AgreeController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/BBS/AgreeController.cs
@@ -9,12 +9,13 @@ using System.Threading.Tasks;
using Yi.Framework.Common.Models;
using Yi.Framework.DTOModel.Vo;
using Yi.Framework.Interface;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.BBS;
+using Yi.Framework.Model.BBS.Entitys;
using Yi.Framework.Repository;
using Yi.Framework.Service;
-using Yi.Framework.WebCore;
using Yi.Framework.WebCore.AttributeExtend;
using Yi.Framework.WebCore.AuthorizationPolicy;
+using Yi.Framework.WebCore.CommonExtend;
namespace Yi.Framework.ApiMicroservice.Controllers
{
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Community/ArticleController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/BBS/ArticleController.cs
similarity index 95%
rename from Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Community/ArticleController.cs
rename to Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/BBS/ArticleController.cs
index 644e1e5c..6c9865d5 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Community/ArticleController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/BBS/ArticleController.cs
@@ -9,11 +9,12 @@ using System.Threading.Tasks;
using Yi.Framework.Common.Models;
using Yi.Framework.DTOModel.Vo;
using Yi.Framework.Interface;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.BBS;
+using Yi.Framework.Model.BBS.Entitys;
using Yi.Framework.Repository;
-using Yi.Framework.WebCore;
using Yi.Framework.WebCore.AttributeExtend;
using Yi.Framework.WebCore.AuthorizationPolicy;
+using Yi.Framework.WebCore.CommonExtend;
namespace Yi.Framework.ApiMicroservice.Controllers
{
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Community/CommentController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/BBS/CommentController.cs
similarity index 97%
rename from Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Community/CommentController.cs
rename to Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/BBS/CommentController.cs
index 5a4e76de..521b59e8 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Community/CommentController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/BBS/CommentController.cs
@@ -9,7 +9,8 @@ using System.Threading.Tasks;
using Yi.Framework.Common.Models;
using Yi.Framework.DTOModel.Vo;
using Yi.Framework.Interface;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.BBS;
+using Yi.Framework.Model.BBS.Entitys;
using Yi.Framework.Repository;
using Yi.Framework.WebCore;
using Yi.Framework.WebCore.AttributeExtend;
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/BaseController/BaseCrudController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Base/BaseCrudController.cs
similarity index 96%
rename from Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/BaseController/BaseCrudController.cs
rename to Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Base/BaseCrudController.cs
index 524c0d4d..5d196a9d 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/BaseController/BaseCrudController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Base/BaseCrudController.cs
@@ -2,10 +2,9 @@
using Microsoft.Extensions.Localization;
using Yi.Framework.Common.Helper;
using Yi.Framework.Common.Models;
-using Yi.Framework.Interface;
+using Yi.Framework.Interface.Base;
using Yi.Framework.Language;
-using Yi.Framework.Model.Models;
-using Yi.Framework.Model.Query;
+using Yi.Framework.Model.Base.Query;
using Yi.Framework.Repository;
using Yi.Framework.WebCore.AttributeExtend;
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/BaseController/BaseExcelController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Base/BaseExcelController.cs
similarity index 97%
rename from Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/BaseController/BaseExcelController.cs
rename to Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Base/BaseExcelController.cs
index 01f74731..1d246613 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/BaseController/BaseExcelController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Base/BaseExcelController.cs
@@ -7,8 +7,6 @@ using Yi.Framework.Common.Helper;
using Yi.Framework.Common.Models;
using Yi.Framework.Interface;
using Yi.Framework.Language;
-using Yi.Framework.Model.Models;
-using Yi.Framework.Model.Query;
using Yi.Framework.Repository;
using Yi.Framework.WebCore.AttributeExtend;
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/BaseController/BaseSimpleCrudController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Base/BaseSimpleCrudController.cs
similarity index 96%
rename from Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/BaseController/BaseSimpleCrudController.cs
rename to Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Base/BaseSimpleCrudController.cs
index b285609e..7cdb6814 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/BaseController/BaseSimpleCrudController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Base/BaseSimpleCrudController.cs
@@ -2,10 +2,8 @@
using Microsoft.Extensions.Localization;
using Yi.Framework.Common.Helper;
using Yi.Framework.Common.Models;
-using Yi.Framework.Interface;
+using Yi.Framework.Interface.Base;
using Yi.Framework.Language;
-using Yi.Framework.Model.Models;
-using Yi.Framework.Model.Query;
using Yi.Framework.Repository;
using Yi.Framework.WebCore.AttributeExtend;
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/BaseController/BaseSimpleRdController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Base/BaseSimpleRdController.cs
similarity index 95%
rename from Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/BaseController/BaseSimpleRdController.cs
rename to Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Base/BaseSimpleRdController.cs
index 1f5be22b..3f98aadf 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/BaseController/BaseSimpleRdController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Base/BaseSimpleRdController.cs
@@ -2,10 +2,8 @@
using Microsoft.Extensions.Localization;
using Yi.Framework.Common.Helper;
using Yi.Framework.Common.Models;
-using Yi.Framework.Interface;
+using Yi.Framework.Interface.Base;
using Yi.Framework.Language;
-using Yi.Framework.Model.Models;
-using Yi.Framework.Model.Query;
using Yi.Framework.Repository;
using Yi.Framework.WebCore.AttributeExtend;
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/AccountController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/AccountController.cs
similarity index 98%
rename from Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/AccountController.cs
rename to Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/AccountController.cs
index cb7199d8..ca30359f 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/AccountController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/AccountController.cs
@@ -11,13 +11,15 @@ using Yi.Framework.Common.Enum;
using Yi.Framework.Common.Helper;
using Yi.Framework.Common.Models;
using Yi.Framework.Core;
+using Yi.Framework.Core.Cache;
using Yi.Framework.DTOModel;
using Yi.Framework.Interface;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.RABC;
+using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
-using Yi.Framework.WebCore;
using Yi.Framework.WebCore.AttributeExtend;
using Yi.Framework.WebCore.AuthorizationPolicy;
+using Yi.Framework.WebCore.CommonExtend;
namespace Yi.Framework.ApiMicroservice.Controllers
{
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/ConfigController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/ConfigController.cs
similarity index 94%
rename from Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/ConfigController.cs
rename to Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/ConfigController.cs
index 9ef0398f..4242c75f 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/ConfigController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/ConfigController.cs
@@ -7,7 +7,8 @@ using System.Linq;
using System.Threading.Tasks;
using Yi.Framework.Common.Models;
using Yi.Framework.Interface;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.RABC;
+using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
using Yi.Framework.WebCore;
using Yi.Framework.WebCore.AttributeExtend;
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/DeptController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/DeptController.cs
similarity index 96%
rename from Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/DeptController.cs
rename to Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/DeptController.cs
index e6e74b00..99eebdfb 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/DeptController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/DeptController.cs
@@ -7,7 +7,8 @@ using System.Linq;
using System.Threading.Tasks;
using Yi.Framework.Common.Models;
using Yi.Framework.Interface;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.RABC;
+using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
using Yi.Framework.WebCore;
using Yi.Framework.WebCore.AttributeExtend;
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/DictionaryController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/DictionaryController.cs
similarity index 95%
rename from Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/DictionaryController.cs
rename to Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/DictionaryController.cs
index cb77be55..4f915135 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/DictionaryController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/DictionaryController.cs
@@ -8,7 +8,8 @@ using System.Threading.Tasks;
using Yi.Framework.Common.Helper;
using Yi.Framework.Common.Models;
using Yi.Framework.Interface;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.RABC;
+using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
using Yi.Framework.Service;
using Yi.Framework.WebCore;
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/DictionaryInfoController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/DictionaryInfoController.cs
similarity index 96%
rename from Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/DictionaryInfoController.cs
rename to Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/DictionaryInfoController.cs
index ac8fcec2..34c429dc 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/DictionaryInfoController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/DictionaryInfoController.cs
@@ -8,7 +8,8 @@ using System.Threading.Tasks;
using Yi.Framework.Common.Helper;
using Yi.Framework.Common.Models;
using Yi.Framework.Interface;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.RABC;
+using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
using Yi.Framework.Service;
using Yi.Framework.WebCore;
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/FileController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/FileController.cs
similarity index 99%
rename from Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/FileController.cs
rename to Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/FileController.cs
index 31b858b7..5da73d6a 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/FileController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/FileController.cs
@@ -14,8 +14,8 @@ using Yi.Framework.Common.Enum;
using Yi.Framework.Common.Helper;
using Yi.Framework.Common.Models;
using Yi.Framework.Core;
-using Yi.Framework.Interface;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.RABC;
+using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.WebCore;
namespace Yi.Framework.ApiMicroservice.Controllers
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/LogController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/LogController.cs
similarity index 96%
rename from Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/LogController.cs
rename to Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/LogController.cs
index ab1333dd..92aff1ef 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/LogController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/LogController.cs
@@ -7,7 +7,8 @@ using System.Linq;
using System.Threading.Tasks;
using Yi.Framework.Common.Models;
using Yi.Framework.Interface;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.RABC;
+using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
using Yi.Framework.WebCore;
using Yi.Framework.WebCore.AttributeExtend;
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/LoginLogController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/LoginLogController.cs
similarity index 94%
rename from Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/LoginLogController.cs
rename to Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/LoginLogController.cs
index 38503f04..294559d4 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/LoginLogController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/LoginLogController.cs
@@ -7,7 +7,8 @@ using System.Linq;
using System.Threading.Tasks;
using Yi.Framework.Common.Models;
using Yi.Framework.Interface;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.RABC;
+using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
using Yi.Framework.WebCore;
using Yi.Framework.WebCore.AttributeExtend;
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/MenuController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/MenuController.cs
similarity index 97%
rename from Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/MenuController.cs
rename to Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/MenuController.cs
index 619f35ee..148b24df 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/MenuController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/MenuController.cs
@@ -7,7 +7,8 @@ using System.Linq;
using System.Threading.Tasks;
using Yi.Framework.Common.Models;
using Yi.Framework.Interface;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.RABC;
+using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
using Yi.Framework.WebCore;
using Yi.Framework.WebCore.AttributeExtend;
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/OnlineController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/OnlineController.cs
similarity index 98%
rename from Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/OnlineController.cs
rename to Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/OnlineController.cs
index 654d5249..d2d4de64 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/OnlineController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/OnlineController.cs
@@ -14,7 +14,6 @@ using Yi.Framework.Common.Models;
using Yi.Framework.Core;
using Yi.Framework.DTOModel;
using Yi.Framework.Interface;
-using Yi.Framework.Model.Models;
using Yi.Framework.Repository;
using Yi.Framework.WebCore;
using Yi.Framework.WebCore.AttributeExtend;
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/OperationLogController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/OperationLogController.cs
similarity index 94%
rename from Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/OperationLogController.cs
rename to Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/OperationLogController.cs
index 86663cba..47dd2ea4 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/OperationLogController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/OperationLogController.cs
@@ -7,7 +7,8 @@ using System.Linq;
using System.Threading.Tasks;
using Yi.Framework.Common.Models;
using Yi.Framework.Interface;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.RABC;
+using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
using Yi.Framework.WebCore;
using Yi.Framework.WebCore.AttributeExtend;
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/PostController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/PostController.cs
similarity index 95%
rename from Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/PostController.cs
rename to Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/PostController.cs
index 81ae790c..be7d7232 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/PostController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/PostController.cs
@@ -7,7 +7,8 @@ using System.Linq;
using System.Threading.Tasks;
using Yi.Framework.Common.Models;
using Yi.Framework.Interface;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.RABC;
+using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
using Yi.Framework.WebCore;
using Yi.Framework.WebCore.AttributeExtend;
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/RoleController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/RoleController.cs
similarity index 98%
rename from Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/RoleController.cs
rename to Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/RoleController.cs
index de2f92a8..519ee379 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/RoleController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/RoleController.cs
@@ -8,7 +8,8 @@ using System.Threading.Tasks;
using Yi.Framework.Common.Models;
using Yi.Framework.DTOModel;
using Yi.Framework.Interface;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.RABC;
+using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
using Yi.Framework.Service;
using Yi.Framework.WebCore;
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/UserController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/UserController.cs
similarity index 98%
rename from Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/UserController.cs
rename to Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/UserController.cs
index a4753bf9..e28dc5a3 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/UserController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/RABC/UserController.cs
@@ -12,11 +12,12 @@ using Yi.Framework.Common.Helper;
using Yi.Framework.Common.Models;
using Yi.Framework.DTOModel;
using Yi.Framework.Interface;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.RABC;
+using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
-using Yi.Framework.WebCore;
using Yi.Framework.WebCore.AttributeExtend;
using Yi.Framework.WebCore.AuthorizationPolicy;
+using Yi.Framework.WebCore.CommonExtend;
namespace Yi.Framework.ApiMicroservice.Controllers
{
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Shop/CategoryController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Shop/CategoryController.cs
index cc47f38f..93a6f9bb 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Shop/CategoryController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Shop/CategoryController.cs
@@ -6,8 +6,8 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Yi.Framework.Common.Models;
-using Yi.Framework.Interface;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.SHOP;
+using Yi.Framework.Model.SHOP.Entitys;
using Yi.Framework.Repository;
using Yi.Framework.WebCore;
using Yi.Framework.WebCore.AttributeExtend;
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Shop/SkuController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Shop/SkuController.cs
index 600874f6..bfa4284c 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Shop/SkuController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Shop/SkuController.cs
@@ -8,7 +8,8 @@ using System.Threading.Tasks;
using Yi.Framework.Common.Enum;
using Yi.Framework.Common.Models;
using Yi.Framework.Interface;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.SHOP;
+using Yi.Framework.Model.SHOP.Entitys;
using Yi.Framework.Repository;
using Yi.Framework.WebCore;
using Yi.Framework.WebCore.AttributeExtend;
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Shop/SpecsController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Shop/SpecsController.cs
index c31c4c91..3607e9ea 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Shop/SpecsController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Shop/SpecsController.cs
@@ -6,8 +6,8 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Yi.Framework.Common.Models;
-using Yi.Framework.Interface;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.SHOP;
+using Yi.Framework.Model.SHOP.Entitys;
using Yi.Framework.Repository;
using Yi.Framework.WebCore;
using Yi.Framework.WebCore.AttributeExtend;
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Shop/SpecsGroupController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Shop/SpecsGroupController.cs
index 8e65d62e..3a2a196b 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Shop/SpecsGroupController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Shop/SpecsGroupController.cs
@@ -6,8 +6,8 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Yi.Framework.Common.Models;
-using Yi.Framework.Interface;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.SHOP;
+using Yi.Framework.Model.SHOP.Entitys;
using Yi.Framework.Repository;
using Yi.Framework.WebCore;
using Yi.Framework.WebCore.AttributeExtend;
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Shop/SpuController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Shop/SpuController.cs
index 48030c83..0bbcb69a 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Shop/SpuController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Shop/SpuController.cs
@@ -8,7 +8,8 @@ using System.Threading.Tasks;
using Yi.Framework.Common.Enum;
using Yi.Framework.Common.Models;
using Yi.Framework.Interface;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.SHOP;
+using Yi.Framework.Model.SHOP.Entitys;
using Yi.Framework.Repository;
using Yi.Framework.WebCore;
using Yi.Framework.WebCore.AttributeExtend;
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/TestController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/TestController.cs
index 3d3ad62e..bd5937d4 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/TestController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/TestController.cs
@@ -11,10 +11,13 @@ using Yi.Framework.Common.Attribute;
using Yi.Framework.Common.Const;
using Yi.Framework.Common.Models;
using Yi.Framework.Core;
+using Yi.Framework.Core.Cache;
+using Yi.Framework.Core.Quartz;
using Yi.Framework.Interface;
+using Yi.Framework.Interface.RABC;
using Yi.Framework.Job;
using Yi.Framework.Language;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
using Yi.Framework.Uow.Interceptors;
using Yi.Framework.WebCore;
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Program.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Program.cs
index 6245fd97..c2919db0 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Program.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Program.cs
@@ -10,7 +10,6 @@ using Microsoft.Extensions.Localization;
using Yi.Framework.WebCore.AttributeExtend;
using Yi.Framework.WebCore.SignalRHub;
using Hei.Captcha;
-using Yi.Framework.WebCore;
using Microsoft.Extensions.DependencyInjection;
using Yi.Framework.WebCore.DbExtend;
using IPTools.Core;
@@ -21,6 +20,8 @@ using Yi.Framework.WebCore.AutoFacExtend;
using AspectCore.Extensions.DependencyInjection;
using AspectCore.Extensions.Hosting;
using Yi.Framework.Uow.Interceptors;
+using Yi.Framework.WebCore.AspNetCoreExtensions;
+using Yi.Framework.WebCore.CommonExtend;
var builder = WebApplication.CreateBuilder(args);
builder.Configuration.AddCommandLine(args);
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db
index 20be0b0c..d44570fd 100644
Binary files a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db and b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db differ
diff --git a/Yi.Framework.Net6/Yi.Framework.Common/Base/NullValue.cs b/Yi.Framework.Net6/Yi.Framework.Common/Base/NullValue.cs
index 9aa7ab9b..de62622e 100644
--- a/Yi.Framework.Net6/Yi.Framework.Common/Base/NullValue.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Common/Base/NullValue.cs
@@ -1,4 +1,6 @@
-namespace System
+using System;
+
+namespace Yi.Framework.Common.Base
{
#region 无值定义
@@ -71,12 +73,12 @@
///
/// 字串的默认无值
///
- public static readonly string String = String.Empty;
+ public static readonly string String = string.Empty;
///
/// 一般对象的判断
///
- public const Object Object = null;
+ public const object Object = null;
}
#endregion
@@ -150,7 +152,7 @@
///
/// 待判断对象
/// 是否为空(true--真,false--假)
- public static bool IsNull(this String value)
+ public static bool IsNull(this string value)
{
if (string.IsNullOrEmpty(value) || string.IsNullOrWhiteSpace(value))
{
@@ -165,7 +167,7 @@
///
/// 待判断对象
/// 是否不为空(true--真,false--假)
- public static bool IsNotNull(this String value)
+ public static bool IsNotNull(this string value)
{
return !value.IsNull();
}
diff --git a/Yi.Framework.Net6/Yi.Framework.Common/Yi.Framework.Common.csproj b/Yi.Framework.Net6/Yi.Framework.Common/Yi.Framework.Common.csproj
index 6ea5c089..5b591087 100644
--- a/Yi.Framework.Net6/Yi.Framework.Common/Yi.Framework.Common.csproj
+++ b/Yi.Framework.Net6/Yi.Framework.Common/Yi.Framework.Common.csproj
@@ -5,6 +5,7 @@
+
diff --git a/Yi.Framework.Net6/Yi.Framework.Core/Cache/CacheInvoker.cs b/Yi.Framework.Net6/Yi.Framework.Core/Cache/CacheInvoker.cs
index 303a6e3f..8eeac052 100644
--- a/Yi.Framework.Net6/Yi.Framework.Core/Cache/CacheInvoker.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Core/Cache/CacheInvoker.cs
@@ -11,14 +11,14 @@ using Yi.Framework.Common.IOCOptions;
using CSRedis;
using static CSRedis.CSRedisClient;
-namespace Yi.Framework.Core
+namespace Yi.Framework.Core.Cache
{
public abstract class CacheInvoker
{
- public virtual bool Exits(string key)
+ public virtual bool Exits(string key)
{
- throw new NotImplementedException();
+ throw new NotImplementedException();
}
public virtual T Get(string key)
{
@@ -147,7 +147,7 @@ namespace Yi.Framework.Core
public virtual string[] Keys(string pattern)
{
- throw new NotImplementedException();
+ throw new NotImplementedException();
}
}
}
diff --git a/Yi.Framework.Net6/Yi.Framework.Core/Consul/AbstractConsulDispatcher.cs b/Yi.Framework.Net6/Yi.Framework.Core/Consul/AbstractConsulDispatcher.cs
index b603875c..47c18d09 100644
--- a/Yi.Framework.Net6/Yi.Framework.Core/Consul/AbstractConsulDispatcher.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Core/Consul/AbstractConsulDispatcher.cs
@@ -7,7 +7,7 @@ using System.Text;
using System.Threading.Tasks;
using Yi.Framework.Common.IOCOptions;
-namespace Yi.Framework.Core.ConsulExtend
+namespace Yi.Framework.Core.Consul
{
public abstract class AbstractConsulDispatcher
{
@@ -16,7 +16,7 @@ namespace Yi.Framework.Core.ConsulExtend
public AbstractConsulDispatcher(IOptionsMonitor consulClientOption)
{
- this._ConsulClientOption = consulClientOption.CurrentValue;
+ _ConsulClientOption = consulClientOption.CurrentValue;
}
///
@@ -28,7 +28,7 @@ namespace Yi.Framework.Core.ConsulExtend
{
Uri uri = new Uri(mappingUrl);
string serviceName = uri.Host;
- string addressPort = this.ChooseAddress(serviceName);
+ string addressPort = ChooseAddress(serviceName);
return $"{uri.Scheme}://{addressPort}{uri.PathAndQuery}";
}
@@ -36,8 +36,8 @@ namespace Yi.Framework.Core.ConsulExtend
{
ConsulClient client = new ConsulClient(c =>
{
- c.Address = new Uri($"http://{this._ConsulClientOption.IP}:{this._ConsulClientOption.Port}/");
- c.Datacenter = this._ConsulClientOption.Datacenter;
+ c.Address = new Uri($"http://{_ConsulClientOption.IP}:{_ConsulClientOption.Port}/");
+ c.Datacenter = _ConsulClientOption.Datacenter;
});
AgentService agentService = null;
//var response = client.Agent.Services().Result.Response;
@@ -59,10 +59,10 @@ namespace Yi.Framework.Core.ConsulExtend
{
serviceList.Add(new KeyValuePair(i.ToString(), entrys[i].Service));
}
- this._CurrentAgentServiceDictionary = serviceList.ToArray();
+ _CurrentAgentServiceDictionary = serviceList.ToArray();
- int index = this.GetIndex();
- agentService = this._CurrentAgentServiceDictionary[index].Value;
+ int index = GetIndex();
+ agentService = _CurrentAgentServiceDictionary[index].Value;
return $"{agentService.Address}:{agentService.Port}";
}
diff --git a/Yi.Framework.Net6/Yi.Framework.Core/Consul/AverageDispatcher.cs b/Yi.Framework.Net6/Yi.Framework.Core/Consul/AverageDispatcher.cs
index 905a6ea7..f5c43fb6 100644
--- a/Yi.Framework.Net6/Yi.Framework.Core/Consul/AverageDispatcher.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Core/Consul/AverageDispatcher.cs
@@ -6,7 +6,7 @@ using Consul;
using Microsoft.Extensions.Options;
using Yi.Framework.Common.IOCOptions;
-namespace Yi.Framework.Core.ConsulExtend
+namespace Yi.Framework.Core.Consul
{
///
/// 平均
@@ -23,7 +23,7 @@ namespace Yi.Framework.Core.ConsulExtend
}
set
{
- _iTotalCount = value >= Int32.MaxValue ? 0 : value;
+ _iTotalCount = value >= int.MaxValue ? 0 : value;
}
}
@@ -39,7 +39,7 @@ namespace Yi.Framework.Core.ConsulExtend
///
protected override int GetIndex()
{
- return new Random(iTotalCount++).Next(0, base._CurrentAgentServiceDictionary.Length);
+ return new Random(iTotalCount++).Next(0, _CurrentAgentServiceDictionary.Length);
}
}
}
diff --git a/Yi.Framework.Net6/Yi.Framework.Core/Consul/PollingDispatcher.cs b/Yi.Framework.Net6/Yi.Framework.Core/Consul/PollingDispatcher.cs
index 882d7fbc..02eb2d36 100644
--- a/Yi.Framework.Net6/Yi.Framework.Core/Consul/PollingDispatcher.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Core/Consul/PollingDispatcher.cs
@@ -6,7 +6,7 @@ using Consul;
using Microsoft.Extensions.Options;
using Yi.Framework.Common.IOCOptions;
-namespace Yi.Framework.Core.ConsulExtend
+namespace Yi.Framework.Core.Consul
{
///
/// 轮询
@@ -23,7 +23,7 @@ namespace Yi.Framework.Core.ConsulExtend
}
set
{
- _iTotalCount = value >= Int32.MaxValue ? 0 : value;
+ _iTotalCount = value >= int.MaxValue ? 0 : value;
}
}
@@ -39,7 +39,7 @@ namespace Yi.Framework.Core.ConsulExtend
///
protected override int GetIndex()
{
- return iTotalCount++ % base._CurrentAgentServiceDictionary.Length;
+ return iTotalCount++ % _CurrentAgentServiceDictionary.Length;
}
}
}
diff --git a/Yi.Framework.Net6/Yi.Framework.Core/Consul/WeightDispatcher.cs b/Yi.Framework.Net6/Yi.Framework.Core/Consul/WeightDispatcher.cs
index 41a215f8..ab399446 100644
--- a/Yi.Framework.Net6/Yi.Framework.Core/Consul/WeightDispatcher.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Core/Consul/WeightDispatcher.cs
@@ -6,7 +6,7 @@ using Consul;
using Microsoft.Extensions.Options;
using Yi.Framework.Common.IOCOptions;
-namespace Yi.Framework.Core.ConsulExtend
+namespace Yi.Framework.Core.Consul
{
///
/// 权重
@@ -23,7 +23,7 @@ namespace Yi.Framework.Core.ConsulExtend
}
set
{
- _iTotalCount = value >= Int32.MaxValue ? 0 : value;
+ _iTotalCount = value >= int.MaxValue ? 0 : value;
}
}
public WeightDispatcher(IOptionsMonitor consulClientOption) : base(consulClientOption)
@@ -36,17 +36,17 @@ namespace Yi.Framework.Core.ConsulExtend
{
ConsulClient client = new ConsulClient(c =>
{
- c.Address = new Uri($"http://{base._ConsulClientOption.IP}:{base._ConsulClientOption.Port}/");
- c.Datacenter = base._ConsulClientOption.Datacenter;
+ c.Address = new Uri($"http://{_ConsulClientOption.IP}:{_ConsulClientOption.Port}/");
+ c.Datacenter = _ConsulClientOption.Datacenter;
});
AgentService agentService = null;
var response = client.Agent.Services().Result.Response;
- this._CurrentAgentServiceDictionary = response.Where(s => s.Value.Service.Equals(serviceName, StringComparison.OrdinalIgnoreCase)).ToArray();
+ _CurrentAgentServiceDictionary = response.Where(s => s.Value.Service.Equals(serviceName, StringComparison.OrdinalIgnoreCase)).ToArray();
var serviceDictionaryNew = new List();
- foreach (var service in base._CurrentAgentServiceDictionary)
+ foreach (var service in _CurrentAgentServiceDictionary)
{
serviceDictionaryNew.AddRange(Enumerable.Repeat(service.Value, int.TryParse(service.Value.Tags?[0], out int iWeight) ? 1 : iWeight));
}
diff --git a/Yi.Framework.Net6/Yi.Framework.Core/JwtInvoker.cs b/Yi.Framework.Net6/Yi.Framework.Core/JwtInvoker.cs
index 6742f5ae..1f444409 100644
--- a/Yi.Framework.Net6/Yi.Framework.Core/JwtInvoker.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Core/JwtInvoker.cs
@@ -10,7 +10,7 @@ using System.Text;
using System.Threading.Tasks;
using Yi.Framework.Common.Const;
using Yi.Framework.Common.IOCOptions;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Model.RABC.Entitys;
using JwtRegisteredClaimNames = Microsoft.IdentityModel.JsonWebTokens.JwtRegisteredClaimNames;
namespace Yi.Framework.Core
diff --git a/Yi.Framework.Net6/Yi.Framework.Core/Quartz/QuartzInvoker.cs b/Yi.Framework.Net6/Yi.Framework.Core/Quartz/QuartzInvoker.cs
index 7cbd6314..51cb882d 100644
--- a/Yi.Framework.Net6/Yi.Framework.Core/Quartz/QuartzInvoker.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Core/Quartz/QuartzInvoker.cs
@@ -10,7 +10,7 @@ using System.Threading.Tasks;
using Yi.Framework.Common.Helper;
using Yi.Framework.Job;
-namespace Yi.Framework.Core
+namespace Yi.Framework.Core.Quartz
{
public class QuartzInvoker
{
diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/RoleInfoDto.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/RoleInfoDto.cs
index 7d972ee3..977c1218 100644
--- a/Yi.Framework.Net6/Yi.Framework.DTOModel/RoleInfoDto.cs
+++ b/Yi.Framework.Net6/Yi.Framework.DTOModel/RoleInfoDto.cs
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Model.RABC.Entitys;
namespace Yi.Framework.DTOModel
{
diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/UserInfoDto.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/UserInfoDto.cs
index 983e7135..87487498 100644
--- a/Yi.Framework.Net6/Yi.Framework.DTOModel/UserInfoDto.cs
+++ b/Yi.Framework.Net6/Yi.Framework.DTOModel/UserInfoDto.cs
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Model.RABC.Entitys;
namespace Yi.Framework.DTOModel
{
diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/UserRoleMenuDto.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/UserRoleMenuDto.cs
index 490a6e70..51c7ebbe 100644
--- a/Yi.Framework.Net6/Yi.Framework.DTOModel/UserRoleMenuDto.cs
+++ b/Yi.Framework.Net6/Yi.Framework.DTOModel/UserRoleMenuDto.cs
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Model.RABC.Entitys;
namespace Yi.Framework.DTOModel
{
diff --git a/Yi.Framework.Net6/Yi.Framework.ElasticSearchProcessor/Program.cs b/Yi.Framework.Net6/Yi.Framework.ElasticSearchProcessor/Program.cs
index b0e05774..58532533 100644
--- a/Yi.Framework.Net6/Yi.Framework.ElasticSearchProcessor/Program.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ElasticSearchProcessor/Program.cs
@@ -5,8 +5,8 @@ using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using System;
using Yi.Framework.WebCore;
+using Yi.Framework.WebCore.AspNetCoreExtensions;
using Yi.Framework.WebCore.BuilderExtend;
-using Yi.Framework.WebCore.MiddlewareExtend;
namespace Yi.Framework.ElasticSearchProcessor
{
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/BBS/IAgreeService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/BBS/IAgreeService.cs
new file mode 100644
index 00000000..23f34823
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/BBS/IAgreeService.cs
@@ -0,0 +1,15 @@
+using System.Collections.Generic;
+using System.Threading.Tasks;
+using Yi.Framework.Common.Models;
+using Yi.Framework.Interface.Base;
+using Yi.Framework.Model.BBS.Entitys;
+using Yi.Framework.Repository;
+
+namespace Yi.Framework.Interface.BBS
+{
+ public partial interface IAgreeService : IBaseService
+ {
+ Task OperateAsync(long articleOrCommentId, long userId);
+
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IArticleService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/BBS/IArticleService.cs
similarity index 57%
rename from Yi.Framework.Net6/Yi.Framework.Interface/IArticleService.cs
rename to Yi.Framework.Net6/Yi.Framework.Interface/BBS/IArticleService.cs
index e2eb4c5f..ade0e8f8 100644
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IArticleService.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/BBS/IArticleService.cs
@@ -1,13 +1,15 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Yi.Framework.Common.Models;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.Base;
+using Yi.Framework.Model.BBS.Entitys;
using Yi.Framework.Repository;
-namespace Yi.Framework.Interface
+namespace Yi.Framework.Interface.BBS
{
- public partial interface IArticleService:IBaseService
+ public partial interface IArticleService:IBaseService
{
Task>> SelctPageList(ArticleEntity eneity, PageParModel page);
}
+
}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/BBS/ICommentService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/BBS/ICommentService.cs
new file mode 100644
index 00000000..e822ffff
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/BBS/ICommentService.cs
@@ -0,0 +1,12 @@
+using System.Threading.Tasks;
+using Yi.Framework.Interface.Base;
+using Yi.Framework.Model.BBS.Entitys;
+using Yi.Framework.Repository;
+
+namespace Yi.Framework.Interface.BBS
+{
+ public partial interface ICommentService:IBaseService
+ {
+ Task AddAsync(CommentEntity comment);
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/Base/Crud/IApplicationService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/Base/Crud/IApplicationService.cs
new file mode 100644
index 00000000..510ea025
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/Base/Crud/IApplicationService.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Yi.Framework.Interface.Base.Crud
+{
+ public interface IApplicationService
+ {
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/Base/Crud/ICreateAppService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/Base/Crud/ICreateAppService.cs
new file mode 100644
index 00000000..26671aee
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/Base/Crud/ICreateAppService.cs
@@ -0,0 +1,21 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Yi.Framework.Interface.Base.Crud
+{
+ public interface ICreateAppService
+ : ICreateAppService
+ {
+
+ }
+
+
+ public interface ICreateAppService : IApplicationService
+ {
+ Task CreateAsync(TCreateInputDto dto);
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/Base/Crud/ICreateUpdateAppService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/Base/Crud/ICreateUpdateAppService.cs
new file mode 100644
index 00000000..67e89268
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/Base/Crud/ICreateUpdateAppService.cs
@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Yi.Framework.Interface.Base.Crud
+{
+ public interface ICreateUpdateAppService
+ : ICreateUpdateAppService
+ {
+
+ }
+
+ public interface ICreateUpdateAppService
+ : ICreateUpdateAppService
+ {
+
+ }
+
+ public interface ICreateUpdateAppService
+ : ICreateAppService,
+ IUpdateAppService
+ {
+
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/Base/Crud/ICrudAppService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/Base/Crud/ICrudAppService.cs
new file mode 100644
index 00000000..78634aca
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/Base/Crud/ICrudAppService.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Yi.Framework.Interface.Base.Crud
+{
+ public interface ICrudAppService
+ : ICrudAppService
+ {
+
+ }
+
+ public interface ICrudAppService
+ : ICrudAppService
+ {
+
+ }
+
+ public interface ICrudAppService
+ : ICrudAppService
+ {
+
+ }
+
+ public interface ICrudAppService
+ : IReadOnlyAppService,
+ ICreateUpdateAppService,
+ IDeleteAppService
+ {
+
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/Base/Crud/IDeleteAppService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/Base/Crud/IDeleteAppService.cs
new file mode 100644
index 00000000..2db68eb6
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/Base/Crud/IDeleteAppService.cs
@@ -0,0 +1,13 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Yi.Framework.Interface.Base.Crud
+{
+ public interface IDeleteAppService : IApplicationService
+ {
+ Task DeleteAsync(IEnumerable ids);
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/Base/Crud/IReadOnlyAppService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/Base/Crud/IReadOnlyAppService.cs
new file mode 100644
index 00000000..3efb6568
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/Base/Crud/IReadOnlyAppService.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Linq.Expressions;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Yi.Framework.Interface.Base.Crud
+{
+
+ public interface IReadOnlyAppService : IReadOnlyAppService
+ {
+ }
+
+ public interface IReadOnlyAppService : IApplicationService
+ {
+ ///
+ /// 根据Id获取数据
+ ///
+ ///
+ ///
+ Task GetByIdAsync(TKey id);
+
+
+ ///
+ /// 根据url参数查询
+ ///
+ ///
+ ///
+ //Task> GetByUrl(List input = null);
+ }
+
+}
+
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/Base/Crud/IUpdateAppService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/Base/Crud/IUpdateAppService.cs
new file mode 100644
index 00000000..f1c943e1
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/Base/Crud/IUpdateAppService.cs
@@ -0,0 +1,18 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Yi.Framework.Interface.Base.Crud
+{
+ public interface IUpdateAppService
+ : IUpdateAppService
+ {
+
+ }
+ public interface IUpdateAppService : IApplicationService
+ {
+ Task UpdateAsync(TKey id, TUpdateInputDto dto);
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IBaseService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/Base/IBaseService.cs
similarity index 64%
rename from Yi.Framework.Net6/Yi.Framework.Interface/IBaseService.cs
rename to Yi.Framework.Net6/Yi.Framework.Interface/Base/IBaseService.cs
index c0611af0..c7a5cab5 100644
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IBaseService.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/Base/IBaseService.cs
@@ -3,12 +3,11 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
-using Yi.Framework.Model.Models;
using Yi.Framework.Repository;
-namespace Yi.Framework.Interface
+namespace Yi.Framework.Interface.Base
{
- public interface IBaseService where T: class,new()
+ public interface IBaseService where T : class, new()
{
public IRepository _repository { get; set; }
}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IAgreeService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IAgreeService.cs
deleted file mode 100644
index 585a7d66..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IAgreeService.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System.Threading.Tasks;
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface IAgreeService : IBaseService
- {
- Task OperateAsync(long articleOrCommentId, long userId);
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/ICommentService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/ICommentService.cs
deleted file mode 100644
index a2743b97..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/ICommentService.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System.Threading.Tasks;
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface ICommentService
- {
- Task AddAsync(CommentEntity comment);
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IAgreeService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IAgreeService.cs
deleted file mode 100644
index 80309158..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IAgreeService.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System.Threading.Tasks;
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface IAgreeService : IBaseService
- {
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IArticleService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IArticleService.cs
deleted file mode 100644
index ea7137fb..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IArticleService.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface IArticleService:IBaseService
- {
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ICategoryService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ICategoryService.cs
deleted file mode 100644
index 88833ca8..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ICategoryService.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface ICategoryService:IBaseService
- {
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ICommentService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ICommentService.cs
deleted file mode 100644
index 5005fd1a..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ICommentService.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface ICommentService:IBaseService
- {
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IConfigService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IConfigService.cs
deleted file mode 100644
index d1f8d435..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IConfigService.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface IConfigService:IBaseService
- {
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IDeptService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IDeptService.cs
deleted file mode 100644
index cae8ca25..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IDeptService.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface IDeptService:IBaseService
- {
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IDictionaryInfoService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IDictionaryInfoService.cs
deleted file mode 100644
index 7bf4b670..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IDictionaryInfoService.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface IDictionaryInfoService:IBaseService
- {
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IDictionaryService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IDictionaryService.cs
deleted file mode 100644
index 6fbea5da..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IDictionaryService.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface IDictionaryService:IBaseService
- {
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IFileService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IFileService.cs
deleted file mode 100644
index 044a213e..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IFileService.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface IFileService:IBaseService
- {
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ILogService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ILogService.cs
deleted file mode 100644
index dc8bf5c6..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ILogService.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface ILogService:IBaseService
- {
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ILoginLogService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ILoginLogService.cs
deleted file mode 100644
index 95f35cc8..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ILoginLogService.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System.Collections.Generic;
-using System.Threading.Tasks;
-using Yi.Framework.Common.Models;
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface ILoginLogService : IBaseService
- {
-
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IMenuService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IMenuService.cs
deleted file mode 100644
index 413a0ade..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IMenuService.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface IMenuService:IBaseService
- {
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IOperationLogService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IOperationLogService.cs
deleted file mode 100644
index 54073186..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IOperationLogService.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System.Collections.Generic;
-using System.Threading.Tasks;
-using Yi.Framework.Common.Models;
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface IOperationLogService : IBaseService
- {
-
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IPostService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IPostService.cs
deleted file mode 100644
index 7a512f14..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IPostService.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface IPostService:IBaseService
- {
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IRoleDeptService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IRoleDeptService.cs
deleted file mode 100644
index 4ab659ea..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IRoleDeptService.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface IRoleDeptService:IBaseService
- {
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IRoleMenuService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IRoleMenuService.cs
deleted file mode 100644
index a9a7479a..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IRoleMenuService.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface IRoleMenuService:IBaseService
- {
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IRoleService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IRoleService.cs
deleted file mode 100644
index 10846b67..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IRoleService.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface IRoleService:IBaseService
- {
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ISkuService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ISkuService.cs
deleted file mode 100644
index 5adf4d8f..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ISkuService.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface ISkuService:IBaseService
- {
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ISpecsGroupService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ISpecsGroupService.cs
deleted file mode 100644
index f7bb04e6..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ISpecsGroupService.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface ISpecsGroupService:IBaseService
- {
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ISpecsService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ISpecsService.cs
deleted file mode 100644
index 174689d2..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ISpecsService.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface ISpecsService:IBaseService
- {
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ISpuService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ISpuService.cs
deleted file mode 100644
index 774a4cab..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ISpuService.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface ISpuService:IBaseService
- {
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ITenantService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ITenantService.cs
deleted file mode 100644
index 31f8a4a9..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/ITenantService.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface ITenantService:IBaseService
- {
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IUserPostService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IUserPostService.cs
deleted file mode 100644
index 9caf7f6e..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IUserPostService.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface IUserPostService:IBaseService
- {
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IUserRoleService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IUserRoleService.cs
deleted file mode 100644
index a299d0af..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IUserRoleService.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface IUserRoleService:IBaseService
- {
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IUserService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IUserService.cs
deleted file mode 100644
index 9d12e09a..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IServiceTemplate/IUserService.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using Yi.Framework.Model.Models;
-using Yi.Framework.Repository;
-
-namespace Yi.Framework.Interface
-{
- public partial interface IUserService:IBaseService
- {
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IConfigService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IConfigService.cs
similarity index 57%
rename from Yi.Framework.Net6/Yi.Framework.Interface/IConfigService.cs
rename to Yi.Framework.Net6/Yi.Framework.Interface/RABC/IConfigService.cs
index 3edb9a3c..d5ef2a2a 100644
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IConfigService.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IConfigService.cs
@@ -1,12 +1,13 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Yi.Framework.Common.Models;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.Base;
+using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
-namespace Yi.Framework.Interface
+namespace Yi.Framework.Interface.RABC
{
- public partial interface IConfigService:IBaseService
+ public partial interface IConfigService:IBaseService
{
Task>> SelctPageList(ConfigEntity config, PageParModel page);
}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IDeptService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IDeptService.cs
similarity index 75%
rename from Yi.Framework.Net6/Yi.Framework.Interface/IDeptService.cs
rename to Yi.Framework.Net6/Yi.Framework.Interface/RABC/IDeptService.cs
index bbb1a275..34bd8c84 100644
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IDeptService.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IDeptService.cs
@@ -1,12 +1,12 @@
using System.Collections.Generic;
using System.Threading.Tasks;
-using Yi.Framework.Common.Models;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.Base;
+using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
-namespace Yi.Framework.Interface
+namespace Yi.Framework.Interface.RABC
{
- public partial interface IDeptService:IBaseService
+ public partial interface IDeptService:IBaseService
{
///
/// 动态条件查询
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IDictionaryInfoService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IDictionaryInfoService.cs
similarity index 57%
rename from Yi.Framework.Net6/Yi.Framework.Interface/IDictionaryInfoService.cs
rename to Yi.Framework.Net6/Yi.Framework.Interface/RABC/IDictionaryInfoService.cs
index 1244d240..38acce88 100644
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IDictionaryInfoService.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IDictionaryInfoService.cs
@@ -1,12 +1,13 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Yi.Framework.Common.Models;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.Base;
+using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
-namespace Yi.Framework.Interface
+namespace Yi.Framework.Interface.RABC
{
- public partial interface IDictionaryInfoService:IBaseService
+ public partial interface IDictionaryInfoService:IBaseService
{
Task>> SelctPageList(DictionaryInfoEntity dicInfo, PageParModel page);
}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IDictionaryService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IDictionaryService.cs
similarity index 70%
rename from Yi.Framework.Net6/Yi.Framework.Interface/IDictionaryService.cs
rename to Yi.Framework.Net6/Yi.Framework.Interface/RABC/IDictionaryService.cs
index 368bd3e6..88808e4c 100644
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IDictionaryService.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IDictionaryService.cs
@@ -1,12 +1,13 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Yi.Framework.Common.Models;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.Base;
+using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
-namespace Yi.Framework.Interface
+namespace Yi.Framework.Interface.RABC
{
- public partial interface IDictionaryService:IBaseService
+ public partial interface IDictionaryService:IBaseService
{
///
/// 动态条件分页查询
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IFileService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IFileService.cs
new file mode 100644
index 00000000..1a4f7389
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IFileService.cs
@@ -0,0 +1,10 @@
+using Yi.Framework.Interface.Base;
+using Yi.Framework.Model.RABC.Entitys;
+using Yi.Framework.Repository;
+
+namespace Yi.Framework.Interface.RABC
+{
+ public partial interface IFileService : IBaseService
+ {
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/ILogService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/ILogService.cs
similarity index 56%
rename from Yi.Framework.Net6/Yi.Framework.Interface/ILogService.cs
rename to Yi.Framework.Net6/Yi.Framework.Interface/RABC/ILogService.cs
index 911d4b4f..691da556 100644
--- a/Yi.Framework.Net6/Yi.Framework.Interface/ILogService.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/ILogService.cs
@@ -1,11 +1,12 @@
using System.Collections.Generic;
using System.Threading.Tasks;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.Base;
+using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
-namespace Yi.Framework.Interface
+namespace Yi.Framework.Interface.RABC
{
- public partial interface ILogService
+ public partial interface ILogService:IBaseService
{
Task> AddListTest(List logEntities);
Task> GetListTest();
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/ILoginLogService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/ILoginLogService.cs
similarity index 57%
rename from Yi.Framework.Net6/Yi.Framework.Interface/ILoginLogService.cs
rename to Yi.Framework.Net6/Yi.Framework.Interface/RABC/ILoginLogService.cs
index b1f07f92..ea903b91 100644
--- a/Yi.Framework.Net6/Yi.Framework.Interface/ILoginLogService.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/ILoginLogService.cs
@@ -1,12 +1,13 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Yi.Framework.Common.Models;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.Base;
+using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
-namespace Yi.Framework.Interface
+namespace Yi.Framework.Interface.RABC
{
- public partial interface ILoginLogService:IBaseService
+ public partial interface ILoginLogService : IBaseService
{
Task>> SelctPageList(LoginLogEntity loginLog, PageParModel page);
}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IMenuService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IMenuService.cs
similarity index 71%
rename from Yi.Framework.Net6/Yi.Framework.Interface/IMenuService.cs
rename to Yi.Framework.Net6/Yi.Framework.Interface/RABC/IMenuService.cs
index 19592ce7..ef35fc19 100644
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IMenuService.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IMenuService.cs
@@ -1,12 +1,12 @@
using System.Collections.Generic;
using System.Threading.Tasks;
-using Yi.Framework.Common.Models;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.Base;
+using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
-namespace Yi.Framework.Interface
+namespace Yi.Framework.Interface.RABC
{
- public partial interface IMenuService:IBaseService
+ public partial interface IMenuService:IBaseService
{
Task> GetMenuTreeAsync();
Task> SelctGetList(MenuEntity menu);
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IOperationLogService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IOperationLogService.cs
similarity index 57%
rename from Yi.Framework.Net6/Yi.Framework.Interface/IOperationLogService.cs
rename to Yi.Framework.Net6/Yi.Framework.Interface/RABC/IOperationLogService.cs
index 8e7823c8..95c53a39 100644
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IOperationLogService.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IOperationLogService.cs
@@ -1,12 +1,13 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Yi.Framework.Common.Models;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.Base;
+using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
-namespace Yi.Framework.Interface
+namespace Yi.Framework.Interface.RABC
{
- public partial interface IOperationLogService:IBaseService
+ public partial interface IOperationLogService : IBaseService
{
Task>> SelctPageList(OperationLogEntity operationLog, PageParModel page);
}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IPostService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IPostService.cs
similarity index 70%
rename from Yi.Framework.Net6/Yi.Framework.Interface/IPostService.cs
rename to Yi.Framework.Net6/Yi.Framework.Interface/RABC/IPostService.cs
index 2402b5ff..cc8dbd79 100644
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IPostService.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IPostService.cs
@@ -1,12 +1,13 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Yi.Framework.Common.Models;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.Base;
+using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
-namespace Yi.Framework.Interface
+namespace Yi.Framework.Interface.RABC
{
- public partial interface IPostService:IBaseService
+ public partial interface IPostService:IBaseService
{
///
/// 动态条件分页查询
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IRoleDeptService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IRoleDeptService.cs
new file mode 100644
index 00000000..9e3d8079
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IRoleDeptService.cs
@@ -0,0 +1,10 @@
+using Yi.Framework.Interface.Base;
+using Yi.Framework.Model.RABC.Entitys;
+using Yi.Framework.Repository;
+
+namespace Yi.Framework.Interface.RABC
+{
+ public partial interface IRoleDeptService : IBaseService
+ {
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IRoleMenuService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IRoleMenuService.cs
new file mode 100644
index 00000000..f6a896c4
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IRoleMenuService.cs
@@ -0,0 +1,10 @@
+using Yi.Framework.Interface.Base;
+using Yi.Framework.Model.RABC.Entitys;
+using Yi.Framework.Repository;
+
+namespace Yi.Framework.Interface.RABC
+{
+ public partial interface IRoleMenuService : IBaseService
+ {
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IRoleService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IRoleService.cs
similarity index 90%
rename from Yi.Framework.Net6/Yi.Framework.Interface/IRoleService.cs
rename to Yi.Framework.Net6/Yi.Framework.Interface/RABC/IRoleService.cs
index 6db2848c..5ffc5b3b 100644
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IRoleService.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IRoleService.cs
@@ -2,12 +2,13 @@
using System.Threading.Tasks;
using Yi.Framework.Common.Models;
using Yi.Framework.DTOModel;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.Base;
+using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
-namespace Yi.Framework.Interface
+namespace Yi.Framework.Interface.RABC
{
- public partial interface IRoleService
+ public partial interface IRoleService:IBaseService
{
///
/// DbTest
@@ -49,7 +50,7 @@ namespace Yi.Framework.Interface
///
///
///
- Task AddInfo(RoleInfoDto roleDto);
+ Task AddInfo(RoleInfoDto roleDto);
///
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/RABC/ITenantService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/ITenantService.cs
new file mode 100644
index 00000000..1972e2f2
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/ITenantService.cs
@@ -0,0 +1,10 @@
+using Yi.Framework.Interface.Base;
+using Yi.Framework.Model.RABC.Entitys;
+using Yi.Framework.Repository;
+
+namespace Yi.Framework.Interface.RABC
+{
+ public partial interface ITenantService : IBaseService
+ {
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IUserPostService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IUserPostService.cs
new file mode 100644
index 00000000..8a31e780
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IUserPostService.cs
@@ -0,0 +1,10 @@
+using Yi.Framework.Interface.Base;
+using Yi.Framework.Model.RABC.Entitys;
+using Yi.Framework.Repository;
+
+namespace Yi.Framework.Interface.RABC
+{
+ public partial interface IUserPostService : IBaseService
+ {
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IUserRoleService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IUserRoleService.cs
new file mode 100644
index 00000000..ae464cd1
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IUserRoleService.cs
@@ -0,0 +1,10 @@
+using Yi.Framework.Interface.Base;
+using Yi.Framework.Model.RABC.Entitys;
+using Yi.Framework.Repository;
+
+namespace Yi.Framework.Interface.RABC
+{
+ public partial interface IUserRoleService : IBaseService
+ {
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IUserService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IUserService.cs
similarity index 91%
rename from Yi.Framework.Net6/Yi.Framework.Interface/IUserService.cs
rename to Yi.Framework.Net6/Yi.Framework.Interface/RABC/IUserService.cs
index 94bf093a..7fda956d 100644
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IUserService.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IUserService.cs
@@ -1,15 +1,17 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Threading.Tasks;
+using System;
using Yi.Framework.Common.Models;
using Yi.Framework.DTOModel;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.Base;
+using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
-namespace Yi.Framework.Interface
+namespace Yi.Framework.Interface.RABC
{
- public partial interface IUserService
+ public partial interface IUserService:IBaseService
{
+
///
/// 关联角色测试
///
@@ -74,7 +76,7 @@ namespace Yi.Framework.Interface
///
///
///
- Task>> SelctPageList(UserEntity user, PageParModel page,long ? deptId);
+ Task>> SelctPageList(UserEntity user, PageParModel page, long? deptId);
///
@@ -97,7 +99,7 @@ namespace Yi.Framework.Interface
///
///
///
- Task RestPassword(long userId,string password );
+ Task RestPassword(long userId, string password);
///
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/SHOP/ICategoryService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/SHOP/ICategoryService.cs
new file mode 100644
index 00000000..0155f9ae
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/SHOP/ICategoryService.cs
@@ -0,0 +1,10 @@
+using Yi.Framework.Interface.Base;
+using Yi.Framework.Model.SHOP.Entitys;
+using Yi.Framework.Repository;
+
+namespace Yi.Framework.Interface.SHOP
+{
+ public partial interface ICategoryService : IBaseService
+ {
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/ISkuService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/SHOP/ISkuService.cs
similarity index 71%
rename from Yi.Framework.Net6/Yi.Framework.Interface/ISkuService.cs
rename to Yi.Framework.Net6/Yi.Framework.Interface/SHOP/ISkuService.cs
index f1766465..9790870a 100644
--- a/Yi.Framework.Net6/Yi.Framework.Interface/ISkuService.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/SHOP/ISkuService.cs
@@ -1,12 +1,13 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Yi.Framework.Common.Models;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.Base;
+using Yi.Framework.Model.SHOP.Entitys;
using Yi.Framework.Repository;
-namespace Yi.Framework.Interface
+namespace Yi.Framework.Interface.SHOP
{
- public partial interface ISkuService:IBaseService
+ public partial interface ISkuService:IBaseService
{
///
/// 动态条件分页查询
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/SHOP/ISpecsGroupService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/SHOP/ISpecsGroupService.cs
new file mode 100644
index 00000000..526a8ef1
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/SHOP/ISpecsGroupService.cs
@@ -0,0 +1,10 @@
+using Yi.Framework.Interface.Base;
+using Yi.Framework.Model.SHOP.Entitys;
+using Yi.Framework.Repository;
+
+namespace Yi.Framework.Interface.SHOP
+{
+ public partial interface ISpecsGroupService : IBaseService
+ {
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/SHOP/ISpecsService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/SHOP/ISpecsService.cs
new file mode 100644
index 00000000..b61c723a
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/SHOP/ISpecsService.cs
@@ -0,0 +1,10 @@
+using Yi.Framework.Interface.Base;
+using Yi.Framework.Model.SHOP.Entitys;
+using Yi.Framework.Repository;
+
+namespace Yi.Framework.Interface.SHOP
+{
+ public partial interface ISpecsService : IBaseService
+ {
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/ISpuService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/SHOP/ISpuService.cs
similarity index 71%
rename from Yi.Framework.Net6/Yi.Framework.Interface/ISpuService.cs
rename to Yi.Framework.Net6/Yi.Framework.Interface/SHOP/ISpuService.cs
index 01532604..7dc30937 100644
--- a/Yi.Framework.Net6/Yi.Framework.Interface/ISpuService.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/SHOP/ISpuService.cs
@@ -1,12 +1,13 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Yi.Framework.Common.Models;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.Base;
+using Yi.Framework.Model.SHOP.Entitys;
using Yi.Framework.Repository;
-namespace Yi.Framework.Interface
+namespace Yi.Framework.Interface.SHOP
{
- public partial interface ISpuService:IBaseService
+ public partial interface ISpuService:IBaseService
{
///
/// 动态条件分页查询
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ArticleEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ArticleEntity.cs
deleted file mode 100644
index 0f9cb8ca..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/ArticleEntity.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- public partial class ArticleEntity:IBaseModelEntity
- {
- [Navigate(NavigateType.OneToOne,nameof(UserId))]
- public UserEntity? User { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/AgreeEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/BBS/Entitys/AgreeEntity.cs
similarity index 50%
rename from Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/AgreeEntity.cs
rename to Yi.Framework.Net6/Yi.Framework.Model/BBS/Entitys/AgreeEntity.cs
index 03654c49..ce03e86f 100644
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/AgreeEntity.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Model/BBS/Entitys/AgreeEntity.cs
@@ -3,7 +3,8 @@ using System.Collections.Generic;
using System.Linq;
using System.Text.Json.Serialization;
using SqlSugar;
-namespace Yi.Framework.Model.Models
+
+namespace Yi.Framework.Model.BBS.Entitys
{
///
/// 点赞表
@@ -13,35 +14,35 @@ namespace Yi.Framework.Model.Models
{
public AgreeEntity()
{
- this.CreateTime = DateTime.Now;
+ CreateTime = DateTime.Now;
}
[JsonConverter(typeof(ValueToStringConverter))]
- [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true )]
- public long Id { get; set; }
+ [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
+ public long Id { get; set; }
///
/// 用户id
///
- [SugarColumn(ColumnName="UserId" )]
- public long? UserId { get; set; }
+ [SugarColumn(ColumnName = "UserId")]
+ public long? UserId { get; set; }
///
/// 文章或评论id
///
- [SugarColumn(ColumnName="ArticleOrCommentId" )]
- public long? ArticleOrCommentId { get; set; }
+ [SugarColumn(ColumnName = "ArticleOrCommentId")]
+ public long? ArticleOrCommentId { get; set; }
///
/// 创建者
///
- [SugarColumn(ColumnName="CreateUser" )]
- public long? CreateUser { get; set; }
+ [SugarColumn(ColumnName = "CreateUser")]
+ public long? CreateUser { get; set; }
///
/// 创建时间
///
- [SugarColumn(ColumnName="CreateTime" )]
- public DateTime? CreateTime { get; set; }
+ [SugarColumn(ColumnName = "CreateTime")]
+ public DateTime? CreateTime { get; set; }
///
/// 租户Id
///
- [SugarColumn(ColumnName="TenantId" )]
- public long? TenantId { get; set; }
+ [SugarColumn(ColumnName = "TenantId")]
+ public long? TenantId { get; set; }
}
}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/BBS/Entitys/ArticleEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/BBS/Entitys/ArticleEntity.cs
new file mode 100644
index 00000000..40c87ee7
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/BBS/Entitys/ArticleEntity.cs
@@ -0,0 +1,94 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text.Json.Serialization;
+using SqlSugar;
+using Yi.Framework.Model.Base;
+using Yi.Framework.Model.RABC.Entitys;
+
+namespace Yi.Framework.Model.BBS.Entitys
+{
+ ///
+ /// 文章表
+ ///
+ [SugarTable("Article")]
+ public partial class ArticleEntity : IBaseModelEntity
+ {
+ public ArticleEntity()
+ {
+ CreateTime = DateTime.Now;
+ AgreeNum = 0;
+ }
+ [JsonConverter(typeof(ValueToStringConverter))]
+ [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
+ public long Id { get; set; }
+ ///
+ /// 文章标题
+ ///
+ [SugarColumn(ColumnName = "Title")]
+ public string? Title { get; set; }
+ ///
+ /// 文章内容
+ ///
+ [SugarColumn(ColumnName = "Content")]
+ public string? Content { get; set; }
+ ///
+ /// 用户id
+ ///
+ [SugarColumn(ColumnName = "UserId")]
+ public long? UserId { get; set; }
+ ///
+ /// 创建者
+ ///
+ [SugarColumn(ColumnName = "CreateUser")]
+ public long? CreateUser { get; set; }
+ ///
+ /// 创建时间
+ ///
+ [SugarColumn(ColumnName = "CreateTime")]
+ public DateTime? CreateTime { get; set; }
+ ///
+ /// 修改者
+ ///
+ [SugarColumn(ColumnName = "ModifyUser")]
+ public long? ModifyUser { get; set; }
+ ///
+ /// 修改时间
+ ///
+ [SugarColumn(ColumnName = "ModifyTime")]
+ public DateTime? ModifyTime { get; set; }
+ ///
+ /// 是否删除
+ ///
+ [SugarColumn(ColumnName = "IsDeleted")]
+ public bool? IsDeleted { get; set; }
+ ///
+ /// 租户Id
+ ///
+ [SugarColumn(ColumnName = "TenantId")]
+ public long? TenantId { get; set; }
+ ///
+ /// 排序字段
+ ///
+ [SugarColumn(ColumnName = "OrderNum")]
+ public int? OrderNum { get; set; }
+ ///
+ /// 描述
+ ///
+ [SugarColumn(ColumnName = "Remark")]
+ public string? Remark { get; set; }
+ ///
+ /// 图片列表
+ ///
+ [SugarColumn(ColumnName = "Images", IsJson = true)]
+ public List? Images { get; set; }
+ ///
+ /// 点赞数量
+ ///
+ [SugarColumn(ColumnName = "AgreeNum")]
+ public int AgreeNum { get; set; }
+
+ [Navigate(NavigateType.OneToOne, nameof(UserId))]
+ public UserEntity? User { get; set; }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/BBS/Entitys/CommentEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/BBS/Entitys/CommentEntity.cs
new file mode 100644
index 00000000..83e168da
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/BBS/Entitys/CommentEntity.cs
@@ -0,0 +1,110 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text.Json.Serialization;
+using SqlSugar;
+using Yi.Framework.Model.Base;
+using Yi.Framework.Model.RABC.Entitys;
+
+namespace Yi.Framework.Model.BBS.Entitys
+{
+ ///
+ /// 评论表
+ ///
+ [SugarTable("Comment")]
+ public partial class CommentEntity : IBaseModelEntity
+ {
+ public CommentEntity()
+ {
+ CreateTime = DateTime.Now;
+ AgreeNum = 0;
+ CommentNum = 0;
+ ParentId = 0;
+ }
+ [JsonConverter(typeof(ValueToStringConverter))]
+ [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
+ public long Id { get; set; }
+ ///
+ /// 文章id
+ ///
+ [SugarColumn(ColumnName = "ArticleId")]
+ public long? ArticleId { get; set; }
+ ///
+ /// 被回复用户id
+ ///
+ [SugarColumn(ColumnName = "UserId")]
+ public long? UserId { get; set; }
+ ///
+ /// 评论内容
+ ///
+ [SugarColumn(ColumnName = "Content")]
+ public string? Content { get; set; }
+ ///
+ /// 点赞数
+ ///
+ [SugarColumn(ColumnName = "AgreeNum")]
+ public int? AgreeNum { get; set; }
+ ///
+ /// 创建者
+ ///
+ [SugarColumn(ColumnName = "CreateUser")]
+ public long? CreateUser { get; set; }
+ ///
+ /// 创建时间
+ ///
+ [SugarColumn(ColumnName = "CreateTime")]
+ public DateTime? CreateTime { get; set; }
+ ///
+ /// 修改者
+ ///
+ [SugarColumn(ColumnName = "ModifyUser")]
+ public long? ModifyUser { get; set; }
+ ///
+ /// 修改时间
+ ///
+ [SugarColumn(ColumnName = "ModifyTime")]
+ public DateTime? ModifyTime { get; set; }
+ ///
+ /// 是否删除
+ ///
+ [SugarColumn(ColumnName = "IsDeleted")]
+ public bool? IsDeleted { get; set; }
+ ///
+ /// 租户Id
+ ///
+ [SugarColumn(ColumnName = "TenantId")]
+ public long? TenantId { get; set; }
+ ///
+ /// 排序字段
+ ///
+ [SugarColumn(ColumnName = "OrderNum")]
+ public int? OrderNum { get; set; }
+ ///
+ /// 描述
+ ///
+ [SugarColumn(ColumnName = "Remark")]
+ public string? Remark { get; set; }
+ ///
+ /// 子评论数
+ ///
+ [SugarColumn(ColumnName = "CommentNum")]
+ public int? CommentNum { get; set; }
+ ///
+ /// 父级评论id
+ ///
+ [SugarColumn(ColumnName = "ParentId")]
+ public long? ParentId { get; set; }
+
+ ///
+ /// 被回复的用户信息
+ ///
+ [Navigate(NavigateType.OneToOne, nameof(UserId), nameof(UserEntity.Id))]
+ public UserEntity? UserInfo { get; set; }
+
+ ///
+ /// 创建评论的用户信息
+ ///
+ [Navigate(NavigateType.OneToOne, nameof(CreateUser), nameof(UserEntity.Id))]
+ public UserEntity? CreateUserInfo { get; set; }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/Base/Entity.cs b/Yi.Framework.Net6/Yi.Framework.Model/Base/Entity.cs
new file mode 100644
index 00000000..6d6fb88d
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/Base/Entity.cs
@@ -0,0 +1,18 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Yi.Framework.Model.Base
+{
+ public class Entity : IEntity
+ {
+ public Key Id { get; set; }
+
+ public object[] GetKeys()
+ {
+ throw new NotImplementedException();
+ }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/Base/EntityDto.cs b/Yi.Framework.Net6/Yi.Framework.Model/Base/EntityDto.cs
new file mode 100644
index 00000000..ad710e6a
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/Base/EntityDto.cs
@@ -0,0 +1,31 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Yi.Framework.Model.Base
+{
+ [Serializable]
+ public abstract class EntityDto : EntityDto, IEntityDto, IEntityDto
+ {
+ //
+ // 摘要:
+ // Id of the entity.
+ public TKey Id { get; set; }
+
+ public override string ToString()
+ {
+ return $"[DTO: {GetType().Name}] Id = {Id}";
+ }
+ }
+
+ [Serializable]
+ public abstract class EntityDto : IEntityDto
+ {
+ public override string ToString()
+ {
+ return "[DTO: " + GetType().Name + "]";
+ }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/BaseModel/IBaseModelEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/Base/IBaseModelEntity.cs
similarity index 85%
rename from Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/BaseModel/IBaseModelEntity.cs
rename to Yi.Framework.Net6/Yi.Framework.Model/Base/IBaseModelEntity.cs
index eaf25431..fe3d657c 100644
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/BaseModel/IBaseModelEntity.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Model/Base/IBaseModelEntity.cs
@@ -5,9 +5,9 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
-namespace Yi.Framework.Model.Models
+namespace Yi.Framework.Model.Base
{
- public interface IBaseModelEntity
+ public interface IBaseModelEntity
{
public long Id { get; set; }
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/Base/IEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/Base/IEntity.cs
new file mode 100644
index 00000000..25e3510d
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/Base/IEntity.cs
@@ -0,0 +1,33 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Yi.Framework.Model.Base
+{
+ ///
+ /// Defines an entity. It's primary key may not be "Id" or it may have a composite primary key.
+ /// Use where possible for better integration to repositories and other structures in the framework.
+ ///
+ public interface IEntity
+ {
+ ///
+ /// Returns an array of ordered keys for this entity.
+ ///
+ ///
+ object[] GetKeys();
+ }
+
+ ///
+ /// Defines an entity with a single primary key with "Id" property.
+ ///
+ /// Type of the primary key of the entity
+ public interface IEntity : IEntity
+ {
+ ///
+ /// Unique identifier for this entity.
+ ///
+ TKey Id { get; }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/Base/IEntityDto.cs b/Yi.Framework.Net6/Yi.Framework.Model/Base/IEntityDto.cs
new file mode 100644
index 00000000..db4615d0
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/Base/IEntityDto.cs
@@ -0,0 +1,18 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Yi.Framework.Model.Base
+{
+ public interface IEntityDto
+ {
+
+ }
+
+ public interface IEntityDto : IEntityDto
+ {
+ TKey Id { get; set; }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/Base/IMultiTenant.cs b/Yi.Framework.Net6/Yi.Framework.Model/Base/IMultiTenant.cs
new file mode 100644
index 00000000..022ad20e
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/Base/IMultiTenant.cs
@@ -0,0 +1,13 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Yi.Framework.Model.Base
+{
+ public interface IMultiTenant
+ {
+ Guid? TenantId { get; }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/Query/QueryCondition.cs b/Yi.Framework.Net6/Yi.Framework.Model/Base/Query/QueryCondition.cs
similarity index 94%
rename from Yi.Framework.Net6/Yi.Framework.Model/Query/QueryCondition.cs
rename to Yi.Framework.Net6/Yi.Framework.Model/Base/Query/QueryCondition.cs
index 6d316518..43efb4a8 100644
--- a/Yi.Framework.Net6/Yi.Framework.Model/Query/QueryCondition.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Model/Base/Query/QueryCondition.cs
@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
-namespace Yi.Framework.Model.Query
+namespace Yi.Framework.Model.Base.Query
{
public class QueryPageCondition
{
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/Query/QueryParameter.cs b/Yi.Framework.Net6/Yi.Framework.Model/Base/Query/QueryParameter.cs
similarity index 91%
rename from Yi.Framework.Net6/Yi.Framework.Model/Query/QueryParameter.cs
rename to Yi.Framework.Net6/Yi.Framework.Model/Base/Query/QueryParameter.cs
index a27727c6..e2f45c0d 100644
--- a/Yi.Framework.Net6/Yi.Framework.Model/Query/QueryParameter.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Model/Base/Query/QueryParameter.cs
@@ -7,7 +7,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
-namespace Yi.Framework.Model.Query
+namespace Yi.Framework.Model.Base.Query
{
public class QueryParameter
{
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/Query/QueryParametersExtensions.cs b/Yi.Framework.Net6/Yi.Framework.Model/Base/Query/QueryParametersExtensions.cs
similarity index 97%
rename from Yi.Framework.Net6/Yi.Framework.Model/Query/QueryParametersExtensions.cs
rename to Yi.Framework.Net6/Yi.Framework.Model/Base/Query/QueryParametersExtensions.cs
index bac5176c..dfb1cfdb 100644
--- a/Yi.Framework.Net6/Yi.Framework.Model/Query/QueryParametersExtensions.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Model/Base/Query/QueryParametersExtensions.cs
@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
-namespace Yi.Framework.Model.Query
+namespace Yi.Framework.Model.Base.Query
{
public static class QueryParametersExtensions
{
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/CategoryEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/CategoryEntity.cs
deleted file mode 100644
index 565f195e..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/CategoryEntity.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// 商品分类表
- ///
- public partial class CategoryEntity:IBaseModelEntity
- {
- [SugarColumn(IsIgnore = true)]
- public List? Children { get; set; }
-
-
- [Navigate(NavigateType.OneToMany,nameof(SpecsGroupEntity.CategoryId))]
- public List? SpecsGroups { get; set; }
- }
-}
\ No newline at end of file
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/CommentEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/CommentEntity.cs
deleted file mode 100644
index 5438c636..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/CommentEntity.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using SqlSugar;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Yi.Framework.Model.Models
-{
- public partial class CommentEntity
- {
- ///
- /// 被回复的用户信息
- ///
- [Navigate(NavigateType.OneToOne,nameof(UserId),nameof(UserEntity.Id))]
- public UserEntity? UserInfo { get; set; }
-
- ///
- /// 创建评论的用户信息
- ///
- [Navigate(NavigateType.OneToOne, nameof(CreateUser), nameof(UserEntity.Id))]
- public UserEntity? CreateUserInfo { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/LogEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/LogEntity.cs
deleted file mode 100644
index a3951984..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/LogEntity.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// 日志表
- ///
- [SplitTable(SplitType.Year)]
- [SugarTable("SplitLog_{year}{month}{day}")]
- public partial class LogEntity
- {
- [SplitField] //分表字段 在插入的时候会根据这个字段插入哪个表,在更新删除的时候用这个字段找出相关表
- ///
- /// 创建时间
- ///
- [SugarColumn(ColumnName = "CreateTime")]
- public DateTime? CreateTime { get; set; }
-
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/MenuEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/MenuEntity.cs
deleted file mode 100644
index c867aa6f..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/MenuEntity.cs
+++ /dev/null
@@ -1,79 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using SqlSugar;
-using Yi.Framework.Common.Enum;
-using Yi.Framework.Common.Models;
-
-namespace Yi.Framework.Model.Models
-{
- ///
- /// 菜单表
- ///
- public partial class MenuEntity
- {
- [SqlSugar.SugarColumn(IsIgnore = true)]
- public List? Children { get; set; }
-
-
- public static List RouterBuild(List menus)
- {
- menus = menus.Where(m => m.MenuType != null && m.MenuType != MenuTypeEnum.Component.GetHashCode()).ToList();
- List routers = new();
- foreach (var m in menus)
- {
-
- var r = new VueRouterModel();
- r.OrderNum = m.OrderNum ?? 0;
- var routerName = m.Router?.Split("/").LastOrDefault();
- r.Id = m.Id;
- r.ParentId = m.ParentId??-1;
-
- //开头大写
- r.Name = routerName?.First().ToString().ToUpper() + routerName?.Substring(1);
- r.Path = m.Router;
- r.Hidden =!m.IsShow??false;
-
-
- if (m.MenuType == MenuTypeEnum.Catalogue.GetHashCode())
- {
- r.Redirect = "noRedirect";
- r.AlwaysShow = true;
-
- //判断是否为最顶层的路由
- if (0 == m.ParentId)
- {
- r.Component = "Layout";
- }
- else
- {
- r.Component = "ParentView";
- }
- }
- if (m.MenuType == MenuTypeEnum.Menu.GetHashCode())
- {
-
- r.Redirect = "noRedirect";
- r.AlwaysShow = true;
- r.Component = m.Component;
- r.AlwaysShow = false;
- }
- r.Meta = new Meta
- {
- Title = m.MenuName,
- Icon = m.MenuIcon,
- NoCache = !m.IsCache??true
- };
- if (m.IsLink??false)
- {
- r.Meta.link = m.Router;
- r.AlwaysShow = false;
- }
-
- routers.Add(r);
- }
- return Common.Helper.TreeHelper.SetTree(routers);
- }
-
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/ArticleEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/ArticleEntity.cs
deleted file mode 100644
index 2fd22c2e..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/ArticleEntity.cs
+++ /dev/null
@@ -1,88 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// 文章表
- ///
- [SugarTable("Article")]
- public partial class ArticleEntity:IBaseModelEntity
- {
- public ArticleEntity()
- {
- this.CreateTime = DateTime.Now;
- this.AgreeNum = 0;
- }
- [JsonConverter(typeof(ValueToStringConverter))]
- [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true )]
- public long Id { get; set; }
- ///
- /// 文章标题
- ///
- [SugarColumn(ColumnName="Title" )]
- public string? Title { get; set; }
- ///
- /// 文章内容
- ///
- [SugarColumn(ColumnName="Content" )]
- public string? Content { get; set; }
- ///
- /// 用户id
- ///
- [SugarColumn(ColumnName="UserId" )]
- public long? UserId { get; set; }
- ///
- /// 创建者
- ///
- [SugarColumn(ColumnName="CreateUser" )]
- public long? CreateUser { get; set; }
- ///
- /// 创建时间
- ///
- [SugarColumn(ColumnName="CreateTime" )]
- public DateTime? CreateTime { get; set; }
- ///
- /// 修改者
- ///
- [SugarColumn(ColumnName="ModifyUser" )]
- public long? ModifyUser { get; set; }
- ///
- /// 修改时间
- ///
- [SugarColumn(ColumnName="ModifyTime" )]
- public DateTime? ModifyTime { get; set; }
- ///
- /// 是否删除
- ///
- [SugarColumn(ColumnName="IsDeleted" )]
- public bool? IsDeleted { get; set; }
- ///
- /// 租户Id
- ///
- [SugarColumn(ColumnName="TenantId" )]
- public long? TenantId { get; set; }
- ///
- /// 排序字段
- ///
- [SugarColumn(ColumnName="OrderNum" )]
- public int? OrderNum { get; set; }
- ///
- /// 描述
- ///
- [SugarColumn(ColumnName="Remark" )]
- public string? Remark { get; set; }
- ///
- /// 图片列表
- ///
- [SugarColumn(ColumnName = "Images", IsJson = true)]
- public List? Images { get; set; }
- ///
- /// 点赞数量
- ///
- [SugarColumn(ColumnName="AgreeNum" )]
- public int AgreeNum { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/CategoryEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/CategoryEntity.cs
deleted file mode 100644
index 16131d5e..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/CategoryEntity.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// 商品分类表
- ///
- [SugarTable("Category")]
- public partial class CategoryEntity:IBaseModelEntity
- {
- public CategoryEntity()
- {
- this.CreateTime = DateTime.Now;
- }
- [JsonConverter(typeof(ValueToStringConverter))]
- [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true )]
- public long Id { get; set; }
- ///
- /// 父级id
- ///
- [SugarColumn(ColumnName="ParentId" )]
- public long? ParentId { get; set; }
- ///
- /// 分类名称
- ///
- [SugarColumn(ColumnName="CategoryName" )]
- public string CategoryName { get; set; }
- ///
- /// 创建者
- ///
- [SugarColumn(ColumnName="CreateUser" )]
- public long? CreateUser { get; set; }
- ///
- /// 创建时间
- ///
- [SugarColumn(ColumnName="CreateTime" )]
- public DateTime? CreateTime { get; set; }
- ///
- /// 修改者
- ///
- [SugarColumn(ColumnName="ModifyUser" )]
- public long? ModifyUser { get; set; }
- ///
- /// 修改时间
- ///
- [SugarColumn(ColumnName="ModifyTime" )]
- public DateTime? ModifyTime { get; set; }
- ///
- /// 是否删除
- ///
- [SugarColumn(ColumnName="IsDeleted" )]
- public bool? IsDeleted { get; set; }
- ///
- /// 租户Id
- ///
- [SugarColumn(ColumnName="TenantId" )]
- public long? TenantId { get; set; }
- ///
- /// 排序字段
- ///
- [SugarColumn(ColumnName="OrderNum" )]
- public int? OrderNum { get; set; }
- ///
- /// 描述
- ///
- [SugarColumn(ColumnName="Remark" )]
- public string? Remark { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/CommentEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/CommentEntity.cs
deleted file mode 100644
index 4b5c4a2b..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/CommentEntity.cs
+++ /dev/null
@@ -1,95 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// 评论表
- ///
- [SugarTable("Comment")]
- public partial class CommentEntity:IBaseModelEntity
- {
- public CommentEntity()
- {
- this.CreateTime = DateTime.Now;
- this.AgreeNum= 0;
- this.CommentNum = 0;
- this.ParentId= 0;
- }
- [JsonConverter(typeof(ValueToStringConverter))]
- [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true )]
- public long Id { get; set; }
- ///
- /// 文章id
- ///
- [SugarColumn(ColumnName="ArticleId" )]
- public long? ArticleId { get; set; }
- ///
- /// 被回复用户id
- ///
- [SugarColumn(ColumnName="UserId" )]
- public long? UserId { get; set; }
- ///
- /// 评论内容
- ///
- [SugarColumn(ColumnName="Content" )]
- public string? Content { get; set; }
- ///
- /// 点赞数
- ///
- [SugarColumn(ColumnName="AgreeNum" )]
- public int? AgreeNum { get; set; }
- ///
- /// 创建者
- ///
- [SugarColumn(ColumnName="CreateUser" )]
- public long? CreateUser { get; set; }
- ///
- /// 创建时间
- ///
- [SugarColumn(ColumnName="CreateTime" )]
- public DateTime? CreateTime { get; set; }
- ///
- /// 修改者
- ///
- [SugarColumn(ColumnName="ModifyUser" )]
- public long? ModifyUser { get; set; }
- ///
- /// 修改时间
- ///
- [SugarColumn(ColumnName="ModifyTime" )]
- public DateTime? ModifyTime { get; set; }
- ///
- /// 是否删除
- ///
- [SugarColumn(ColumnName="IsDeleted" )]
- public bool? IsDeleted { get; set; }
- ///
- /// 租户Id
- ///
- [SugarColumn(ColumnName="TenantId" )]
- public long? TenantId { get; set; }
- ///
- /// 排序字段
- ///
- [SugarColumn(ColumnName="OrderNum" )]
- public int? OrderNum { get; set; }
- ///
- /// 描述
- ///
- [SugarColumn(ColumnName="Remark" )]
- public string? Remark { get; set; }
- ///
- /// 子评论数
- ///
- [SugarColumn(ColumnName="CommentNum" )]
- public int? CommentNum { get; set; }
- ///
- /// 父级评论id
- ///
- [SugarColumn(ColumnName="ParentId" )]
- public long? ParentId { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/ConfigEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/ConfigEntity.cs
deleted file mode 100644
index 7fd11b35..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/ConfigEntity.cs
+++ /dev/null
@@ -1,82 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// 配置表
- ///
- [SugarTable("Config")]
- public partial class ConfigEntity:IBaseModelEntity
- {
- public ConfigEntity()
- {
- this.CreateTime = DateTime.Now;
- }
- [JsonConverter(typeof(ValueToStringConverter))]
- [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true )]
- public long Id { get; set; }
- ///
- /// 配置名称
- ///
- [SugarColumn(ColumnName="ConfigName" )]
- public string? ConfigName { get; set; }
- ///
- /// 配置键
- ///
- [SugarColumn(ColumnName="ConfigKey" )]
- public string? ConfigKey { get; set; }
- ///
- /// 配置值
- ///
- [SugarColumn(ColumnName="ConfigValue" )]
- public string? ConfigValue { get; set; }
- ///
- /// 配置类别
- ///
- [SugarColumn(ColumnName="ConfigType" )]
- public string? ConfigType { get; set; }
- ///
- /// 创建者
- ///
- [SugarColumn(ColumnName="CreateUser" )]
- public long? CreateUser { get; set; }
- ///
- /// 创建时间
- ///
- [SugarColumn(ColumnName="CreateTime" )]
- public DateTime? CreateTime { get; set; }
- ///
- /// 修改者
- ///
- [SugarColumn(ColumnName="ModifyUser" )]
- public long? ModifyUser { get; set; }
- ///
- /// 修改时间
- ///
- [SugarColumn(ColumnName="ModifyTime" )]
- public DateTime? ModifyTime { get; set; }
- ///
- /// 是否删除
- ///
- [SugarColumn(ColumnName="IsDeleted" )]
- public bool? IsDeleted { get; set; }
- ///
- /// 租户Id
- ///
- [SugarColumn(ColumnName="TenantId" )]
- public long? TenantId { get; set; }
- ///
- /// 排序字段
- ///
- [SugarColumn(ColumnName="OrderNum" )]
- public int? OrderNum { get; set; }
- ///
- /// 描述
- ///
- [SugarColumn(ColumnName="Remark" )]
- public string? Remark { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/DeptEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/DeptEntity.cs
deleted file mode 100644
index bfc66554..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/DeptEntity.cs
+++ /dev/null
@@ -1,82 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// 部门表
- ///
- [SugarTable("Dept")]
- public partial class DeptEntity:IBaseModelEntity
- {
- public DeptEntity()
- {
- this.CreateTime = DateTime.Now;
- }
- [JsonConverter(typeof(ValueToStringConverter))]
- [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true )]
- public long Id { get; set; }
- ///
- /// 部门名称
- ///
- [SugarColumn(ColumnName="DeptName" )]
- public string? DeptName { get; set; }
- ///
- /// 部门编码
- ///
- [SugarColumn(ColumnName="DeptCode" )]
- public string? DeptCode { get; set; }
- ///
- /// 负责人
- ///
- [SugarColumn(ColumnName="Leader" )]
- public string? Leader { get; set; }
- ///
- /// 父级id
- ///
- [SugarColumn(ColumnName="ParentId" )]
- public long? ParentId { get; set; }
- ///
- /// 创建者
- ///
- [SugarColumn(ColumnName="CreateUser" )]
- public long? CreateUser { get; set; }
- ///
- /// 创建时间
- ///
- [SugarColumn(ColumnName="CreateTime" )]
- public DateTime? CreateTime { get; set; }
- ///
- /// 修改者
- ///
- [SugarColumn(ColumnName="ModifyUser" )]
- public long? ModifyUser { get; set; }
- ///
- /// 修改时间
- ///
- [SugarColumn(ColumnName="ModifyTime" )]
- public DateTime? ModifyTime { get; set; }
- ///
- /// 是否删除
- ///
- [SugarColumn(ColumnName="IsDeleted" )]
- public bool? IsDeleted { get; set; }
- ///
- /// 租户Id
- ///
- [SugarColumn(ColumnName="TenantId" )]
- public long? TenantId { get; set; }
- ///
- /// 排序字段
- ///
- [SugarColumn(ColumnName="OrderNum" )]
- public int? OrderNum { get; set; }
- ///
- /// 描述
- ///
- [SugarColumn(ColumnName="Remark" )]
- public string? Remark { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/DictionaryEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/DictionaryEntity.cs
deleted file mode 100644
index b14c1f02..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/DictionaryEntity.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// 字典表
- ///
- [SugarTable("Dictionary")]
- public partial class DictionaryEntity:IBaseModelEntity
- {
- public DictionaryEntity()
- {
- this.CreateTime = DateTime.Now;
- }
- [JsonConverter(typeof(ValueToStringConverter))]
- [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true )]
- public long Id { get; set; }
- ///
- /// 字典名称
- ///
- [SugarColumn(ColumnName="DictName" )]
- public string? DictName { get; set; }
- ///
- /// 字典类型
- ///
- [SugarColumn(ColumnName="DictType" )]
- public string? DictType { get; set; }
- ///
- /// 创建者
- ///
- [SugarColumn(ColumnName="CreateUser" )]
- public long? CreateUser { get; set; }
- ///
- /// 创建时间
- ///
- [SugarColumn(ColumnName="CreateTime" )]
- public DateTime? CreateTime { get; set; }
- ///
- /// 修改者
- ///
- [SugarColumn(ColumnName="ModifyUser" )]
- public long? ModifyUser { get; set; }
- ///
- /// 修改时间
- ///
- [SugarColumn(ColumnName="ModifyTime" )]
- public DateTime? ModifyTime { get; set; }
- ///
- /// 是否删除
- ///
- [SugarColumn(ColumnName="IsDeleted" )]
- public bool? IsDeleted { get; set; }
- ///
- /// 租户Id
- ///
- [SugarColumn(ColumnName="TenantId" )]
- public long? TenantId { get; set; }
- ///
- /// 排序字段
- ///
- [SugarColumn(ColumnName="OrderNum" )]
- public int? OrderNum { get; set; }
- ///
- /// 描述
- ///
- [SugarColumn(ColumnName="Remark" )]
- public string? Remark { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/DictionaryInfoEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/DictionaryInfoEntity.cs
deleted file mode 100644
index c1f7200e..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/DictionaryInfoEntity.cs
+++ /dev/null
@@ -1,92 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// 字典信息表
- ///
- [SugarTable("DictionaryInfo")]
- public partial class DictionaryInfoEntity:IBaseModelEntity
- {
- public DictionaryInfoEntity()
- {
- this.CreateTime = DateTime.Now;
- }
- [JsonConverter(typeof(ValueToStringConverter))]
- [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true )]
- public long Id { get; set; }
- ///
- /// 字典类型
- ///
- [SugarColumn(ColumnName="DictType" )]
- public string? DictType { get; set; }
- ///
- /// 字典标签
- ///
- [SugarColumn(ColumnName="DictLabel" )]
- public string? DictLabel { get; set; }
- ///
- /// 字典值
- ///
- [SugarColumn(ColumnName="DictValue" )]
- public string? DictValue { get; set; }
- ///
- /// 是否为该类型的默认值
- ///
- [SugarColumn(ColumnName="IsDefault" )]
- public bool? IsDefault { get; set; }
- ///
- /// 创建者
- ///
- [SugarColumn(ColumnName="CreateUser" )]
- public long? CreateUser { get; set; }
- ///
- /// 创建时间
- ///
- [SugarColumn(ColumnName="CreateTime" )]
- public DateTime? CreateTime { get; set; }
- ///
- /// 修改者
- ///
- [SugarColumn(ColumnName="ModifyUser" )]
- public long? ModifyUser { get; set; }
- ///
- /// 修改时间
- ///
- [SugarColumn(ColumnName="ModifyTime" )]
- public DateTime? ModifyTime { get; set; }
- ///
- /// 是否删除
- ///
- [SugarColumn(ColumnName="IsDeleted" )]
- public bool? IsDeleted { get; set; }
- ///
- /// 租户Id
- ///
- [SugarColumn(ColumnName="TenantId" )]
- public long? TenantId { get; set; }
- ///
- /// 排序字段
- ///
- [SugarColumn(ColumnName="OrderNum" )]
- public int? OrderNum { get; set; }
- ///
- /// 描述
- ///
- [SugarColumn(ColumnName="Remark" )]
- public string? Remark { get; set; }
- ///
- /// tag类型
- ///
- [SugarColumn(ColumnName="ListClass" )]
- public string? ListClass { get; set; }
- ///
- /// tagClass
- ///
- [SugarColumn(ColumnName="CssClass" )]
- public string? CssClass { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/FileEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/FileEntity.cs
deleted file mode 100644
index 1336abe1..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/FileEntity.cs
+++ /dev/null
@@ -1,82 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// 文件表
- ///
- [SugarTable("File")]
- public partial class FileEntity:IBaseModelEntity
- {
- public FileEntity()
- {
- this.CreateTime = DateTime.Now;
- }
- [JsonConverter(typeof(ValueToStringConverter))]
- [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true )]
- public long Id { get; set; }
- ///
- /// 文件类型
- ///
- [SugarColumn(ColumnName="FileType" )]
- public string? FileType { get; set; }
- ///
- /// 文件大小
- ///
- [SugarColumn(ColumnName="FileSize" )]
- public decimal? FileSize { get; set; }
- ///
- /// 文件名
- ///
- [SugarColumn(ColumnName="FileName" )]
- public string? FileName { get; set; }
- ///
- /// 文件路径
- ///
- [SugarColumn(ColumnName="FilePath" )]
- public string? FilePath { get; set; }
- ///
- /// 创建者
- ///
- [SugarColumn(ColumnName="CreateUser" )]
- public long? CreateUser { get; set; }
- ///
- /// 创建时间
- ///
- [SugarColumn(ColumnName="CreateTime" )]
- public DateTime? CreateTime { get; set; }
- ///
- /// 修改者
- ///
- [SugarColumn(ColumnName="ModifyUser" )]
- public long? ModifyUser { get; set; }
- ///
- /// 修改时间
- ///
- [SugarColumn(ColumnName="ModifyTime" )]
- public DateTime? ModifyTime { get; set; }
- ///
- /// 是否删除
- ///
- [SugarColumn(ColumnName="IsDeleted" )]
- public bool? IsDeleted { get; set; }
- ///
- /// 租户Id
- ///
- [SugarColumn(ColumnName="TenantId" )]
- public long? TenantId { get; set; }
- ///
- /// 排序字段
- ///
- [SugarColumn(ColumnName="OrderNum" )]
- public int? OrderNum { get; set; }
- ///
- /// 描述
- ///
- [SugarColumn(ColumnName="Remark" )]
- public string? Remark { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/LogEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/LogEntity.cs
deleted file mode 100644
index e2db6dc9..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/LogEntity.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- public partial class LogEntity:IBaseModelEntity
- {
- public LogEntity()
- {
- this.CreateTime = DateTime.Now;
- }
- [JsonConverter(typeof(ValueToStringConverter))]
- [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true )]
- public long Id { get; set; }
- ///
- /// 创建者
- ///
- [SugarColumn(ColumnName="CreateUser" )]
- public long? CreateUser { get; set; }
- ///
- /// 修改者
- ///
- [SugarColumn(ColumnName="ModifyUser" )]
- public long? ModifyUser { get; set; }
- ///
- /// 修改时间
- ///
- [SugarColumn(ColumnName="ModifyTime" )]
- public DateTime? ModifyTime { get; set; }
- ///
- /// 是否删除
- ///
- [SugarColumn(ColumnName="IsDeleted" )]
- public bool? IsDeleted { get; set; }
- ///
- /// 租户Id
- ///
- [SugarColumn(ColumnName="TenantId" )]
- public long? TenantId { get; set; }
- ///
- /// 消息
- ///
- [SugarColumn(ColumnName="Message" )]
- public string? Message { get; set; }
- ///
- /// 排序字段
- ///
- [SugarColumn(ColumnName="OrderNum" )]
- public int? OrderNum { get; set; }
- ///
- /// 描述
- ///
- [SugarColumn(ColumnName="Remark" )]
- public string? Remark { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/LoginLogEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/LoginLogEntity.cs
deleted file mode 100644
index 9f0dc985..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/LoginLogEntity.cs
+++ /dev/null
@@ -1,92 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// 登入日志
- ///
- [SugarTable("LoginLog")]
- public partial class LoginLogEntity:IBaseModelEntity
- {
- public LoginLogEntity()
- {
- this.CreateTime = DateTime.Now;
- }
- [JsonConverter(typeof(ValueToStringConverter))]
- [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true )]
- public long Id { get; set; }
- ///
- /// 登录用户
- ///
- [SugarColumn(ColumnName="LoginUser" )]
- public string? LoginUser { get; set; }
- ///
- /// 登录地点
- ///
- [SugarColumn(ColumnName="LoginLocation" )]
- public string? LoginLocation { get; set; }
- ///
- /// 登录Ip
- ///
- [SugarColumn(ColumnName="LoginIp" )]
- public string? LoginIp { get; set; }
- ///
- /// 浏览器
- ///
- [SugarColumn(ColumnName="Browser" )]
- public string? Browser { get; set; }
- ///
- /// 操作系统
- ///
- [SugarColumn(ColumnName="Os" )]
- public string? Os { get; set; }
- ///
- /// 登录信息
- ///
- [SugarColumn(ColumnName="LogMsg" )]
- public string? LogMsg { get; set; }
- ///
- /// 创建者
- ///
- [SugarColumn(ColumnName="CreateUser" )]
- public long? CreateUser { get; set; }
- ///
- /// 创建时间
- ///
- [SugarColumn(ColumnName="CreateTime" )]
- public DateTime? CreateTime { get; set; }
- ///
- /// 修改者
- ///
- [SugarColumn(ColumnName="ModifyUser" )]
- public long? ModifyUser { get; set; }
- ///
- /// 修改时间
- ///
- [SugarColumn(ColumnName="ModifyTime" )]
- public DateTime? ModifyTime { get; set; }
- ///
- /// 租户Id
- ///
- [SugarColumn(ColumnName="TenantId" )]
- public long? TenantId { get; set; }
- ///
- /// 排序字段
- ///
- [SugarColumn(ColumnName="OrderNum" )]
- public int? OrderNum { get; set; }
- ///
- /// 描述
- ///
- [SugarColumn(ColumnName="Remark" )]
- public string? Remark { get; set; }
- ///
- /// 是否删除
- ///
- [SugarColumn(ColumnName="IsDeleted" )]
- public bool? IsDeleted { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/MenuEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/MenuEntity.cs
deleted file mode 100644
index aeb3c471..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/MenuEntity.cs
+++ /dev/null
@@ -1,118 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// 菜单表
- ///
- [SugarTable("Menu")]
- public partial class MenuEntity:IBaseModelEntity
- {
- public MenuEntity()
- {
- this.IsCache = false;
- this.CreateTime = DateTime.Now;
- }
- [JsonConverter(typeof(ValueToStringConverter))]
- [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true )]
- public long Id { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="MenuName" )]
- public string? MenuName { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="MenuType" )]
- public int? MenuType { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="PermissionCode" )]
- public string? PermissionCode { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="ParentId" )]
- public long? ParentId { get; set; }
- ///
- /// 创建者
- ///
- [SugarColumn(ColumnName="CreateUser" )]
- public long? CreateUser { get; set; }
- ///
- /// 创建时间
- ///
- [SugarColumn(ColumnName="CreateTime" )]
- public DateTime? CreateTime { get; set; }
- ///
- /// 修改者
- ///
- [SugarColumn(ColumnName="ModifyUser" )]
- public long? ModifyUser { get; set; }
- ///
- /// 修改时间
- ///
- [SugarColumn(ColumnName="ModifyTime" )]
- public DateTime? ModifyTime { get; set; }
- ///
- /// 是否删除
- ///
- [SugarColumn(ColumnName="IsDeleted" )]
- public bool? IsDeleted { get; set; }
- ///
- /// 租户Id
- ///
- [SugarColumn(ColumnName="TenantId" )]
- public long? TenantId { get; set; }
- ///
- /// 菜单图标
- ///
- [SugarColumn(ColumnName="MenuIcon" )]
- public string? MenuIcon { get; set; }
- ///
- /// 菜单组件路由
- ///
- [SugarColumn(ColumnName="Router" )]
- public string? Router { get; set; }
- ///
- /// 是否为外部链接
- ///
- [SugarColumn(ColumnName="IsLink" )]
- public bool? IsLink { get; set; }
- ///
- /// 是否缓存
- ///
- [SugarColumn(ColumnName="IsCache" )]
- public bool? IsCache { get; set; }
- ///
- /// 是否显示
- ///
- [SugarColumn(ColumnName="IsShow" )]
- public bool? IsShow { get; set; }
- ///
- /// 排序字段
- ///
- [SugarColumn(ColumnName="OrderNum" )]
- public int? OrderNum { get; set; }
- ///
- /// 描述
- ///
- [SugarColumn(ColumnName="Remark" )]
- public string? Remark { get; set; }
- ///
- /// 组件路径
- ///
- [SugarColumn(ColumnName="Component" )]
- public string? Component { get; set; }
- ///
- /// 路由参数
- ///
- [SugarColumn(ColumnName="Query" )]
- public string? Query { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/OperationLogEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/OperationLogEntity.cs
deleted file mode 100644
index 8ebd2d91..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/OperationLogEntity.cs
+++ /dev/null
@@ -1,107 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// 操作日志表
- ///
- [SugarTable("OperationLog")]
- public partial class OperationLogEntity:IBaseModelEntity
- {
- public OperationLogEntity()
- {
- this.CreateTime = DateTime.Now;
- }
- [JsonConverter(typeof(ValueToStringConverter))]
- [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true )]
- public long Id { get; set; }
- ///
- /// 操作模块
- ///
- [SugarColumn(ColumnName="Title" )]
- public string? Title { get; set; }
- ///
- /// 操作类型
- ///
- [SugarColumn(ColumnName="OperType" )]
- public int? OperType { get; set; }
- ///
- /// 请求方法
- ///
- [SugarColumn(ColumnName="RequestMethod" )]
- public string? RequestMethod { get; set; }
- ///
- /// 操作人员
- ///
- [SugarColumn(ColumnName="OperUser" )]
- public string? OperUser { get; set; }
- ///
- /// 操作Ip
- ///
- [SugarColumn(ColumnName="OperIp" )]
- public string? OperIp { get; set; }
- ///
- /// 操作地点
- ///
- [SugarColumn(ColumnName="OperLocation" )]
- public string? OperLocation { get; set; }
- ///
- /// 操作方法
- ///
- [SugarColumn(ColumnName="Method" )]
- public string? Method { get; set; }
- ///
- /// 请求参数
- ///
- [SugarColumn(ColumnName="RequestParam" )]
- public string? RequestParam { get; set; }
- ///
- /// 请求结果
- ///
- [SugarColumn(ColumnName="RequestResult" )]
- public string? RequestResult { get; set; }
- ///
- /// 创建者
- ///
- [SugarColumn(ColumnName="CreateUser" )]
- public long? CreateUser { get; set; }
- ///
- /// 创建时间
- ///
- [SugarColumn(ColumnName="CreateTime" )]
- public DateTime? CreateTime { get; set; }
- ///
- /// 修改者
- ///
- [SugarColumn(ColumnName="ModifyUser" )]
- public long? ModifyUser { get; set; }
- ///
- /// 修改时间
- ///
- [SugarColumn(ColumnName="ModifyTime" )]
- public DateTime? ModifyTime { get; set; }
- ///
- /// 租户Id
- ///
- [SugarColumn(ColumnName="TenantId" )]
- public long? TenantId { get; set; }
- ///
- /// 排序字段
- ///
- [SugarColumn(ColumnName="OrderNum" )]
- public int? OrderNum { get; set; }
- ///
- /// 描述
- ///
- [SugarColumn(ColumnName="Remark" )]
- public string? Remark { get; set; }
- ///
- /// 是否删除
- ///
- [SugarColumn(ColumnName="IsDeleted" )]
- public bool? IsDeleted { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/PostEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/PostEntity.cs
deleted file mode 100644
index 02564b99..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/PostEntity.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// 岗位表
- ///
- [SugarTable("Post")]
- public partial class PostEntity:IBaseModelEntity
- {
- public PostEntity()
- {
- this.CreateTime = DateTime.Now;
- }
- [JsonConverter(typeof(ValueToStringConverter))]
- [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true )]
- public long Id { get; set; }
- ///
- /// 岗位编码
- ///
- [SugarColumn(ColumnName="PostCode" )]
- public string? PostCode { get; set; }
- ///
- /// 岗位名称
- ///
- [SugarColumn(ColumnName="PostName" )]
- public string? PostName { get; set; }
- ///
- /// 创建者
- ///
- [SugarColumn(ColumnName="CreateUser" )]
- public long? CreateUser { get; set; }
- ///
- /// 创建时间
- ///
- [SugarColumn(ColumnName="CreateTime" )]
- public DateTime? CreateTime { get; set; }
- ///
- /// 修改者
- ///
- [SugarColumn(ColumnName="ModifyUser" )]
- public long? ModifyUser { get; set; }
- ///
- /// 修改时间
- ///
- [SugarColumn(ColumnName="ModifyTime" )]
- public DateTime? ModifyTime { get; set; }
- ///
- /// 是否删除
- ///
- [SugarColumn(ColumnName="IsDeleted" )]
- public bool? IsDeleted { get; set; }
- ///
- /// 租户Id
- ///
- [SugarColumn(ColumnName="TenantId" )]
- public long? TenantId { get; set; }
- ///
- /// 排序字段
- ///
- [SugarColumn(ColumnName="OrderNum" )]
- public int? OrderNum { get; set; }
- ///
- /// 描述
- ///
- [SugarColumn(ColumnName="Remark" )]
- public string? Remark { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/RoleDeptEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/RoleDeptEntity.cs
deleted file mode 100644
index 5a3689c0..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/RoleDeptEntity.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// 角色部门关系表
- ///
- [SugarTable("RoleDept")]
- public partial class RoleDeptEntity:IBaseModelEntity
- {
- public RoleDeptEntity()
- {
- this.CreateTime = DateTime.Now;
- }
- [JsonConverter(typeof(ValueToStringConverter))]
- [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true )]
- public long Id { get; set; }
- ///
- /// 角色id
- ///
- [SugarColumn(ColumnName="RoleId" )]
- public long? RoleId { get; set; }
- ///
- /// 部门id
- ///
- [SugarColumn(ColumnName="DeptId" )]
- public long? DeptId { get; set; }
- ///
- /// 创建者
- ///
- [SugarColumn(ColumnName="CreateUser" )]
- public long? CreateUser { get; set; }
- ///
- /// 创建时间
- ///
- [SugarColumn(ColumnName="CreateTime" )]
- public DateTime? CreateTime { get; set; }
- ///
- /// 修改者
- ///
- [SugarColumn(ColumnName="ModifyUser" )]
- public long? ModifyUser { get; set; }
- ///
- /// 修改时间
- ///
- [SugarColumn(ColumnName="ModifyTime" )]
- public DateTime? ModifyTime { get; set; }
- ///
- /// 是否删除
- ///
- [SugarColumn(ColumnName="IsDeleted" )]
- public bool? IsDeleted { get; set; }
- ///
- /// 租户Id
- ///
- [SugarColumn(ColumnName="TenantId" )]
- public long? TenantId { get; set; }
- ///
- /// 排序字段
- ///
- [SugarColumn(ColumnName="OrderNum" )]
- public int? OrderNum { get; set; }
- ///
- /// 描述
- ///
- [SugarColumn(ColumnName="Remark" )]
- public string? Remark { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/RoleEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/RoleEntity.cs
deleted file mode 100644
index e269079b..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/RoleEntity.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// 角色表
- ///
- [SugarTable("Role")]
- public partial class RoleEntity : IBaseModelEntity
- {
- public RoleEntity()
- {
- this.CreateTime = DateTime.Now;
- }
- [JsonConverter(typeof(ValueToStringConverter))]
- [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
- public long Id { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName = "RoleName")]
- public string? RoleName { get; set; }
- ///
- /// 创建者
- ///
- [SugarColumn(ColumnName="CreateUser" )]
- public long? CreateUser { get; set; }
- ///
- /// 创建时间
- ///
- [SugarColumn(ColumnName="CreateTime" )]
- public DateTime? CreateTime { get; set; }
- ///
- /// 修改时间
- ///
- [SugarColumn(ColumnName="ModifyTime" )]
- public DateTime? ModifyTime { get; set; }
- ///
- /// 是否删除
- ///
- [SugarColumn(ColumnName="IsDeleted" )]
- public bool? IsDeleted { get; set; }
- ///
- /// 租户Id
- ///
- [SugarColumn(ColumnName="TenantId" )]
- public long? TenantId { get; set; }
- ///
- /// 修改者
- ///
- [SugarColumn(ColumnName="ModifyUser" )]
- public long? ModifyUser { get; set; }
- ///
- /// 角色编码
- ///
- [SugarColumn(ColumnName="RoleCode" )]
- public string? RoleCode { get; set; }
- ///
- /// 排序字段
- ///
- [SugarColumn(ColumnName="OrderNum" )]
- public int? OrderNum { get; set; }
- ///
- /// 描述
- ///
- [SugarColumn(ColumnName="Remark" )]
- public string? Remark { get; set; }
- ///
- /// 角色数据范围
- ///
- [SugarColumn(ColumnName="DataScope" )]
- public int? DataScope { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/RoleMenuEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/RoleMenuEntity.cs
deleted file mode 100644
index e5cd3f1b..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/RoleMenuEntity.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// 角色菜单关系表
- ///
- [SugarTable("RoleMenu")]
- public partial class RoleMenuEntity:IBaseModelEntity
- {
- public RoleMenuEntity()
- {
- this.CreateTime = DateTime.Now;
- }
- [JsonConverter(typeof(ValueToStringConverter))]
- [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true )]
- public long Id { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="RoleId" )]
- public long? RoleId { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="MenuId" )]
- public long? MenuId { get; set; }
- ///
- /// 创建者
- ///
- [SugarColumn(ColumnName="CreateUser" )]
- public long? CreateUser { get; set; }
- ///
- /// 创建时间
- ///
- [SugarColumn(ColumnName="CreateTime" )]
- public DateTime? CreateTime { get; set; }
- ///
- /// 修改者
- ///
- [SugarColumn(ColumnName="ModifyUser" )]
- public long? ModifyUser { get; set; }
- ///
- /// 修改时间
- ///
- [SugarColumn(ColumnName="ModifyTime" )]
- public DateTime? ModifyTime { get; set; }
- ///
- /// 是否删除
- ///
- [SugarColumn(ColumnName="IsDeleted" )]
- public bool? IsDeleted { get; set; }
- ///
- /// 租户Id
- ///
- [SugarColumn(ColumnName="TenantId" )]
- public long? TenantId { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/SkuEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/SkuEntity.cs
deleted file mode 100644
index 76e374eb..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/SkuEntity.cs
+++ /dev/null
@@ -1,78 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// Sku表
- ///
- [SugarTable("Sku")]
- public partial class SkuEntity:IBaseModelEntity
- {
- public SkuEntity()
- {
- this.CreateTime = DateTime.Now;
- }
- [JsonConverter(typeof(ValueToStringConverter))]
- [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true )]
- public long Id { get; set; }
- ///
- /// SpuId
- ///
- [SugarColumn(ColumnName="SpuId" )]
- public long? SpuId { get; set; }
- ///
- /// 库存
- ///
- [SugarColumn(ColumnName="Stock" )]
- public int? Stock { get; set; }
- ///
- /// 价格
- ///
- [SugarColumn(ColumnName="Price" )]
- public int? Price { get; set; }
-
- ///
- /// 创建者
- ///
- [SugarColumn(ColumnName="CreateUser" )]
- public long? CreateUser { get; set; }
- ///
- /// 创建时间
- ///
- [SugarColumn(ColumnName="CreateTime" )]
- public DateTime? CreateTime { get; set; }
- ///
- /// 修改者
- ///
- [SugarColumn(ColumnName="ModifyUser" )]
- public long? ModifyUser { get; set; }
- ///
- /// 修改时间
- ///
- [SugarColumn(ColumnName="ModifyTime" )]
- public DateTime? ModifyTime { get; set; }
- ///
- /// 是否删除
- ///
- [SugarColumn(ColumnName="IsDeleted" )]
- public bool? IsDeleted { get; set; }
- ///
- /// 租户Id
- ///
- [SugarColumn(ColumnName="TenantId" )]
- public long? TenantId { get; set; }
- ///
- /// 排序字段
- ///
- [SugarColumn(ColumnName="OrderNum" )]
- public int? OrderNum { get; set; }
- ///
- /// 描述
- ///
- [SugarColumn(ColumnName="Remark" )]
- public string? Remark { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/SpecsEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/SpecsEntity.cs
deleted file mode 100644
index a5b0c161..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/SpecsEntity.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// 商品规格表
- ///
- [SugarTable("Specs")]
- public partial class SpecsEntity:IBaseModelEntity
- {
- public SpecsEntity()
- {
- this.CreateTime = DateTime.Now;
- }
- [JsonConverter(typeof(ValueToStringConverter))]
- [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true )]
- public long Id { get; set; }
- ///
- /// 商品规格组id
- ///
- [SugarColumn(ColumnName="SpecsGroupId" )]
- public long? SpecsGroupId { get; set; }
- ///
- /// 商品规格名
- ///
- [SugarColumn(ColumnName="SpecsName" )]
- public string SpecsName { get; set; }
- ///
- /// 创建者
- ///
- [SugarColumn(ColumnName="CreateUser" )]
- public long? CreateUser { get; set; }
- ///
- /// 创建时间
- ///
- [SugarColumn(ColumnName="CreateTime" )]
- public DateTime? CreateTime { get; set; }
- ///
- /// 修改者
- ///
- [SugarColumn(ColumnName="ModifyUser" )]
- public long? ModifyUser { get; set; }
- ///
- /// 修改时间
- ///
- [SugarColumn(ColumnName="ModifyTime" )]
- public DateTime? ModifyTime { get; set; }
- ///
- /// 是否删除
- ///
- [SugarColumn(ColumnName="IsDeleted" )]
- public bool? IsDeleted { get; set; }
- ///
- /// 租户Id
- ///
- [SugarColumn(ColumnName="TenantId" )]
- public long? TenantId { get; set; }
- ///
- /// 排序字段
- ///
- [SugarColumn(ColumnName="OrderNum" )]
- public int? OrderNum { get; set; }
- ///
- /// 描述
- ///
- [SugarColumn(ColumnName="Remark" )]
- public string? Remark { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/SpecsGroupEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/SpecsGroupEntity.cs
deleted file mode 100644
index 8dd9c248..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/SpecsGroupEntity.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// 商品规格组表
- ///
- [SugarTable("SpecsGroup")]
- public partial class SpecsGroupEntity:IBaseModelEntity
- {
- public SpecsGroupEntity()
- {
- this.CreateTime = DateTime.Now;
- }
- [JsonConverter(typeof(ValueToStringConverter))]
- [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true )]
- public long Id { get; set; }
- ///
- /// 分类id
- ///
- [SugarColumn(ColumnName="CategoryId" )]
- public long? CategoryId { get; set; }
- ///
- /// 商品规格组名
- ///
- [SugarColumn(ColumnName="SpecsGroupName" )]
- public string SpecsGroupName { get; set; }
- ///
- /// 创建者
- ///
- [SugarColumn(ColumnName="CreateUser" )]
- public long? CreateUser { get; set; }
- ///
- /// 创建时间
- ///
- [SugarColumn(ColumnName="CreateTime" )]
- public DateTime? CreateTime { get; set; }
- ///
- /// 修改者
- ///
- [SugarColumn(ColumnName="ModifyUser" )]
- public long? ModifyUser { get; set; }
- ///
- /// 修改时间
- ///
- [SugarColumn(ColumnName="ModifyTime" )]
- public DateTime? ModifyTime { get; set; }
- ///
- /// 是否删除
- ///
- [SugarColumn(ColumnName="IsDeleted" )]
- public bool? IsDeleted { get; set; }
- ///
- /// 租户Id
- ///
- [SugarColumn(ColumnName="TenantId" )]
- public long? TenantId { get; set; }
- ///
- /// 排序字段
- ///
- [SugarColumn(ColumnName="OrderNum" )]
- public int? OrderNum { get; set; }
- ///
- /// 描述
- ///
- [SugarColumn(ColumnName="Remark" )]
- public string? Remark { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/SpuEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/SpuEntity.cs
deleted file mode 100644
index 51db453a..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/SpuEntity.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// Spu表
- ///
- [SugarTable("Spu")]
- public partial class SpuEntity:IBaseModelEntity
- {
- public SpuEntity()
- {
- this.CreateTime = DateTime.Now;
- }
- [JsonConverter(typeof(ValueToStringConverter))]
- [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true )]
- public long Id { get; set; }
- ///
- /// 商品分类Id
- ///
- [SugarColumn(ColumnName="CategoryId" )]
- public long? CategoryId { get; set; }
- ///
- /// 商品名称
- ///
- [SugarColumn(ColumnName="SpuName" )]
- public string? SpuName { get; set; }
- ///
- /// 商品详情
- ///
- [SugarColumn(ColumnName="Details" )]
- public string? Details { get; set; }
- ///
- /// 商品价格
- ///
- [SugarColumn(ColumnName="Price" )]
- public string? Price { get; set; }
-
- ///
- /// 创建者
- ///
- [SugarColumn(ColumnName="CreateUser" )]
- public long? CreateUser { get; set; }
- ///
- /// 创建时间
- ///
- [SugarColumn(ColumnName="CreateTime" )]
- public DateTime? CreateTime { get; set; }
- ///
- /// 修改者
- ///
- [SugarColumn(ColumnName="ModifyUser" )]
- public long? ModifyUser { get; set; }
- ///
- /// 修改时间
- ///
- [SugarColumn(ColumnName="ModifyTime" )]
- public DateTime? ModifyTime { get; set; }
- ///
- /// 是否删除
- ///
- [SugarColumn(ColumnName="IsDeleted" )]
- public bool? IsDeleted { get; set; }
- ///
- /// 租户Id
- ///
- [SugarColumn(ColumnName="TenantId" )]
- public long? TenantId { get; set; }
- ///
- /// 排序字段
- ///
- [SugarColumn(ColumnName="OrderNum" )]
- public int? OrderNum { get; set; }
- ///
- /// 描述
- ///
- [SugarColumn(ColumnName="Remark" )]
- public string? Remark { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/TenantEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/TenantEntity.cs
deleted file mode 100644
index 6fe01429..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/TenantEntity.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// 租户表
- ///
- [SugarTable("Tenant")]
- public partial class TenantEntity:IBaseModelEntity
- {
- public TenantEntity()
- {
- this.CreateTime = DateTime.Now;
- }
- [JsonConverter(typeof(ValueToStringConverter))]
- [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true )]
- public long Id { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="TenantName" )]
- public string? TenantName { get; set; }
- ///
- /// 创建者
- ///
- [SugarColumn(ColumnName="CreateUser" )]
- public long? CreateUser { get; set; }
- ///
- /// 创建时间
- ///
- [SugarColumn(ColumnName="CreateTime" )]
- public DateTime? CreateTime { get; set; }
- ///
- /// 修改者
- ///
- [SugarColumn(ColumnName="ModifyUser" )]
- public long? ModifyUser { get; set; }
- ///
- /// 修改时间
- ///
- [SugarColumn(ColumnName="ModifyTime" )]
- public DateTime? ModifyTime { get; set; }
- ///
- /// 是否删除
- ///
- [SugarColumn(ColumnName="IsDeleted" )]
- public bool? IsDeleted { get; set; }
- ///
- /// 租户Id
- ///
- [SugarColumn(ColumnName="TenantId" )]
- public long? TenantId { get; set; }
- ///
- /// 排序字段
- ///
- [SugarColumn(ColumnName="OrderNum" )]
- public int? OrderNum { get; set; }
- ///
- /// 描述
- ///
- [SugarColumn(ColumnName="Remark" )]
- public string? Remark { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/UserEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/UserEntity.cs
deleted file mode 100644
index 62203bb4..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/UserEntity.cs
+++ /dev/null
@@ -1,132 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// 用户表
- ///
- [SugarTable("User")]
- public partial class UserEntity:IBaseModelEntity
- {
- public UserEntity()
- {
- this.CreateTime = DateTime.Now;
- }
- [JsonConverter(typeof(ValueToStringConverter))]
- [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true )]
- public long Id { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="Name" )]
- public string? Name { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="Age" )]
- public int? Age { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="CreateUser" )]
- public long? CreateUser { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="CreateTime" )]
- public DateTime? CreateTime { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="ModifyUser" )]
- public long? ModifyUser { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="ModifyTime" )]
- public DateTime? ModifyTime { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="IsDeleted" )]
- public bool? IsDeleted { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="TenantId" )]
- public long? TenantId { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="UserName" )]
- public string? UserName { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="Password" )]
- public string? Password { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="Salt" )]
- public string? Salt { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="Icon" )]
- public string? Icon { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="Nick" )]
- public string? Nick { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="Email" )]
- public string? Email { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="Ip" )]
- public string? Ip { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="Address" )]
- public string? Address { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="Phone" )]
- public string? Phone { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="Introduction" )]
- public string? Introduction { get; set; }
- ///
- /// 排序字段
- ///
- [SugarColumn(ColumnName="OrderNum" )]
- public int? OrderNum { get; set; }
- ///
- /// 描述
- ///
- [SugarColumn(ColumnName="Remark" )]
- public string? Remark { get; set; }
- ///
- /// 部门id
- ///
- [SugarColumn(ColumnName="DeptId" )]
- public long? DeptId { get; set; }
- ///
- /// 性别
- ///
- [SugarColumn(ColumnName="Sex" )]
- public int? Sex { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/UserPostEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/UserPostEntity.cs
deleted file mode 100644
index bf737ff6..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/UserPostEntity.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// 用户岗位表
- ///
- [SugarTable("UserPost")]
- public partial class UserPostEntity:IBaseModelEntity
- {
- public UserPostEntity()
- {
- this.CreateTime = DateTime.Now;
- }
- [JsonConverter(typeof(ValueToStringConverter))]
- [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true )]
- public long Id { get; set; }
- ///
- /// 用户id s
- ///
- [SugarColumn(ColumnName="UserId" )]
- public long? UserId { get; set; }
- ///
- /// 岗位id
- ///
- [SugarColumn(ColumnName= "PostId")]
- public long? PostId { get; set; }
- ///
- /// 创建者
- ///
- [SugarColumn(ColumnName="CreateUser" )]
- public long? CreateUser { get; set; }
- ///
- /// 创建时间
- ///
- [SugarColumn(ColumnName="CreateTime" )]
- public DateTime? CreateTime { get; set; }
- ///
- /// 修改者
- ///
- [SugarColumn(ColumnName="ModifyUser" )]
- public long? ModifyUser { get; set; }
- ///
- /// 修改时间
- ///
- [SugarColumn(ColumnName="ModifyTime" )]
- public DateTime? ModifyTime { get; set; }
- ///
- /// 是否删除
- ///
- [SugarColumn(ColumnName="IsDeleted" )]
- public bool? IsDeleted { get; set; }
- ///
- /// 租户Id
- ///
- [SugarColumn(ColumnName="TenantId" )]
- public long? TenantId { get; set; }
- ///
- /// 排序字段
- ///
- [SugarColumn(ColumnName="OrderNum" )]
- public int? OrderNum { get; set; }
- ///
- /// 描述
- ///
- [SugarColumn(ColumnName="Remark" )]
- public string? Remark { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/UserRoleEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/UserRoleEntity.cs
deleted file mode 100644
index d1db9129..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/ModelsTemplate/UserRoleEntity.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// 用户角色关系表
- ///
- [SugarTable("UserRole")]
- public partial class UserRoleEntity:IBaseModelEntity
- {
- public UserRoleEntity()
- {
- this.CreateTime = DateTime.Now;
- }
- [JsonConverter(typeof(ValueToStringConverter))]
- [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true )]
- public long Id { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="RoleId" )]
- public long? RoleId { get; set; }
- ///
- ///
- ///
- [SugarColumn(ColumnName="UserId" )]
- public long? UserId { get; set; }
- ///
- /// 创建者
- ///
- [SugarColumn(ColumnName="CreateUser" )]
- public long? CreateUser { get; set; }
- ///
- /// 创建时间
- ///
- [SugarColumn(ColumnName="CreateTime" )]
- public DateTime? CreateTime { get; set; }
- ///
- /// 修改者
- ///
- [SugarColumn(ColumnName="ModifyUser" )]
- public long? ModifyUser { get; set; }
- ///
- /// 修改时间
- ///
- [SugarColumn(ColumnName="ModifyTime" )]
- public DateTime? ModifyTime { get; set; }
- ///
- /// 是否删除
- ///
- [SugarColumn(ColumnName="IsDeleted" )]
- public bool? IsDeleted { get; set; }
- ///
- /// 租户Id
- ///
- [SugarColumn(ColumnName="TenantId" )]
- public long? TenantId { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/ConfigEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/ConfigEntity.cs
new file mode 100644
index 00000000..cd5d8d4a
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/ConfigEntity.cs
@@ -0,0 +1,84 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text.Json.Serialization;
+using SqlSugar;
+using Yi.Framework.Model.Base;
+
+namespace Yi.Framework.Model.RABC.Entitys
+{
+ ///
+ /// 配置表
+ ///
+ [SugarTable("Config")]
+ public partial class ConfigEntity : IBaseModelEntity
+ {
+ public ConfigEntity()
+ {
+ CreateTime = DateTime.Now;
+ }
+ [JsonConverter(typeof(ValueToStringConverter))]
+ [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
+ public long Id { get; set; }
+ ///
+ /// 配置名称
+ ///
+ [SugarColumn(ColumnName = "ConfigName")]
+ public string? ConfigName { get; set; }
+ ///
+ /// 配置键
+ ///
+ [SugarColumn(ColumnName = "ConfigKey")]
+ public string? ConfigKey { get; set; }
+ ///
+ /// 配置值
+ ///
+ [SugarColumn(ColumnName = "ConfigValue")]
+ public string? ConfigValue { get; set; }
+ ///
+ /// 配置类别
+ ///
+ [SugarColumn(ColumnName = "ConfigType")]
+ public string? ConfigType { get; set; }
+ ///
+ /// 创建者
+ ///
+ [SugarColumn(ColumnName = "CreateUser")]
+ public long? CreateUser { get; set; }
+ ///
+ /// 创建时间
+ ///
+ [SugarColumn(ColumnName = "CreateTime")]
+ public DateTime? CreateTime { get; set; }
+ ///
+ /// 修改者
+ ///
+ [SugarColumn(ColumnName = "ModifyUser")]
+ public long? ModifyUser { get; set; }
+ ///
+ /// 修改时间
+ ///
+ [SugarColumn(ColumnName = "ModifyTime")]
+ public DateTime? ModifyTime { get; set; }
+ ///
+ /// 是否删除
+ ///
+ [SugarColumn(ColumnName = "IsDeleted")]
+ public bool? IsDeleted { get; set; }
+ ///
+ /// 租户Id
+ ///
+ [SugarColumn(ColumnName = "TenantId")]
+ public long? TenantId { get; set; }
+ ///
+ /// 排序字段
+ ///
+ [SugarColumn(ColumnName = "OrderNum")]
+ public int? OrderNum { get; set; }
+ ///
+ /// 描述
+ ///
+ [SugarColumn(ColumnName = "Remark")]
+ public string? Remark { get; set; }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/DeptEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/DeptEntity.cs
new file mode 100644
index 00000000..e5d678a4
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/DeptEntity.cs
@@ -0,0 +1,84 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text.Json.Serialization;
+using SqlSugar;
+using Yi.Framework.Model.Base;
+
+namespace Yi.Framework.Model.RABC.Entitys
+{
+ ///
+ /// 部门表
+ ///
+ [SugarTable("Dept")]
+ public partial class DeptEntity : IBaseModelEntity
+ {
+ public DeptEntity()
+ {
+ CreateTime = DateTime.Now;
+ }
+ [JsonConverter(typeof(ValueToStringConverter))]
+ [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
+ public long Id { get; set; }
+ ///
+ /// 部门名称
+ ///
+ [SugarColumn(ColumnName = "DeptName")]
+ public string? DeptName { get; set; }
+ ///
+ /// 部门编码
+ ///
+ [SugarColumn(ColumnName = "DeptCode")]
+ public string? DeptCode { get; set; }
+ ///
+ /// 负责人
+ ///
+ [SugarColumn(ColumnName = "Leader")]
+ public string? Leader { get; set; }
+ ///
+ /// 父级id
+ ///
+ [SugarColumn(ColumnName = "ParentId")]
+ public long? ParentId { get; set; }
+ ///
+ /// 创建者
+ ///
+ [SugarColumn(ColumnName = "CreateUser")]
+ public long? CreateUser { get; set; }
+ ///
+ /// 创建时间
+ ///
+ [SugarColumn(ColumnName = "CreateTime")]
+ public DateTime? CreateTime { get; set; }
+ ///
+ /// 修改者
+ ///
+ [SugarColumn(ColumnName = "ModifyUser")]
+ public long? ModifyUser { get; set; }
+ ///
+ /// 修改时间
+ ///
+ [SugarColumn(ColumnName = "ModifyTime")]
+ public DateTime? ModifyTime { get; set; }
+ ///
+ /// 是否删除
+ ///
+ [SugarColumn(ColumnName = "IsDeleted")]
+ public bool? IsDeleted { get; set; }
+ ///
+ /// 租户Id
+ ///
+ [SugarColumn(ColumnName = "TenantId")]
+ public long? TenantId { get; set; }
+ ///
+ /// 排序字段
+ ///
+ [SugarColumn(ColumnName = "OrderNum")]
+ public int? OrderNum { get; set; }
+ ///
+ /// 描述
+ ///
+ [SugarColumn(ColumnName = "Remark")]
+ public string? Remark { get; set; }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/DictionaryEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/DictionaryEntity.cs
new file mode 100644
index 00000000..f973ebe4
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/DictionaryEntity.cs
@@ -0,0 +1,74 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text.Json.Serialization;
+using SqlSugar;
+using Yi.Framework.Model.Base;
+
+namespace Yi.Framework.Model.RABC.Entitys
+{
+ ///
+ /// 字典表
+ ///
+ [SugarTable("Dictionary")]
+ public partial class DictionaryEntity : IBaseModelEntity
+ {
+ public DictionaryEntity()
+ {
+ CreateTime = DateTime.Now;
+ }
+ [JsonConverter(typeof(ValueToStringConverter))]
+ [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
+ public long Id { get; set; }
+ ///
+ /// 字典名称
+ ///
+ [SugarColumn(ColumnName = "DictName")]
+ public string? DictName { get; set; }
+ ///
+ /// 字典类型
+ ///
+ [SugarColumn(ColumnName = "DictType")]
+ public string? DictType { get; set; }
+ ///
+ /// 创建者
+ ///
+ [SugarColumn(ColumnName = "CreateUser")]
+ public long? CreateUser { get; set; }
+ ///
+ /// 创建时间
+ ///
+ [SugarColumn(ColumnName = "CreateTime")]
+ public DateTime? CreateTime { get; set; }
+ ///
+ /// 修改者
+ ///
+ [SugarColumn(ColumnName = "ModifyUser")]
+ public long? ModifyUser { get; set; }
+ ///
+ /// 修改时间
+ ///
+ [SugarColumn(ColumnName = "ModifyTime")]
+ public DateTime? ModifyTime { get; set; }
+ ///
+ /// 是否删除
+ ///
+ [SugarColumn(ColumnName = "IsDeleted")]
+ public bool? IsDeleted { get; set; }
+ ///
+ /// 租户Id
+ ///
+ [SugarColumn(ColumnName = "TenantId")]
+ public long? TenantId { get; set; }
+ ///
+ /// 排序字段
+ ///
+ [SugarColumn(ColumnName = "OrderNum")]
+ public int? OrderNum { get; set; }
+ ///
+ /// 描述
+ ///
+ [SugarColumn(ColumnName = "Remark")]
+ public string? Remark { get; set; }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/DictionaryInfoEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/DictionaryInfoEntity.cs
new file mode 100644
index 00000000..1776bf23
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/DictionaryInfoEntity.cs
@@ -0,0 +1,94 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text.Json.Serialization;
+using SqlSugar;
+using Yi.Framework.Model.Base;
+
+namespace Yi.Framework.Model.RABC.Entitys
+{
+ ///
+ /// 字典信息表
+ ///
+ [SugarTable("DictionaryInfo")]
+ public partial class DictionaryInfoEntity : IBaseModelEntity
+ {
+ public DictionaryInfoEntity()
+ {
+ CreateTime = DateTime.Now;
+ }
+ [JsonConverter(typeof(ValueToStringConverter))]
+ [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
+ public long Id { get; set; }
+ ///
+ /// 字典类型
+ ///
+ [SugarColumn(ColumnName = "DictType")]
+ public string? DictType { get; set; }
+ ///
+ /// 字典标签
+ ///
+ [SugarColumn(ColumnName = "DictLabel")]
+ public string? DictLabel { get; set; }
+ ///
+ /// 字典值
+ ///
+ [SugarColumn(ColumnName = "DictValue")]
+ public string? DictValue { get; set; }
+ ///
+ /// 是否为该类型的默认值
+ ///
+ [SugarColumn(ColumnName = "IsDefault")]
+ public bool? IsDefault { get; set; }
+ ///
+ /// 创建者
+ ///
+ [SugarColumn(ColumnName = "CreateUser")]
+ public long? CreateUser { get; set; }
+ ///
+ /// 创建时间
+ ///
+ [SugarColumn(ColumnName = "CreateTime")]
+ public DateTime? CreateTime { get; set; }
+ ///
+ /// 修改者
+ ///
+ [SugarColumn(ColumnName = "ModifyUser")]
+ public long? ModifyUser { get; set; }
+ ///
+ /// 修改时间
+ ///
+ [SugarColumn(ColumnName = "ModifyTime")]
+ public DateTime? ModifyTime { get; set; }
+ ///
+ /// 是否删除
+ ///
+ [SugarColumn(ColumnName = "IsDeleted")]
+ public bool? IsDeleted { get; set; }
+ ///
+ /// 租户Id
+ ///
+ [SugarColumn(ColumnName = "TenantId")]
+ public long? TenantId { get; set; }
+ ///
+ /// 排序字段
+ ///
+ [SugarColumn(ColumnName = "OrderNum")]
+ public int? OrderNum { get; set; }
+ ///
+ /// 描述
+ ///
+ [SugarColumn(ColumnName = "Remark")]
+ public string? Remark { get; set; }
+ ///
+ /// tag类型
+ ///
+ [SugarColumn(ColumnName = "ListClass")]
+ public string? ListClass { get; set; }
+ ///
+ /// tagClass
+ ///
+ [SugarColumn(ColumnName = "CssClass")]
+ public string? CssClass { get; set; }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/FileEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/FileEntity.cs
new file mode 100644
index 00000000..b11c2be9
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/FileEntity.cs
@@ -0,0 +1,84 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text.Json.Serialization;
+using SqlSugar;
+using Yi.Framework.Model.Base;
+
+namespace Yi.Framework.Model.RABC.Entitys
+{
+ ///
+ /// 文件表
+ ///
+ [SugarTable("File")]
+ public partial class FileEntity : IBaseModelEntity
+ {
+ public FileEntity()
+ {
+ CreateTime = DateTime.Now;
+ }
+ [JsonConverter(typeof(ValueToStringConverter))]
+ [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
+ public long Id { get; set; }
+ ///
+ /// 文件类型
+ ///
+ [SugarColumn(ColumnName = "FileType")]
+ public string? FileType { get; set; }
+ ///
+ /// 文件大小
+ ///
+ [SugarColumn(ColumnName = "FileSize")]
+ public decimal? FileSize { get; set; }
+ ///
+ /// 文件名
+ ///
+ [SugarColumn(ColumnName = "FileName")]
+ public string? FileName { get; set; }
+ ///
+ /// 文件路径
+ ///
+ [SugarColumn(ColumnName = "FilePath")]
+ public string? FilePath { get; set; }
+ ///
+ /// 创建者
+ ///
+ [SugarColumn(ColumnName = "CreateUser")]
+ public long? CreateUser { get; set; }
+ ///
+ /// 创建时间
+ ///
+ [SugarColumn(ColumnName = "CreateTime")]
+ public DateTime? CreateTime { get; set; }
+ ///
+ /// 修改者
+ ///
+ [SugarColumn(ColumnName = "ModifyUser")]
+ public long? ModifyUser { get; set; }
+ ///
+ /// 修改时间
+ ///
+ [SugarColumn(ColumnName = "ModifyTime")]
+ public DateTime? ModifyTime { get; set; }
+ ///
+ /// 是否删除
+ ///
+ [SugarColumn(ColumnName = "IsDeleted")]
+ public bool? IsDeleted { get; set; }
+ ///
+ /// 租户Id
+ ///
+ [SugarColumn(ColumnName = "TenantId")]
+ public long? TenantId { get; set; }
+ ///
+ /// 排序字段
+ ///
+ [SugarColumn(ColumnName = "OrderNum")]
+ public int? OrderNum { get; set; }
+ ///
+ /// 描述
+ ///
+ [SugarColumn(ColumnName = "Remark")]
+ public string? Remark { get; set; }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/LogEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/LogEntity.cs
new file mode 100644
index 00000000..9b64f948
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/LogEntity.cs
@@ -0,0 +1,69 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text.Json.Serialization;
+using SqlSugar;
+using Yi.Framework.Model.Base;
+
+namespace Yi.Framework.Model.RABC.Entitys
+{
+ [SplitTable(SplitType.Year)]
+ [SugarTable("SplitLog_{year}{month}{day}")]
+ public partial class LogEntity : IBaseModelEntity
+ {
+ public LogEntity()
+ {
+ CreateTime = DateTime.Now;
+ }
+ [JsonConverter(typeof(ValueToStringConverter))]
+ [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
+ public long Id { get; set; }
+ ///
+ /// 创建者
+ ///
+ [SugarColumn(ColumnName = "CreateUser")]
+ public long? CreateUser { get; set; }
+ ///
+ /// 修改者
+ ///
+ [SugarColumn(ColumnName = "ModifyUser")]
+ public long? ModifyUser { get; set; }
+ ///
+ /// 修改时间
+ ///
+ [SugarColumn(ColumnName = "ModifyTime")]
+ public DateTime? ModifyTime { get; set; }
+ ///
+ /// 是否删除
+ ///
+ [SugarColumn(ColumnName = "IsDeleted")]
+ public bool? IsDeleted { get; set; }
+ ///
+ /// 租户Id
+ ///
+ [SugarColumn(ColumnName = "TenantId")]
+ public long? TenantId { get; set; }
+ ///
+ /// 消息
+ ///
+ [SugarColumn(ColumnName = "Message")]
+ public string? Message { get; set; }
+ ///
+ /// 排序字段
+ ///
+ [SugarColumn(ColumnName = "OrderNum")]
+ public int? OrderNum { get; set; }
+ ///
+ /// 描述
+ ///
+ [SugarColumn(ColumnName = "Remark")]
+ public string? Remark { get; set; }
+
+ [SplitField] //分表字段 在插入的时候会根据这个字段插入哪个表,在更新删除的时候用这个字段找出相关表
+ ///
+ /// 创建时间
+ ///
+ [SugarColumn(ColumnName = "CreateTime")]
+ public DateTime? CreateTime { get; set; }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/LoginLogEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/LoginLogEntity.cs
new file mode 100644
index 00000000..69b59b76
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/LoginLogEntity.cs
@@ -0,0 +1,94 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text.Json.Serialization;
+using SqlSugar;
+using Yi.Framework.Model.Base;
+
+namespace Yi.Framework.Model.RABC.Entitys
+{
+ ///
+ /// 登入日志
+ ///
+ [SugarTable("LoginLog")]
+ public partial class LoginLogEntity : IBaseModelEntity
+ {
+ public LoginLogEntity()
+ {
+ CreateTime = DateTime.Now;
+ }
+ [JsonConverter(typeof(ValueToStringConverter))]
+ [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
+ public long Id { get; set; }
+ ///
+ /// 登录用户
+ ///
+ [SugarColumn(ColumnName = "LoginUser")]
+ public string? LoginUser { get; set; }
+ ///
+ /// 登录地点
+ ///
+ [SugarColumn(ColumnName = "LoginLocation")]
+ public string? LoginLocation { get; set; }
+ ///
+ /// 登录Ip
+ ///
+ [SugarColumn(ColumnName = "LoginIp")]
+ public string? LoginIp { get; set; }
+ ///
+ /// 浏览器
+ ///
+ [SugarColumn(ColumnName = "Browser")]
+ public string? Browser { get; set; }
+ ///
+ /// 操作系统
+ ///
+ [SugarColumn(ColumnName = "Os")]
+ public string? Os { get; set; }
+ ///
+ /// 登录信息
+ ///
+ [SugarColumn(ColumnName = "LogMsg")]
+ public string? LogMsg { get; set; }
+ ///
+ /// 创建者
+ ///
+ [SugarColumn(ColumnName = "CreateUser")]
+ public long? CreateUser { get; set; }
+ ///
+ /// 创建时间
+ ///
+ [SugarColumn(ColumnName = "CreateTime")]
+ public DateTime? CreateTime { get; set; }
+ ///
+ /// 修改者
+ ///
+ [SugarColumn(ColumnName = "ModifyUser")]
+ public long? ModifyUser { get; set; }
+ ///
+ /// 修改时间
+ ///
+ [SugarColumn(ColumnName = "ModifyTime")]
+ public DateTime? ModifyTime { get; set; }
+ ///
+ /// 租户Id
+ ///
+ [SugarColumn(ColumnName = "TenantId")]
+ public long? TenantId { get; set; }
+ ///
+ /// 排序字段
+ ///
+ [SugarColumn(ColumnName = "OrderNum")]
+ public int? OrderNum { get; set; }
+ ///
+ /// 描述
+ ///
+ [SugarColumn(ColumnName = "Remark")]
+ public string? Remark { get; set; }
+ ///
+ /// 是否删除
+ ///
+ [SugarColumn(ColumnName = "IsDeleted")]
+ public bool? IsDeleted { get; set; }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/MenuEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/MenuEntity.cs
new file mode 100644
index 00000000..f0ee48e7
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/MenuEntity.cs
@@ -0,0 +1,185 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text.Json.Serialization;
+using SqlSugar;
+using Yi.Framework.Common.Enum;
+using Yi.Framework.Common.Models;
+using Yi.Framework.Model.Base;
+
+namespace Yi.Framework.Model.RABC.Entitys
+{
+ ///
+ /// 菜单表
+ ///
+ [SugarTable("Menu")]
+ public partial class MenuEntity : IBaseModelEntity
+ {
+ public MenuEntity()
+ {
+ IsCache = false;
+ CreateTime = DateTime.Now;
+ }
+ [JsonConverter(typeof(ValueToStringConverter))]
+ [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
+ public long Id { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "MenuName")]
+ public string? MenuName { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "MenuType")]
+ public int? MenuType { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "PermissionCode")]
+ public string? PermissionCode { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "ParentId")]
+ public long? ParentId { get; set; }
+ ///
+ /// 创建者
+ ///
+ [SugarColumn(ColumnName = "CreateUser")]
+ public long? CreateUser { get; set; }
+ ///
+ /// 创建时间
+ ///
+ [SugarColumn(ColumnName = "CreateTime")]
+ public DateTime? CreateTime { get; set; }
+ ///
+ /// 修改者
+ ///
+ [SugarColumn(ColumnName = "ModifyUser")]
+ public long? ModifyUser { get; set; }
+ ///
+ /// 修改时间
+ ///
+ [SugarColumn(ColumnName = "ModifyTime")]
+ public DateTime? ModifyTime { get; set; }
+ ///
+ /// 是否删除
+ ///
+ [SugarColumn(ColumnName = "IsDeleted")]
+ public bool? IsDeleted { get; set; }
+ ///
+ /// 租户Id
+ ///
+ [SugarColumn(ColumnName = "TenantId")]
+ public long? TenantId { get; set; }
+ ///
+ /// 菜单图标
+ ///
+ [SugarColumn(ColumnName = "MenuIcon")]
+ public string? MenuIcon { get; set; }
+ ///
+ /// 菜单组件路由
+ ///
+ [SugarColumn(ColumnName = "Router")]
+ public string? Router { get; set; }
+ ///
+ /// 是否为外部链接
+ ///
+ [SugarColumn(ColumnName = "IsLink")]
+ public bool? IsLink { get; set; }
+ ///
+ /// 是否缓存
+ ///
+ [SugarColumn(ColumnName = "IsCache")]
+ public bool? IsCache { get; set; }
+ ///
+ /// 是否显示
+ ///
+ [SugarColumn(ColumnName = "IsShow")]
+ public bool? IsShow { get; set; }
+ ///
+ /// 排序字段
+ ///
+ [SugarColumn(ColumnName = "OrderNum")]
+ public int? OrderNum { get; set; }
+ ///
+ /// 描述
+ ///
+ [SugarColumn(ColumnName = "Remark")]
+ public string? Remark { get; set; }
+ ///
+ /// 组件路径
+ ///
+ [SugarColumn(ColumnName = "Component")]
+ public string? Component { get; set; }
+ ///
+ /// 路由参数
+ ///
+ [SugarColumn(ColumnName = "Query")]
+ public string? Query { get; set; }
+
+ [SugarColumn(IsIgnore = true)]
+ public List? Children { get; set; }
+
+
+ public static List RouterBuild(List menus)
+ {
+ menus = menus.Where(m => m.MenuType != null && m.MenuType != MenuTypeEnum.Component.GetHashCode()).ToList();
+ List routers = new();
+ foreach (var m in menus)
+ {
+
+ var r = new VueRouterModel();
+ r.OrderNum = m.OrderNum ?? 0;
+ var routerName = m.Router?.Split("/").LastOrDefault();
+ r.Id = m.Id;
+ r.ParentId = m.ParentId ?? -1;
+
+ //开头大写
+ r.Name = routerName?.First().ToString().ToUpper() + routerName?.Substring(1);
+ r.Path = m.Router;
+ r.Hidden = !m.IsShow ?? false;
+
+
+ if (m.MenuType == MenuTypeEnum.Catalogue.GetHashCode())
+ {
+ r.Redirect = "noRedirect";
+ r.AlwaysShow = true;
+
+ //判断是否为最顶层的路由
+ if (0 == m.ParentId)
+ {
+ r.Component = "Layout";
+ }
+ else
+ {
+ r.Component = "ParentView";
+ }
+ }
+ if (m.MenuType == MenuTypeEnum.Menu.GetHashCode())
+ {
+
+ r.Redirect = "noRedirect";
+ r.AlwaysShow = true;
+ r.Component = m.Component;
+ r.AlwaysShow = false;
+ }
+ r.Meta = new Meta
+ {
+ Title = m.MenuName,
+ Icon = m.MenuIcon,
+ NoCache = !m.IsCache ?? true
+ };
+ if (m.IsLink ?? false)
+ {
+ r.Meta.link = m.Router;
+ r.AlwaysShow = false;
+ }
+
+ routers.Add(r);
+ }
+ return Common.Helper.TreeHelper.SetTree(routers);
+ }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/OperationLogEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/OperationLogEntity.cs
new file mode 100644
index 00000000..2ee7dee0
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/OperationLogEntity.cs
@@ -0,0 +1,109 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text.Json.Serialization;
+using SqlSugar;
+using Yi.Framework.Model.Base;
+
+namespace Yi.Framework.Model.RABC.Entitys
+{
+ ///
+ /// 操作日志表
+ ///
+ [SugarTable("OperationLog")]
+ public partial class OperationLogEntity : IBaseModelEntity
+ {
+ public OperationLogEntity()
+ {
+ CreateTime = DateTime.Now;
+ }
+ [JsonConverter(typeof(ValueToStringConverter))]
+ [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
+ public long Id { get; set; }
+ ///
+ /// 操作模块
+ ///
+ [SugarColumn(ColumnName = "Title")]
+ public string? Title { get; set; }
+ ///
+ /// 操作类型
+ ///
+ [SugarColumn(ColumnName = "OperType")]
+ public int? OperType { get; set; }
+ ///
+ /// 请求方法
+ ///
+ [SugarColumn(ColumnName = "RequestMethod")]
+ public string? RequestMethod { get; set; }
+ ///
+ /// 操作人员
+ ///
+ [SugarColumn(ColumnName = "OperUser")]
+ public string? OperUser { get; set; }
+ ///
+ /// 操作Ip
+ ///
+ [SugarColumn(ColumnName = "OperIp")]
+ public string? OperIp { get; set; }
+ ///
+ /// 操作地点
+ ///
+ [SugarColumn(ColumnName = "OperLocation")]
+ public string? OperLocation { get; set; }
+ ///
+ /// 操作方法
+ ///
+ [SugarColumn(ColumnName = "Method")]
+ public string? Method { get; set; }
+ ///
+ /// 请求参数
+ ///
+ [SugarColumn(ColumnName = "RequestParam")]
+ public string? RequestParam { get; set; }
+ ///
+ /// 请求结果
+ ///
+ [SugarColumn(ColumnName = "RequestResult")]
+ public string? RequestResult { get; set; }
+ ///
+ /// 创建者
+ ///
+ [SugarColumn(ColumnName = "CreateUser")]
+ public long? CreateUser { get; set; }
+ ///
+ /// 创建时间
+ ///
+ [SugarColumn(ColumnName = "CreateTime")]
+ public DateTime? CreateTime { get; set; }
+ ///
+ /// 修改者
+ ///
+ [SugarColumn(ColumnName = "ModifyUser")]
+ public long? ModifyUser { get; set; }
+ ///
+ /// 修改时间
+ ///
+ [SugarColumn(ColumnName = "ModifyTime")]
+ public DateTime? ModifyTime { get; set; }
+ ///
+ /// 租户Id
+ ///
+ [SugarColumn(ColumnName = "TenantId")]
+ public long? TenantId { get; set; }
+ ///
+ /// 排序字段
+ ///
+ [SugarColumn(ColumnName = "OrderNum")]
+ public int? OrderNum { get; set; }
+ ///
+ /// 描述
+ ///
+ [SugarColumn(ColumnName = "Remark")]
+ public string? Remark { get; set; }
+ ///
+ /// 是否删除
+ ///
+ [SugarColumn(ColumnName = "IsDeleted")]
+ public bool? IsDeleted { get; set; }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/PostEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/PostEntity.cs
new file mode 100644
index 00000000..c674cf53
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/PostEntity.cs
@@ -0,0 +1,74 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text.Json.Serialization;
+using SqlSugar;
+using Yi.Framework.Model.Base;
+
+namespace Yi.Framework.Model.RABC.Entitys
+{
+ ///
+ /// 岗位表
+ ///
+ [SugarTable("Post")]
+ public partial class PostEntity : IBaseModelEntity
+ {
+ public PostEntity()
+ {
+ CreateTime = DateTime.Now;
+ }
+ [JsonConverter(typeof(ValueToStringConverter))]
+ [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
+ public long Id { get; set; }
+ ///
+ /// 岗位编码
+ ///
+ [SugarColumn(ColumnName = "PostCode")]
+ public string? PostCode { get; set; }
+ ///
+ /// 岗位名称
+ ///
+ [SugarColumn(ColumnName = "PostName")]
+ public string? PostName { get; set; }
+ ///
+ /// 创建者
+ ///
+ [SugarColumn(ColumnName = "CreateUser")]
+ public long? CreateUser { get; set; }
+ ///
+ /// 创建时间
+ ///
+ [SugarColumn(ColumnName = "CreateTime")]
+ public DateTime? CreateTime { get; set; }
+ ///
+ /// 修改者
+ ///
+ [SugarColumn(ColumnName = "ModifyUser")]
+ public long? ModifyUser { get; set; }
+ ///
+ /// 修改时间
+ ///
+ [SugarColumn(ColumnName = "ModifyTime")]
+ public DateTime? ModifyTime { get; set; }
+ ///
+ /// 是否删除
+ ///
+ [SugarColumn(ColumnName = "IsDeleted")]
+ public bool? IsDeleted { get; set; }
+ ///
+ /// 租户Id
+ ///
+ [SugarColumn(ColumnName = "TenantId")]
+ public long? TenantId { get; set; }
+ ///
+ /// 排序字段
+ ///
+ [SugarColumn(ColumnName = "OrderNum")]
+ public int? OrderNum { get; set; }
+ ///
+ /// 描述
+ ///
+ [SugarColumn(ColumnName = "Remark")]
+ public string? Remark { get; set; }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/RoleDeptEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/RoleDeptEntity.cs
new file mode 100644
index 00000000..78f7a18c
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/RoleDeptEntity.cs
@@ -0,0 +1,74 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text.Json.Serialization;
+using SqlSugar;
+using Yi.Framework.Model.Base;
+
+namespace Yi.Framework.Model.RABC.Entitys
+{
+ ///
+ /// 角色部门关系表
+ ///
+ [SugarTable("RoleDept")]
+ public partial class RoleDeptEntity : IBaseModelEntity
+ {
+ public RoleDeptEntity()
+ {
+ CreateTime = DateTime.Now;
+ }
+ [JsonConverter(typeof(ValueToStringConverter))]
+ [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
+ public long Id { get; set; }
+ ///
+ /// 角色id
+ ///
+ [SugarColumn(ColumnName = "RoleId")]
+ public long? RoleId { get; set; }
+ ///
+ /// 部门id
+ ///
+ [SugarColumn(ColumnName = "DeptId")]
+ public long? DeptId { get; set; }
+ ///
+ /// 创建者
+ ///
+ [SugarColumn(ColumnName = "CreateUser")]
+ public long? CreateUser { get; set; }
+ ///
+ /// 创建时间
+ ///
+ [SugarColumn(ColumnName = "CreateTime")]
+ public DateTime? CreateTime { get; set; }
+ ///
+ /// 修改者
+ ///
+ [SugarColumn(ColumnName = "ModifyUser")]
+ public long? ModifyUser { get; set; }
+ ///
+ /// 修改时间
+ ///
+ [SugarColumn(ColumnName = "ModifyTime")]
+ public DateTime? ModifyTime { get; set; }
+ ///
+ /// 是否删除
+ ///
+ [SugarColumn(ColumnName = "IsDeleted")]
+ public bool? IsDeleted { get; set; }
+ ///
+ /// 租户Id
+ ///
+ [SugarColumn(ColumnName = "TenantId")]
+ public long? TenantId { get; set; }
+ ///
+ /// 排序字段
+ ///
+ [SugarColumn(ColumnName = "OrderNum")]
+ public int? OrderNum { get; set; }
+ ///
+ /// 描述
+ ///
+ [SugarColumn(ColumnName = "Remark")]
+ public string? Remark { get; set; }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/RoleEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/RoleEntity.cs
new file mode 100644
index 00000000..46dcbc86
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/RoleEntity.cs
@@ -0,0 +1,86 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text.Json.Serialization;
+using SqlSugar;
+using Yi.Framework.Model.Base;
+
+namespace Yi.Framework.Model.RABC.Entitys
+{
+ ///
+ /// 角色表
+ ///
+ [SugarTable("Role")]
+ public partial class RoleEntity : IBaseModelEntity
+ {
+ public RoleEntity()
+ {
+ CreateTime = DateTime.Now;
+ }
+ [JsonConverter(typeof(ValueToStringConverter))]
+ [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
+ public long Id { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "RoleName")]
+ public string? RoleName { get; set; }
+ ///
+ /// 创建者
+ ///
+ [SugarColumn(ColumnName = "CreateUser")]
+ public long? CreateUser { get; set; }
+ ///
+ /// 创建时间
+ ///
+ [SugarColumn(ColumnName = "CreateTime")]
+ public DateTime? CreateTime { get; set; }
+ ///
+ /// 修改时间
+ ///
+ [SugarColumn(ColumnName = "ModifyTime")]
+ public DateTime? ModifyTime { get; set; }
+ ///
+ /// 是否删除
+ ///
+ [SugarColumn(ColumnName = "IsDeleted")]
+ public bool? IsDeleted { get; set; }
+ ///
+ /// 租户Id
+ ///
+ [SugarColumn(ColumnName = "TenantId")]
+ public long? TenantId { get; set; }
+ ///
+ /// 修改者
+ ///
+ [SugarColumn(ColumnName = "ModifyUser")]
+ public long? ModifyUser { get; set; }
+ ///
+ /// 角色编码
+ ///
+ [SugarColumn(ColumnName = "RoleCode")]
+ public string? RoleCode { get; set; }
+ ///
+ /// 排序字段
+ ///
+ [SugarColumn(ColumnName = "OrderNum")]
+ public int? OrderNum { get; set; }
+ ///
+ /// 描述
+ ///
+ [SugarColumn(ColumnName = "Remark")]
+ public string? Remark { get; set; }
+ ///
+ /// 角色数据范围
+ ///
+ [SugarColumn(ColumnName = "DataScope")]
+ public int? DataScope { get; set; }
+
+
+ [Navigate(typeof(RoleMenuEntity), nameof(RoleMenuEntity.RoleId), nameof(RoleMenuEntity.MenuId))]
+ public List? Menus { get; set; }
+
+ [Navigate(typeof(RoleDeptEntity), nameof(RoleDeptEntity.RoleId), nameof(RoleDeptEntity.DeptId))]
+ public List? Depts { get; set; }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/RoleMenuEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/RoleMenuEntity.cs
new file mode 100644
index 00000000..7e9a3cba
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/RoleMenuEntity.cs
@@ -0,0 +1,64 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text.Json.Serialization;
+using SqlSugar;
+using Yi.Framework.Model.Base;
+
+namespace Yi.Framework.Model.RABC.Entitys
+{
+ ///
+ /// 角色菜单关系表
+ ///
+ [SugarTable("RoleMenu")]
+ public partial class RoleMenuEntity : IBaseModelEntity
+ {
+ public RoleMenuEntity()
+ {
+ CreateTime = DateTime.Now;
+ }
+ [JsonConverter(typeof(ValueToStringConverter))]
+ [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
+ public long Id { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "RoleId")]
+ public long? RoleId { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "MenuId")]
+ public long? MenuId { get; set; }
+ ///
+ /// 创建者
+ ///
+ [SugarColumn(ColumnName = "CreateUser")]
+ public long? CreateUser { get; set; }
+ ///
+ /// 创建时间
+ ///
+ [SugarColumn(ColumnName = "CreateTime")]
+ public DateTime? CreateTime { get; set; }
+ ///
+ /// 修改者
+ ///
+ [SugarColumn(ColumnName = "ModifyUser")]
+ public long? ModifyUser { get; set; }
+ ///
+ /// 修改时间
+ ///
+ [SugarColumn(ColumnName = "ModifyTime")]
+ public DateTime? ModifyTime { get; set; }
+ ///
+ /// 是否删除
+ ///
+ [SugarColumn(ColumnName = "IsDeleted")]
+ public bool? IsDeleted { get; set; }
+ ///
+ /// 租户Id
+ ///
+ [SugarColumn(ColumnName = "TenantId")]
+ public long? TenantId { get; set; }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/TenantEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/TenantEntity.cs
new file mode 100644
index 00000000..cc8ebf22
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/TenantEntity.cs
@@ -0,0 +1,98 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text.Json.Serialization;
+using SqlSugar;
+using Yi.Framework.Model.Base;
+
+namespace Yi.Framework.Model.RABC.Entitys
+{
+ ///
+ /// 租户表
+ ///
+ [SugarTable("Tenant")]
+ public partial class TenantEntity : IBaseModelEntity
+ {
+ public TenantEntity()
+ {
+ CreateTime = DateTime.Now;
+ }
+ [JsonConverter(typeof(ValueToStringConverter))]
+ [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
+ public long Id { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "TenantName")]
+ public string? TenantName { get; set; }
+ ///
+ /// 创建者
+ ///
+ [SugarColumn(ColumnName = "CreateUser")]
+ public long? CreateUser { get; set; }
+ ///
+ /// 创建时间
+ ///
+ [SugarColumn(ColumnName = "CreateTime")]
+ public DateTime? CreateTime { get; set; }
+ ///
+ /// 修改者
+ ///
+ [SugarColumn(ColumnName = "ModifyUser")]
+ public long? ModifyUser { get; set; }
+ ///
+ /// 修改时间
+ ///
+ [SugarColumn(ColumnName = "ModifyTime")]
+ public DateTime? ModifyTime { get; set; }
+ ///
+ /// 是否删除
+ ///
+ [SugarColumn(ColumnName = "IsDeleted")]
+ public bool? IsDeleted { get; set; }
+ ///
+ /// 租户Id
+ ///
+ [SugarColumn(ColumnName = "TenantId")]
+ public long? TenantId { get; set; }
+ ///
+ /// 排序字段
+ ///
+ [SugarColumn(ColumnName = "OrderNum")]
+ public int? OrderNum { get; set; }
+ ///
+ /// 描述
+ ///
+ [SugarColumn(ColumnName = "Remark")]
+ public string? Remark { get; set; }
+
+ // //需要在用户表中关联好该租户信息,一个用户关联一个租户
+ // //不同租户下,用户可以相同
+ // //用户登录后,token中可包含租户id,同时缓存一份用户信息(包含租户信息)
+ // [Tenant("0")]
+ // //当然,像用户、角色、菜单、租户为共享库了
+ // [SugarTable("Tenant")]
+ // public class TenantEntity
+ // {
+ // ///
+ // /// 主键唯一标识
+ // ///
+ // [SugarColumn(IsPrimaryKey = true)]
+ // public long Id { get; set; }
+
+ // ///
+ // /// 租户id
+ // ///
+ // public string? TenantId { get; set; }
+
+ // ///
+ // /// 业务库连接字符串
+ // ///
+ // public string? Connection { get; set; }
+
+ // ///
+ // /// 业务库连接类型
+ // ///
+ // public string? DbType { get; set; }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/UserEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/UserEntity.cs
new file mode 100644
index 00000000..c68f06a2
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/UserEntity.cs
@@ -0,0 +1,176 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text.Json.Serialization;
+using SqlSugar;
+using Yi.Framework.Common.Helper;
+using Yi.Framework.Model.Base;
+
+namespace Yi.Framework.Model.RABC.Entitys
+{
+ ///
+ /// 用户表
+ ///
+ [SugarTable("User")]
+ public partial class UserEntity : IBaseModelEntity
+ {
+ public UserEntity()
+ {
+ CreateTime = DateTime.Now;
+ }
+ [JsonConverter(typeof(ValueToStringConverter))]
+ [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
+ public long Id { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "Name")]
+ public string? Name { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "Age")]
+ public int? Age { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "CreateUser")]
+ public long? CreateUser { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "CreateTime")]
+ public DateTime? CreateTime { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "ModifyUser")]
+ public long? ModifyUser { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "ModifyTime")]
+ public DateTime? ModifyTime { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "IsDeleted")]
+ public bool? IsDeleted { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "TenantId")]
+ public long? TenantId { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "UserName")]
+ public string? UserName { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "Password")]
+ public string? Password { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "Salt")]
+ public string? Salt { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "Icon")]
+ public string? Icon { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "Nick")]
+ public string? Nick { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "Email")]
+ public string? Email { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "Ip")]
+ public string? Ip { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "Address")]
+ public string? Address { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "Phone")]
+ public string? Phone { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "Introduction")]
+ public string? Introduction { get; set; }
+ ///
+ /// 排序字段
+ ///
+ [SugarColumn(ColumnName = "OrderNum")]
+ public int? OrderNum { get; set; }
+ ///
+ /// 描述
+ ///
+ [SugarColumn(ColumnName = "Remark")]
+ public string? Remark { get; set; }
+ ///
+ /// 部门id
+ ///
+ [SugarColumn(ColumnName = "DeptId")]
+ public long? DeptId { get; set; }
+ ///
+ /// 性别
+ ///
+ [SugarColumn(ColumnName = "Sex")]
+ public int? Sex { get; set; }
+ ///
+ /// 看好啦!ORM精髓,导航属性
+ ///
+ [Navigate(typeof(UserRoleEntity), nameof(UserRoleEntity.UserId), nameof(UserRoleEntity.RoleId))]
+ public List? Roles { get; set; }
+
+ [Navigate(typeof(UserPostEntity), nameof(UserPostEntity.UserId), nameof(UserPostEntity.PostId))]
+ public List? Posts { get; set; }
+
+ [Navigate(NavigateType.OneToOne, nameof(DeptId))]
+ public DeptEntity? Dept { get; set; }
+
+ ///
+ /// 构建密码,MD5盐值加密
+ ///
+ public UserEntity BuildPassword(string password = null)
+ {
+ //如果不传值,那就把自己的password当作传进来的password
+ if (password == null)
+ {
+ password = Password;
+ }
+ Salt = MD5Helper.GenerateSalt();
+ Password = MD5Helper.SHA2Encode(password, Salt);
+ return this;
+ }
+
+ ///
+ /// 判断密码和加密后的密码是否相同
+ ///
+ ///
+ ///
+ public bool JudgePassword(string password)
+ {
+ var p = MD5Helper.SHA2Encode(password, Salt);
+ if (Password == MD5Helper.SHA2Encode(password, Salt))
+ {
+ return true;
+ }
+ return false;
+ }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/UserPostEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/UserPostEntity.cs
new file mode 100644
index 00000000..6831dd91
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/UserPostEntity.cs
@@ -0,0 +1,74 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text.Json.Serialization;
+using SqlSugar;
+using Yi.Framework.Model.Base;
+
+namespace Yi.Framework.Model.RABC.Entitys
+{
+ ///
+ /// 用户岗位表
+ ///
+ [SugarTable("UserPost")]
+ public partial class UserPostEntity : IBaseModelEntity
+ {
+ public UserPostEntity()
+ {
+ CreateTime = DateTime.Now;
+ }
+ [JsonConverter(typeof(ValueToStringConverter))]
+ [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
+ public long Id { get; set; }
+ ///
+ /// 用户id s
+ ///
+ [SugarColumn(ColumnName = "UserId")]
+ public long? UserId { get; set; }
+ ///
+ /// 岗位id
+ ///
+ [SugarColumn(ColumnName = "PostId")]
+ public long? PostId { get; set; }
+ ///
+ /// 创建者
+ ///
+ [SugarColumn(ColumnName = "CreateUser")]
+ public long? CreateUser { get; set; }
+ ///
+ /// 创建时间
+ ///
+ [SugarColumn(ColumnName = "CreateTime")]
+ public DateTime? CreateTime { get; set; }
+ ///
+ /// 修改者
+ ///
+ [SugarColumn(ColumnName = "ModifyUser")]
+ public long? ModifyUser { get; set; }
+ ///
+ /// 修改时间
+ ///
+ [SugarColumn(ColumnName = "ModifyTime")]
+ public DateTime? ModifyTime { get; set; }
+ ///
+ /// 是否删除
+ ///
+ [SugarColumn(ColumnName = "IsDeleted")]
+ public bool? IsDeleted { get; set; }
+ ///
+ /// 租户Id
+ ///
+ [SugarColumn(ColumnName = "TenantId")]
+ public long? TenantId { get; set; }
+ ///
+ /// 排序字段
+ ///
+ [SugarColumn(ColumnName = "OrderNum")]
+ public int? OrderNum { get; set; }
+ ///
+ /// 描述
+ ///
+ [SugarColumn(ColumnName = "Remark")]
+ public string? Remark { get; set; }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/UserRoleEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/UserRoleEntity.cs
new file mode 100644
index 00000000..71ffa3d9
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/UserRoleEntity.cs
@@ -0,0 +1,64 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text.Json.Serialization;
+using SqlSugar;
+using Yi.Framework.Model.Base;
+
+namespace Yi.Framework.Model.RABC.Entitys
+{
+ ///
+ /// 用户角色关系表
+ ///
+ [SugarTable("UserRole")]
+ public partial class UserRoleEntity : IBaseModelEntity
+ {
+ public UserRoleEntity()
+ {
+ CreateTime = DateTime.Now;
+ }
+ [JsonConverter(typeof(ValueToStringConverter))]
+ [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
+ public long Id { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "RoleId")]
+ public long? RoleId { get; set; }
+ ///
+ ///
+ ///
+ [SugarColumn(ColumnName = "UserId")]
+ public long? UserId { get; set; }
+ ///
+ /// 创建者
+ ///
+ [SugarColumn(ColumnName = "CreateUser")]
+ public long? CreateUser { get; set; }
+ ///
+ /// 创建时间
+ ///
+ [SugarColumn(ColumnName = "CreateTime")]
+ public DateTime? CreateTime { get; set; }
+ ///
+ /// 修改者
+ ///
+ [SugarColumn(ColumnName = "ModifyUser")]
+ public long? ModifyUser { get; set; }
+ ///
+ /// 修改时间
+ ///
+ [SugarColumn(ColumnName = "ModifyTime")]
+ public DateTime? ModifyTime { get; set; }
+ ///
+ /// 是否删除
+ ///
+ [SugarColumn(ColumnName = "IsDeleted")]
+ public bool? IsDeleted { get; set; }
+ ///
+ /// 租户Id
+ ///
+ [SugarColumn(ColumnName = "TenantId")]
+ public long? TenantId { get; set; }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/SeedData/AbstractSeed.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/AbstractSeed.cs
similarity index 88%
rename from Yi.Framework.Net6/Yi.Framework.Model/SeedData/AbstractSeed.cs
rename to Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/AbstractSeed.cs
index 5275191d..36c2d7c8 100644
--- a/Yi.Framework.Net6/Yi.Framework.Model/SeedData/AbstractSeed.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/AbstractSeed.cs
@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
-namespace Yi.Framework.Model.SeedData
+namespace Yi.Framework.Model.RABC.SeedData
{
public abstract class AbstractSeed
{
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/SeedData/DeptSeed.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/DeptSeed.cs
similarity index 90%
rename from Yi.Framework.Net6/Yi.Framework.Model/SeedData/DeptSeed.cs
rename to Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/DeptSeed.cs
index 559735d3..8dce7427 100644
--- a/Yi.Framework.Net6/Yi.Framework.Model/SeedData/DeptSeed.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/DeptSeed.cs
@@ -5,25 +5,25 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yi.Framework.Common.Enum;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Model.RABC.Entitys;
-namespace Yi.Framework.Model.SeedData
+namespace Yi.Framework.Model.RABC.SeedData
{
- public class DeptSeed : AbstractSeed
+ public class DeptSeed : AbstractSeed
{
public override List GetSeed()
{
-
+
DeptEntity chengziDept = new DeptEntity()
{
Id = SnowFlakeSingle.Instance.NextId(),
DeptName = "橙子科技",
- DeptCode="Yi",
- OrderNum =100,
+ DeptCode = "Yi",
+ OrderNum = 100,
IsDeleted = false,
- ParentId=0,
- Leader="橙子",
- Remark="如名所指"
+ ParentId = 0,
+ Leader = "橙子",
+ Remark = "如名所指"
};
Entitys.Add(chengziDept);
@@ -34,7 +34,7 @@ namespace Yi.Framework.Model.SeedData
DeptName = "深圳总公司",
OrderNum = 100,
IsDeleted = false,
- ParentId=chengziDept.Id
+ ParentId = chengziDept.Id
};
Entitys.Add(shenzhenDept);
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/SeedData/DictionaryInfoSeed.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/DictionaryInfoSeed.cs
similarity index 98%
rename from Yi.Framework.Net6/Yi.Framework.Model/SeedData/DictionaryInfoSeed.cs
rename to Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/DictionaryInfoSeed.cs
index 7b2f998e..330cd05b 100644
--- a/Yi.Framework.Net6/Yi.Framework.Model/SeedData/DictionaryInfoSeed.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/DictionaryInfoSeed.cs
@@ -4,9 +4,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Model.RABC.Entitys;
-namespace Yi.Framework.Model.SeedData
+namespace Yi.Framework.Model.RABC.SeedData
{
public class DictionaryInfoSeed : AbstractSeed
{
@@ -16,7 +16,7 @@ namespace Yi.Framework.Model.SeedData
{
Id = SnowFlakeSingle.Instance.NextId(),
DictLabel = "男",
- DictValue= "0",
+ DictValue = "0",
DictType = "sys_user_sex",
OrderNum = 100,
Remark = "性别男",
@@ -76,7 +76,7 @@ namespace Yi.Framework.Model.SeedData
- DictionaryInfoEntity dictInfo6= new DictionaryInfoEntity()
+ DictionaryInfoEntity dictInfo6 = new DictionaryInfoEntity()
{
Id = SnowFlakeSingle.Instance.NextId(),
DictLabel = "正常",
@@ -96,7 +96,7 @@ namespace Yi.Framework.Model.SeedData
OrderNum = 99,
Remark = "停用状态",
IsDeleted = false,
- ListClass= "danger"
+ ListClass = "danger"
};
Entitys.Add(dictInfo7);
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/SeedData/DictionarySeed.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/DictionarySeed.cs
similarity index 98%
rename from Yi.Framework.Net6/Yi.Framework.Model/SeedData/DictionarySeed.cs
rename to Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/DictionarySeed.cs
index 89667d23..455fc8b4 100644
--- a/Yi.Framework.Net6/Yi.Framework.Model/SeedData/DictionarySeed.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/DictionarySeed.cs
@@ -4,9 +4,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Model.RABC.Entitys;
-namespace Yi.Framework.Model.SeedData
+namespace Yi.Framework.Model.RABC.SeedData
{
public class DictionarySeed : AbstractSeed
{
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/SeedData/FileSeed.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/FileSeed.cs
similarity index 87%
rename from Yi.Framework.Net6/Yi.Framework.Model/SeedData/FileSeed.cs
rename to Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/FileSeed.cs
index 7b4d9814..fbf75344 100644
--- a/Yi.Framework.Net6/Yi.Framework.Model/SeedData/FileSeed.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/FileSeed.cs
@@ -4,9 +4,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Model.RABC.Entitys;
-namespace Yi.Framework.Model.SeedData
+namespace Yi.Framework.Model.RABC.SeedData
{
public class FileSeed : AbstractSeed
{
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/SeedData/MenuSeed.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/MenuSeed.cs
similarity index 99%
rename from Yi.Framework.Net6/Yi.Framework.Model/SeedData/MenuSeed.cs
rename to Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/MenuSeed.cs
index c0c53c5e..dbc3f6a7 100644
--- a/Yi.Framework.Net6/Yi.Framework.Model/SeedData/MenuSeed.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/MenuSeed.cs
@@ -5,9 +5,9 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yi.Framework.Common.Enum;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Model.RABC.Entitys;
-namespace Yi.Framework.Model.SeedData
+namespace Yi.Framework.Model.RABC.SeedData
{
public class MenuSeed : AbstractSeed
{
@@ -404,7 +404,7 @@ namespace Yi.Framework.Model.SeedData
IsDeleted = false
};
Entitys.Add(menuRemove);
-
+
//部门管理
MenuEntity dept = new MenuEntity()
{
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/SeedData/PostSeed.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/PostSeed.cs
similarity index 89%
rename from Yi.Framework.Net6/Yi.Framework.Model/SeedData/PostSeed.cs
rename to Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/PostSeed.cs
index b13ffc5c..996a3d0a 100644
--- a/Yi.Framework.Net6/Yi.Framework.Model/SeedData/PostSeed.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/PostSeed.cs
@@ -5,11 +5,11 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yi.Framework.Common.Enum;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Model.RABC.Entitys;
-namespace Yi.Framework.Model.SeedData
+namespace Yi.Framework.Model.RABC.SeedData
{
- public class PostSeed : AbstractSeed
+ public class PostSeed : AbstractSeed
{
public override List GetSeed()
{
@@ -18,7 +18,7 @@ namespace Yi.Framework.Model.SeedData
Id = SnowFlakeSingle.Instance.NextId(),
PostName = "董事长",
PostCode = "ceo",
- OrderNum =100,
+ OrderNum = 100,
IsDeleted = false
};
Entitys.Add(Post1);
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/SeedData/RoleSeed.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/RoleSeed.cs
similarity index 86%
rename from Yi.Framework.Net6/Yi.Framework.Model/SeedData/RoleSeed.cs
rename to Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/RoleSeed.cs
index c1460b7a..b4c01fe1 100644
--- a/Yi.Framework.Net6/Yi.Framework.Model/SeedData/RoleSeed.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/RoleSeed.cs
@@ -5,11 +5,11 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yi.Framework.Common.Enum;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Model.RABC.Entitys;
-namespace Yi.Framework.Model.SeedData
+namespace Yi.Framework.Model.RABC.SeedData
{
- public class RoleSeed : AbstractSeed
+ public class RoleSeed : AbstractSeed
{
public override List GetSeed()
{
@@ -20,7 +20,7 @@ namespace Yi.Framework.Model.SeedData
RoleCode = "admin",
DataScope = DataScopeEnum.ALL.GetHashCode(),
OrderNum = 999,
- Remark ="管理员",
+ Remark = "管理员",
IsDeleted = false
};
Entitys.Add(role1);
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/SeedData/SeedFactory.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/SeedFactory.cs
similarity index 89%
rename from Yi.Framework.Net6/Yi.Framework.Model/SeedData/SeedFactory.cs
rename to Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/SeedFactory.cs
index 27defca5..d883ad14 100644
--- a/Yi.Framework.Net6/Yi.Framework.Model/SeedData/SeedFactory.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/SeedFactory.cs
@@ -4,9 +4,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Model.RABC.Entitys;
-namespace Yi.Framework.Model.SeedData
+namespace Yi.Framework.Model.RABC.SeedData
{
public class SeedFactory
{
@@ -52,7 +52,7 @@ namespace Yi.Framework.Model.SeedData
{
foreach (var r in roles)
{
- userRoleEntities.Add(new UserRoleEntity() {Id= SnowFlakeSingle.Instance.NextId(),UserId = u.Id, RoleId = r.Id, IsDeleted = false });
+ userRoleEntities.Add(new UserRoleEntity() { Id = SnowFlakeSingle.Instance.NextId(), UserId = u.Id, RoleId = r.Id, IsDeleted = false });
}
}
return userRoleEntities;
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/SeedData/UserSeed.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/UserSeed.cs
similarity index 70%
rename from Yi.Framework.Net6/Yi.Framework.Model/SeedData/UserSeed.cs
rename to Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/UserSeed.cs
index 023f07f5..119814af 100644
--- a/Yi.Framework.Net6/Yi.Framework.Model/SeedData/UserSeed.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/UserSeed.cs
@@ -4,9 +4,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Model.RABC.Entitys;
-namespace Yi.Framework.Model.SeedData
+namespace Yi.Framework.Model.RABC.SeedData
{
public class UserSeed : AbstractSeed
{
@@ -14,20 +14,20 @@ namespace Yi.Framework.Model.SeedData
{
UserEntity user1 = new UserEntity()
{
- Id =SnowFlakeSingle.Instance.NextId(),
+ Id = SnowFlakeSingle.Instance.NextId(),
Name = "大橙子",
UserName = "cc",
Nick = "橙子",
Password = "123456",
- Email="454313500@qq.com",
- Phone="13800000000",
- Sex=0,
- Address="深圳",
- Age=20,
- Introduction="还有谁?",
- OrderNum=999,
- Remark="描述是什么呢?",
- IsDeleted=false
+ Email = "454313500@qq.com",
+ Phone = "13800000000",
+ Sex = 0,
+ Address = "深圳",
+ Age = 20,
+ Introduction = "还有谁?",
+ OrderNum = 999,
+ Remark = "描述是什么呢?",
+ IsDeleted = false
};
user1.BuildPassword();
Entitys.Add(user1);
@@ -39,7 +39,7 @@ namespace Yi.Framework.Model.SeedData
UserName = "test",
Nick = "测试",
Password = "123456",
- Email = "454313500@qq.com",
+ Email = "454313500@qq.com",
Phone = "15900000000",
Sex = 0,
Address = "深圳",
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/RoleEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/RoleEntity.cs
deleted file mode 100644
index 6a99237e..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/RoleEntity.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
-
- public partial class RoleEntity
- {
-
- [Navigate(typeof(RoleMenuEntity),nameof(RoleMenuEntity.RoleId),nameof(RoleMenuEntity.MenuId))]
- public List? Menus { get; set; }
-
- [Navigate(typeof(RoleDeptEntity), nameof(RoleDeptEntity.RoleId), nameof(RoleDeptEntity.DeptId))]
- public List? Depts { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/SHOP/Entitys/CategoryEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/SHOP/Entitys/CategoryEntity.cs
new file mode 100644
index 00000000..50eb4512
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/SHOP/Entitys/CategoryEntity.cs
@@ -0,0 +1,81 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text.Json.Serialization;
+using SqlSugar;
+using Yi.Framework.Model.Base;
+
+namespace Yi.Framework.Model.SHOP.Entitys
+{
+ ///
+ /// 商品分类表
+ ///
+ [SugarTable("Category")]
+ public partial class CategoryEntity : IBaseModelEntity
+ {
+ public CategoryEntity()
+ {
+ CreateTime = DateTime.Now;
+ }
+ [JsonConverter(typeof(ValueToStringConverter))]
+ [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
+ public long Id { get; set; }
+ ///
+ /// 父级id
+ ///
+ [SugarColumn(ColumnName = "ParentId")]
+ public long? ParentId { get; set; }
+ ///
+ /// 分类名称
+ ///
+ [SugarColumn(ColumnName = "CategoryName")]
+ public string CategoryName { get; set; }
+ ///
+ /// 创建者
+ ///
+ [SugarColumn(ColumnName = "CreateUser")]
+ public long? CreateUser { get; set; }
+ ///
+ /// 创建时间
+ ///
+ [SugarColumn(ColumnName = "CreateTime")]
+ public DateTime? CreateTime { get; set; }
+ ///
+ /// 修改者
+ ///
+ [SugarColumn(ColumnName = "ModifyUser")]
+ public long? ModifyUser { get; set; }
+ ///
+ /// 修改时间
+ ///
+ [SugarColumn(ColumnName = "ModifyTime")]
+ public DateTime? ModifyTime { get; set; }
+ ///
+ /// 是否删除
+ ///
+ [SugarColumn(ColumnName = "IsDeleted")]
+ public bool? IsDeleted { get; set; }
+ ///
+ /// 租户Id
+ ///
+ [SugarColumn(ColumnName = "TenantId")]
+ public long? TenantId { get; set; }
+ ///
+ /// 排序字段
+ ///
+ [SugarColumn(ColumnName = "OrderNum")]
+ public int? OrderNum { get; set; }
+ ///
+ /// 描述
+ ///
+ [SugarColumn(ColumnName = "Remark")]
+ public string? Remark { get; set; }
+
+ [SugarColumn(IsIgnore = true)]
+ public List? Children { get; set; }
+
+
+ [Navigate(NavigateType.OneToMany, nameof(SpecsGroupEntity.CategoryId))]
+ public List? SpecsGroups { get; set; }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/SHOP/Entitys/SkuEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/SHOP/Entitys/SkuEntity.cs
new file mode 100644
index 00000000..1d7a5129
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/SHOP/Entitys/SkuEntity.cs
@@ -0,0 +1,102 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text.Json.Serialization;
+using SqlSugar;
+using Yi.Framework.Model.Base;
+
+namespace Yi.Framework.Model.SHOP.Entitys
+{
+ ///
+ /// Sku表
+ ///
+ [SugarTable("Sku")]
+ public partial class SkuEntity : IBaseModelEntity
+ {
+ public SkuEntity()
+ {
+ CreateTime = DateTime.Now;
+ }
+ [JsonConverter(typeof(ValueToStringConverter))]
+ [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
+ public long Id { get; set; }
+ ///
+ /// SpuId
+ ///
+ [SugarColumn(ColumnName = "SpuId")]
+ public long? SpuId { get; set; }
+ ///
+ /// 库存
+ ///
+ [SugarColumn(ColumnName = "Stock")]
+ public int? Stock { get; set; }
+ ///
+ /// 价格
+ ///
+ [SugarColumn(ColumnName = "Price")]
+ public int? Price { get; set; }
+
+ ///
+ /// 创建者
+ ///
+ [SugarColumn(ColumnName = "CreateUser")]
+ public long? CreateUser { get; set; }
+ ///
+ /// 创建时间
+ ///
+ [SugarColumn(ColumnName = "CreateTime")]
+ public DateTime? CreateTime { get; set; }
+ ///
+ /// 修改者
+ ///
+ [SugarColumn(ColumnName = "ModifyUser")]
+ public long? ModifyUser { get; set; }
+ ///
+ /// 修改时间
+ ///
+ [SugarColumn(ColumnName = "ModifyTime")]
+ public DateTime? ModifyTime { get; set; }
+ ///
+ /// 是否删除
+ ///
+ [SugarColumn(ColumnName = "IsDeleted")]
+ public bool? IsDeleted { get; set; }
+ ///
+ /// 租户Id
+ ///
+ [SugarColumn(ColumnName = "TenantId")]
+ public long? TenantId { get; set; }
+ ///
+ /// 排序字段
+ ///
+ [SugarColumn(ColumnName = "OrderNum")]
+ public int? OrderNum { get; set; }
+ ///
+ /// 描述
+ ///
+ [SugarColumn(ColumnName = "Remark")]
+ public string? Remark { get; set; }
+
+ ///
+ /// 规格sku信息
+ ///
+ [SugarColumn(ColumnName = "SpecsSkuInfo", IsJson = true)]
+ public List? SpecsSkuInfo { get; set; }
+ ///
+ /// 规格sku完整信息
+ ///
+ [SugarColumn(ColumnName = "SpecsSkuAllInfo", IsJson = true)]
+ public List? SpecsSkuAllInfo { get; set; }
+ }
+
+ public class SpecsSkuAllInfoModel
+ {
+ public string? SpecsGroupName { get; set; }
+ public string? SpecsName { get; set; }
+ }
+ public class SpecsSkuInfoModel
+ {
+ public long? SpecsGroupId { get; set; }
+ public long? SpecsId { get; set; }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/SHOP/Entitys/SpecsEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/SHOP/Entitys/SpecsEntity.cs
new file mode 100644
index 00000000..ab855b32
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/SHOP/Entitys/SpecsEntity.cs
@@ -0,0 +1,74 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text.Json.Serialization;
+using SqlSugar;
+using Yi.Framework.Model.Base;
+
+namespace Yi.Framework.Model.SHOP.Entitys
+{
+ ///
+ /// 商品规格表
+ ///
+ [SugarTable("Specs")]
+ public partial class SpecsEntity : IBaseModelEntity
+ {
+ public SpecsEntity()
+ {
+ CreateTime = DateTime.Now;
+ }
+ [JsonConverter(typeof(ValueToStringConverter))]
+ [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
+ public long Id { get; set; }
+ ///
+ /// 商品规格组id
+ ///
+ [SugarColumn(ColumnName = "SpecsGroupId")]
+ public long? SpecsGroupId { get; set; }
+ ///
+ /// 商品规格名
+ ///
+ [SugarColumn(ColumnName = "SpecsName")]
+ public string SpecsName { get; set; }
+ ///
+ /// 创建者
+ ///
+ [SugarColumn(ColumnName = "CreateUser")]
+ public long? CreateUser { get; set; }
+ ///
+ /// 创建时间
+ ///
+ [SugarColumn(ColumnName = "CreateTime")]
+ public DateTime? CreateTime { get; set; }
+ ///
+ /// 修改者
+ ///
+ [SugarColumn(ColumnName = "ModifyUser")]
+ public long? ModifyUser { get; set; }
+ ///
+ /// 修改时间
+ ///
+ [SugarColumn(ColumnName = "ModifyTime")]
+ public DateTime? ModifyTime { get; set; }
+ ///
+ /// 是否删除
+ ///
+ [SugarColumn(ColumnName = "IsDeleted")]
+ public bool? IsDeleted { get; set; }
+ ///
+ /// 租户Id
+ ///
+ [SugarColumn(ColumnName = "TenantId")]
+ public long? TenantId { get; set; }
+ ///
+ /// 排序字段
+ ///
+ [SugarColumn(ColumnName = "OrderNum")]
+ public int? OrderNum { get; set; }
+ ///
+ /// 描述
+ ///
+ [SugarColumn(ColumnName = "Remark")]
+ public string? Remark { get; set; }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/SHOP/Entitys/SpecsGroupEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/SHOP/Entitys/SpecsGroupEntity.cs
new file mode 100644
index 00000000..9ebc176e
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/SHOP/Entitys/SpecsGroupEntity.cs
@@ -0,0 +1,77 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text.Json.Serialization;
+using SqlSugar;
+using Yi.Framework.Model.Base;
+
+namespace Yi.Framework.Model.SHOP.Entitys
+{
+ ///
+ /// 商品规格组表
+ ///
+ [SugarTable("SpecsGroup")]
+ public partial class SpecsGroupEntity : IBaseModelEntity
+ {
+ public SpecsGroupEntity()
+ {
+ CreateTime = DateTime.Now;
+ }
+ [JsonConverter(typeof(ValueToStringConverter))]
+ [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
+ public long Id { get; set; }
+ ///
+ /// 分类id
+ ///
+ [SugarColumn(ColumnName = "CategoryId")]
+ public long? CategoryId { get; set; }
+ ///
+ /// 商品规格组名
+ ///
+ [SugarColumn(ColumnName = "SpecsGroupName")]
+ public string SpecsGroupName { get; set; }
+ ///
+ /// 创建者
+ ///
+ [SugarColumn(ColumnName = "CreateUser")]
+ public long? CreateUser { get; set; }
+ ///
+ /// 创建时间
+ ///
+ [SugarColumn(ColumnName = "CreateTime")]
+ public DateTime? CreateTime { get; set; }
+ ///
+ /// 修改者
+ ///
+ [SugarColumn(ColumnName = "ModifyUser")]
+ public long? ModifyUser { get; set; }
+ ///
+ /// 修改时间
+ ///
+ [SugarColumn(ColumnName = "ModifyTime")]
+ public DateTime? ModifyTime { get; set; }
+ ///
+ /// 是否删除
+ ///
+ [SugarColumn(ColumnName = "IsDeleted")]
+ public bool? IsDeleted { get; set; }
+ ///
+ /// 租户Id
+ ///
+ [SugarColumn(ColumnName = "TenantId")]
+ public long? TenantId { get; set; }
+ ///
+ /// 排序字段
+ ///
+ [SugarColumn(ColumnName = "OrderNum")]
+ public int? OrderNum { get; set; }
+ ///
+ /// 描述
+ ///
+ [SugarColumn(ColumnName = "Remark")]
+ public string? Remark { get; set; }
+
+ [Navigate(NavigateType.OneToMany, nameof(SpecsEntity.SpecsGroupId))]
+ public List? Specses { get; set; }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/SHOP/Entitys/SpuEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/SHOP/Entitys/SpuEntity.cs
new file mode 100644
index 00000000..90a5d6bf
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Model/SHOP/Entitys/SpuEntity.cs
@@ -0,0 +1,108 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text.Json.Serialization;
+using SqlSugar;
+using Yi.Framework.Model.Base;
+
+namespace Yi.Framework.Model.SHOP.Entitys
+{
+ ///
+ /// Spu表
+ ///
+ [SugarTable("Spu")]
+ public partial class SpuEntity : IBaseModelEntity
+ {
+ public SpuEntity()
+ {
+ CreateTime = DateTime.Now;
+ }
+ [JsonConverter(typeof(ValueToStringConverter))]
+ [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
+ public long Id { get; set; }
+ ///
+ /// 商品分类Id
+ ///
+ [SugarColumn(ColumnName = "CategoryId")]
+ public long? CategoryId { get; set; }
+ ///
+ /// 商品名称
+ ///
+ [SugarColumn(ColumnName = "SpuName")]
+ public string? SpuName { get; set; }
+ ///
+ /// 商品详情
+ ///
+ [SugarColumn(ColumnName = "Details")]
+ public string? Details { get; set; }
+ ///
+ /// 商品价格
+ ///
+ [SugarColumn(ColumnName = "Price")]
+ public string? Price { get; set; }
+
+ ///
+ /// 创建者
+ ///
+ [SugarColumn(ColumnName = "CreateUser")]
+ public long? CreateUser { get; set; }
+ ///
+ /// 创建时间
+ ///
+ [SugarColumn(ColumnName = "CreateTime")]
+ public DateTime? CreateTime { get; set; }
+ ///
+ /// 修改者
+ ///
+ [SugarColumn(ColumnName = "ModifyUser")]
+ public long? ModifyUser { get; set; }
+ ///
+ /// 修改时间
+ ///
+ [SugarColumn(ColumnName = "ModifyTime")]
+ public DateTime? ModifyTime { get; set; }
+ ///
+ /// 是否删除
+ ///
+ [SugarColumn(ColumnName = "IsDeleted")]
+ public bool? IsDeleted { get; set; }
+ ///
+ /// 租户Id
+ ///
+ [SugarColumn(ColumnName = "TenantId")]
+ public long? TenantId { get; set; }
+ ///
+ /// 排序字段
+ ///
+ [SugarColumn(ColumnName = "OrderNum")]
+ public int? OrderNum { get; set; }
+ ///
+ /// 描述
+ ///
+ [SugarColumn(ColumnName = "Remark")]
+ public string? Remark { get; set; } ///
+ /// 规格Spu完整信息
+ ///
+ [SugarColumn(ColumnName = "SpecsAllInfo", IsJson = true)]
+ public List? SpecsSpuAllInfo { get; set; }
+ ///
+ /// 规格Spu信息
+ ///
+ [SugarColumn(ColumnName = "SpecsInfo", IsJson = true)]
+ public List? SpecsSpuInfo { get; set; }
+
+ [Navigate(NavigateType.OneToMany, nameof(SkuEntity.SpuId))]
+ public List? Skus { get; set; }
+ }
+
+ public class SpecsSpuAllInfoModel
+ {
+ public string? SpecsGroupName { get; set; }
+ public List? SpecsNames { get; set; }
+ }
+ public class SpecsSpuInfoModel
+ {
+ public long? SpecsGroupId { get; set; }
+ public List? SpecsIds { get; set; }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/SkuEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/SkuEntity.cs
deleted file mode 100644
index 582c3283..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/SkuEntity.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// Sku表
- ///
- public partial class SkuEntity:IBaseModelEntity
- {
- ///
- /// 规格sku信息
- ///
- [SugarColumn(ColumnName = "SpecsSkuInfo", IsJson = true)]
- public List? SpecsSkuInfo { get; set; }
- ///
- /// 规格sku完整信息
- ///
- [SugarColumn(ColumnName = "SpecsSkuAllInfo", IsJson = true)]
- public List? SpecsSkuAllInfo { get; set; }
- }
-
- public class SpecsSkuAllInfoModel
- {
- public string? SpecsGroupName { get; set; }
- public string? SpecsName { get; set; }
- }
- public class SpecsSkuInfoModel
- {
- public long? SpecsGroupId { get; set; }
- public long? SpecsId { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/SpecsGroupEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/SpecsGroupEntity.cs
deleted file mode 100644
index 3a4df243..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/SpecsGroupEntity.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
- ///
- /// 商品规格组表
- ///
- public partial class SpecsGroupEntity:IBaseModelEntity
- {
- [Navigate(NavigateType.OneToMany, nameof(SpecsEntity.SpecsGroupId))]
- public List? Specses { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/SpuEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/SpuEntity.cs
deleted file mode 100644
index 30ef1e5b..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/SpuEntity.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.Json.Serialization;
-using SqlSugar;
-namespace Yi.Framework.Model.Models
-{
-
- public partial class SpuEntity:IBaseModelEntity
- {
- ///
- /// 规格Spu完整信息
- ///
- [SugarColumn(ColumnName = "SpecsAllInfo", IsJson = true)]
- public List? SpecsSpuAllInfo { get; set; }
- ///
- /// 规格Spu信息
- ///
- [SugarColumn(ColumnName = "SpecsInfo", IsJson = true)]
- public List? SpecsSpuInfo { get; set; }
-
- [Navigate(NavigateType.OneToMany, nameof(SkuEntity.SpuId))]
- public List? Skus { get; set; }
- }
-
- public class SpecsSpuAllInfoModel
- {
- public string? SpecsGroupName { get; set; }
- public List? SpecsNames{ get;set;}
- }
- public class SpecsSpuInfoModel
- {
- public long? SpecsGroupId{ get; set; }
- public List? SpecsIds { get; set; }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/TenantEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/TenantEntity.cs
deleted file mode 100644
index 4c75aa7b..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/TenantEntity.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-//using SqlSugar;
-//using System;
-//using System.Collections.Generic;
-//using System.Linq;
-//using System.Text;
-//using System.Threading.Tasks;
-
-//namespace Yi.Framework.Model
-//{
-// //需要在用户表中关联好该租户信息,一个用户关联一个租户
-// //不同租户下,用户可以相同
-// //用户登录后,token中可包含租户id,同时缓存一份用户信息(包含租户信息)
-// [Tenant("0")]
-// //当然,像用户、角色、菜单、租户为共享库了
-// [SugarTable("Tenant")]
-// public class TenantEntity
-// {
-// ///
-// /// 主键唯一标识
-// ///
-// [SugarColumn(IsPrimaryKey = true)]
-// public long Id { get; set; }
-
-// ///
-// /// 租户id
-// ///
-// public string? TenantId { get; set; }
-
-// ///
-// /// 业务库连接字符串
-// ///
-// public string? Connection { get; set; }
-
-// ///
-// /// 业务库连接类型
-// ///
-// public string? DbType { get; set; }
-
-
-// }
-//}
diff --git a/Yi.Framework.Net6/Yi.Framework.Model/UserEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/UserEntity.cs
deleted file mode 100644
index c66544ee..00000000
--- a/Yi.Framework.Net6/Yi.Framework.Model/UserEntity.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using SqlSugar;
-using Yi.Framework.Common.Helper;
-
-namespace Yi.Framework.Model.Models
-{
- public partial class UserEntity
- {
- ///
- /// 看好啦!ORM精髓,导航属性
- ///
- [Navigate(typeof(UserRoleEntity), nameof(UserRoleEntity.UserId), nameof(UserRoleEntity.RoleId))]
- public List? Roles { get; set; }
-
- [Navigate(typeof(UserPostEntity), nameof(UserPostEntity.UserId), nameof(UserPostEntity.PostId))]
- public List? Posts { get; set; }
-
- [Navigate( NavigateType.OneToOne,nameof(DeptId))]
- public DeptEntity? Dept { get; set; }
-
- ///
- /// 构建密码,MD5盐值加密
- ///
- public UserEntity BuildPassword(string password = null)
- {
- //如果不传值,那就把自己的password当作传进来的password
- if (password == null)
- {
- password = this.Password;
- }
- this.Salt = Common.Helper.MD5Helper.GenerateSalt();
- this.Password = Common.Helper.MD5Helper.SHA2Encode(password, this.Salt);
- return this;
- }
-
- ///
- /// 判断密码和加密后的密码是否相同
- ///
- ///
- ///
- public bool JudgePassword(string password)
- {
- var p = MD5Helper.SHA2Encode(password, this.Salt);
- if (this.Password == MD5Helper.SHA2Encode(password, this.Salt))
- {
- return true;
- }
- return false;
- }
- }
-}
diff --git a/Yi.Framework.Net6/Yi.Framework.OcelotGateway/Builder/DataContext.cs b/Yi.Framework.Net6/Yi.Framework.OcelotGateway/Builder/DataContext.cs
index 4063842b..19d5f9ac 100644
--- a/Yi.Framework.Net6/Yi.Framework.OcelotGateway/Builder/DataContext.cs
+++ b/Yi.Framework.Net6/Yi.Framework.OcelotGateway/Builder/DataContext.cs
@@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Http;
using System.Collections.Generic;
using Yi.Framework.Common.Models;
-using Yi.Framework.Core;
+using Yi.Framework.Core.Cache;
namespace Yi.Framework.OcelotGateway.Builder
{
diff --git a/Yi.Framework.Net6/Yi.Framework.OcelotGateway/Startup.cs b/Yi.Framework.Net6/Yi.Framework.OcelotGateway/Startup.cs
index 25a2f4b2..ba3dee1c 100644
--- a/Yi.Framework.Net6/Yi.Framework.OcelotGateway/Startup.cs
+++ b/Yi.Framework.Net6/Yi.Framework.OcelotGateway/Startup.cs
@@ -16,8 +16,8 @@ using System.Linq;
using System.Threading.Tasks;
using Yi.Framework.Common.Models;
using Ocelot.Cache.CacheManager;
-using Yi.Framework.WebCore.MiddlewareExtend;
using Ocelot.Provider.Polly;
+using Yi.Framework.WebCore.AspNetCoreExtensions;
namespace Yi.Framework.OcelotGateway
{
diff --git a/Yi.Framework.Net6/Yi.Framework.OcelotGateway/WebCore/OcelotExtension.cs b/Yi.Framework.Net6/Yi.Framework.OcelotGateway/WebCore/OcelotExtension.cs
index eedbb578..20c73cb8 100644
--- a/Yi.Framework.Net6/Yi.Framework.OcelotGateway/WebCore/OcelotExtension.cs
+++ b/Yi.Framework.Net6/Yi.Framework.OcelotGateway/WebCore/OcelotExtension.cs
@@ -3,9 +3,9 @@ using Microsoft.AspNetCore.Http;
using System.Collections.Generic;
using System.Threading.Tasks;
using Yi.Framework.Common.IOCOptions;
-using Yi.Framework.Core;
+using Yi.Framework.Core.Cache;
using Yi.Framework.OcelotGateway.Builder;
-using Yi.Framework.WebCore;
+using Yi.Framework.WebCore.CommonExtend;
namespace Yi.Framework.OcelotGateway.WebCore
{
diff --git a/Yi.Framework.Net6/Yi.Framework.Repository/IRepository.cs b/Yi.Framework.Net6/Yi.Framework.Repository/IRepository.cs
index 61adc0d3..0e87a040 100644
--- a/Yi.Framework.Net6/Yi.Framework.Repository/IRepository.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Repository/IRepository.cs
@@ -6,8 +6,7 @@ using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using Yi.Framework.Common.Models;
-using Yi.Framework.Model.Models;
-using Yi.Framework.Model.Query;
+using Yi.Framework.Model.Base.Query;
namespace Yi.Framework.Repository
{
diff --git a/Yi.Framework.Net6/Yi.Framework.Repository/Repository.cs b/Yi.Framework.Net6/Yi.Framework.Repository/Repository.cs
index 5f3a17a0..cf0eed27 100644
--- a/Yi.Framework.Net6/Yi.Framework.Repository/Repository.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Repository/Repository.cs
@@ -3,8 +3,7 @@ using System.Data;
using System.Linq.Expressions;
using Yi.Framework.Common.Attribute;
using Yi.Framework.Common.Models;
-using Yi.Framework.Model.Models;
-using Yi.Framework.Model.Query;
+using Yi.Framework.Model.Base.Query;
/***这里面写的代码不会给覆盖,如果要重新生成请删除 Repository.cs ***/
namespace Yi.Framework.Repository
diff --git a/Yi.Framework.Net6/Yi.Framework.SMSProcessor/Program.cs b/Yi.Framework.Net6/Yi.Framework.SMSProcessor/Program.cs
index a0dfebec..a0b7dc77 100644
--- a/Yi.Framework.Net6/Yi.Framework.SMSProcessor/Program.cs
+++ b/Yi.Framework.Net6/Yi.Framework.SMSProcessor/Program.cs
@@ -11,7 +11,7 @@ using Yi.Framework.Common.IOCOptions;
using Yi.Framework.Core;
using Yi.Framework.Core.ConsulExtend;
using Yi.Framework.WebCore;
-using Yi.Framework.WebCore.MiddlewareExtend;
+using Yi.Framework.WebCore.AspNetCoreExtensions;
namespace Yi.Framework.SMSProcessor
{
diff --git a/Yi.Framework.Net6/Yi.Framework.Service/AgreeService.cs b/Yi.Framework.Net6/Yi.Framework.Service/BBS/AgreeService.cs
similarity index 87%
rename from Yi.Framework.Net6/Yi.Framework.Service/AgreeService.cs
rename to Yi.Framework.Net6/Yi.Framework.Service/BBS/AgreeService.cs
index 3a469afb..5e888a6f 100644
--- a/Yi.Framework.Net6/Yi.Framework.Service/AgreeService.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Service/BBS/AgreeService.cs
@@ -1,13 +1,17 @@
using SqlSugar;
using System.Threading.Tasks;
-using Yi.Framework.Interface;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.BBS;
+using Yi.Framework.Model.BBS.Entitys;
using Yi.Framework.Repository;
+using Yi.Framework.Service.Base;
-namespace Yi.Framework.Service
+namespace Yi.Framework.Service.BBS
{
public partial class AgreeService : BaseService, IAgreeService
{
+ public AgreeService(IRepository repository) : base(repository)
+ {
+ }
///
/// 点赞操作
///
diff --git a/Yi.Framework.Net6/Yi.Framework.Service/ArticleService.cs b/Yi.Framework.Net6/Yi.Framework.Service/BBS/ArticleService.cs
similarity index 83%
rename from Yi.Framework.Net6/Yi.Framework.Service/ArticleService.cs
rename to Yi.Framework.Net6/Yi.Framework.Service/BBS/ArticleService.cs
index 0b039004..40bd023f 100644
--- a/Yi.Framework.Net6/Yi.Framework.Service/ArticleService.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Service/BBS/ArticleService.cs
@@ -3,13 +3,18 @@ using System.Collections.Generic;
using System.Threading.Tasks;
using Yi.Framework.Common.Models;
using Yi.Framework.Interface;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.BBS;
+using Yi.Framework.Model.BBS.Entitys;
using Yi.Framework.Repository;
+using Yi.Framework.Service.Base;
-namespace Yi.Framework.Service
+namespace Yi.Framework.Service.BBS
{
public partial class ArticleService : BaseService, IArticleService
{
+ public ArticleService(IRepository repository) : base(repository)
+ {
+ }
public async Task>> SelctPageList(ArticleEntity entity, PageParModel page)
{
RefAsync total = 0;
@@ -24,6 +29,5 @@ namespace Yi.Framework.Service
return new PageModel>(data, total);
}
-
}
}
diff --git a/Yi.Framework.Net6/Yi.Framework.Service/BBS/CommentService.cs b/Yi.Framework.Net6/Yi.Framework.Service/BBS/CommentService.cs
new file mode 100644
index 00000000..66065ee4
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Service/BBS/CommentService.cs
@@ -0,0 +1,35 @@
+using SqlSugar;
+using System.Threading.Tasks;
+using Yi.Framework.Interface;
+using Yi.Framework.Interface.BBS;
+using Yi.Framework.Model.BBS.Entitys;
+using Yi.Framework.Repository;
+using Yi.Framework.Service.Base;
+
+namespace Yi.Framework.Service.BBS
+{
+ public partial class CommentService : BaseService, ICommentService
+ {
+ public CommentService(IRepository repository) : base(repository)
+ {
+ }
+ //添加一个评论
+ public async Task AddAsync(CommentEntity comment)
+ {
+ //如果是一级评论:不用处理
+
+ //如果是二级评论:ParentId父节点评论数+1
+ return await _repository.UseTranAsync(async () =>
+ {
+ if (comment.ParentId != 0)
+ {
+ var parentData = await _repository.GetByIdAsync(comment.ParentId);
+ parentData.CommentNum += 1;
+ await _repository.AsUpdateable(parentData).UpdateColumns(u => new { u.CommentNum }).ExecuteCommandAsync();
+ }
+ await _repository.InsertReturnSnowflakeIdAsync(comment);
+ });
+
+ }
+ }
+}
diff --git a/Yi.Framework.Net6/Yi.Framework.Service/BaseService.cs b/Yi.Framework.Net6/Yi.Framework.Service/Base/BaseService.cs
similarity index 70%
rename from Yi.Framework.Net6/Yi.Framework.Service/BaseService.cs
rename to Yi.Framework.Net6/Yi.Framework.Service/Base/BaseService.cs
index f46d6076..d0e61829 100644
--- a/Yi.Framework.Net6/Yi.Framework.Service/BaseService.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Service/Base/BaseService.cs
@@ -4,14 +4,13 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yi.Framework.Common.Attribute;
-using Yi.Framework.Interface;
-using Yi.Framework.Model.Models;
+using Yi.Framework.Interface.Base;
using Yi.Framework.Repository;
-namespace Yi.Framework.Service
+namespace Yi.Framework.Service.Base
{
[AppService]
- public class BaseService:IBaseService where T:class,new()
+ public class BaseService : IBaseService where T : class, new()
{
public IRepository _repository { get; set; }
public BaseService(IRepository iRepository)
diff --git a/Yi.Framework.Net6/Yi.Framework.Service/Base/Crud/AbstractKeyCrudAppService.cs b/Yi.Framework.Net6/Yi.Framework.Service/Base/Crud/AbstractKeyCrudAppService.cs
new file mode 100644
index 00000000..429e74b4
--- /dev/null
+++ b/Yi.Framework.Net6/Yi.Framework.Service/Base/Crud/AbstractKeyCrudAppService.cs
@@ -0,0 +1,215 @@
+using AutoMapper;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Yi.Framework.Interface.Base.Crud;
+using Yi.Framework.Model.Base;
+using Yi.Framework.Repository;
+
+namespace Yi.Framework.Service.Base.Crud
+{
+ public abstract class AbstractKeyCrudAppService
+ : AbstractKeyCrudAppService
+ where TEntity : class, IEntity, new()
+ {
+ protected AbstractKeyCrudAppService(IRepository repository, IMapper mapper) : base(repository, mapper)
+ {
+ }
+ }
+
+ public abstract class AbstractKeyCrudAppService
+ : AbstractKeyCrudAppService
+ where TEntity : class, IEntity, new()
+ {
+ protected AbstractKeyCrudAppService(IRepository repository, IMapper mapper) : base(repository, mapper)
+ {
+ }
+ }
+
+ public abstract class AbstractKeyCrudAppService
+ : AbstractKeyCrudAppService
+ where TEntity : class, IEntity, new()
+ {
+ protected AbstractKeyCrudAppService(IRepository repository, IMapper mapper) : base(repository, mapper)
+ {
+ }
+
+ protected override Task MapToGetListOutputDtoAsync(TEntity entity)
+ {
+ return MapToGetOutputDtoAsync(entity);
+ }
+
+ protected override TEntityDto MapToGetListOutputDto(TEntity entity)
+ {
+ return MapToGetOutputDto(entity);
+ }
+ }
+
+ public abstract class AbstractKeyCrudAppService
+ : AbstractKeyReadOnlyAppService,
+ ICrudAppService
+ where TEntity : class, IEntity, new()
+ {
+ protected AbstractKeyCrudAppService(IRepository repository, IMapper mapper) : base(repository, mapper)
+ {
+ }
+
+ ///
+ /// 创建
+ ///
+ ///
+ ///
+ public virtual async Task CreateAsync(TCreateInput input)
+ {
+
+ var entity = await MapToEntityAsync(input);
+
+ TryToSetTenantId(entity);
+
+ await Repository.InsertAsync(entity);
+
+ var entitydto = await MapToGetOutputDtoAsync(entity);
+ return entitydto;
+ }
+
+ ///
+ /// 删除
+ ///
+ ///
+ ///
+ ///
+ public virtual async Task DeleteAsync(IEnumerable ids)
+ {
+ throw new NotImplementedException();
+ }
+ protected abstract Task DeleteByIdAsync(TKey id);
+
+ ///
+ /// 更新
+ ///
+ ///
+ ///
+ ///
+ public virtual async Task UpdateAsync(TKey id, TUpdateInput input)
+ {
+ var entity = await GetEntityByIdAsync(id);
+
+ await UpdateValidAsync(entity, input);
+ //TODO: Check if input has id different than given id and normalize if it's default value, throw ex otherwise
+ await MapToEntityAsync(input, entity);
+ await Repository.UpdateAsync(entity);
+
+ var entitydto = await MapToGetOutputDtoAsync(entity);
+ return entitydto;
+ }
+ ///
+ /// 效验更新
+ ///
+ ///
+ ///
+ ///
+ protected virtual async Task UpdateValidAsync(TEntity idEntity, TUpdateInput dto)
+ {
+ return;
+ }
+
+ ///
+ /// 将 更新输入dto转化为实体的异步
+ ///
+ ///
+ ///
+ protected virtual Task MapToEntityAsync(TUpdateInput updateInput, TEntity entity)
+ {
+ MapToEntity(updateInput, entity);
+ return Task.CompletedTask;
+ }
+ ///
+ /// 将 更新输入dto转化为实体的同步方法
+ ///
+ ///
+ ///
+ protected virtual void MapToEntity(TUpdateInput updateInput, TEntity entity)
+ {
+ ObjectMapper.Map(updateInput, entity);
+ }
+
+ ///
+ /// 创建dto 给 实体的转换的异步方法
+ ///
+ ///
+ ///
+ protected virtual Task MapToEntityAsync(TCreateInput createInput)
+ {
+ return Task.FromResult(MapToEntity(createInput));
+ }
+
+ ///
+ /// 创建dto 给 实体的转换
+ ///
+ ///
+ ///
+ protected virtual TEntity MapToEntity(TCreateInput createInput)
+ {
+ var entity = ObjectMapper.Map(createInput);
+ SetIdForGuids(entity);
+ return entity;
+ }
+
+ ///