diff --git a/PEIS.EF/Domain/SampleDomain.cs b/PEIS.EF/Domain/SampleDomain.cs new file mode 100644 index 0000000..c240ae2 --- /dev/null +++ b/PEIS.EF/Domain/SampleDomain.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace PEIS.Service.Domain +{ + /// + /// 业务逻辑帮助类 需要在业务逻辑的基础上提炼出来的一些公共方法,但不属于基础帮助类的方法 + /// + public class SampleDomain + { + } +} diff --git a/PEIS.Interface/Controllers/SampleController.cs b/PEIS.Interface/Controllers/SampleController.cs new file mode 100644 index 0000000..c09eba9 --- /dev/null +++ b/PEIS.Interface/Controllers/SampleController.cs @@ -0,0 +1,11 @@ +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc; + +namespace PEIS.Cloud.Controllers +{ + [Route("api/[controller]")] + [ApiController] + public class SampleController : ControllerBase + { + } +} diff --git a/PEIS.Repositories/Context/SampleContext.cs b/PEIS.Repositories/Context/SampleContext.cs new file mode 100644 index 0000000..e6218a4 --- /dev/null +++ b/PEIS.Repositories/Context/SampleContext.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace PEIS.Repositories.Context +{ + /// + /// 上下文存放地方 存放数据库的上下文,不同数据库请用不同文件夹区分 + /// + public class SampleContext + { + } +} diff --git a/PEIS.Repositories/Dtos/SampleDto.cs b/PEIS.Repositories/Dtos/SampleDto.cs new file mode 100644 index 0000000..121de39 --- /dev/null +++ b/PEIS.Repositories/Dtos/SampleDto.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace PEIS.Repositories.Dtos +{ + /// + /// 返回给前端的实体对象,因为在Domain层没有引用所以跟Models分开 + /// + public class SampleDto + { + } +} diff --git a/PEIS.Repositories/Enums/ConfigEnum.cs b/PEIS.Repositories/Enums/ConfigEnum.cs new file mode 100644 index 0000000..5a5244c --- /dev/null +++ b/PEIS.Repositories/Enums/ConfigEnum.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace PEIS.Repositories.Enums +{ + /// + /// 枚举类存放的地方 特别是一些审核状态 下方代码举例 + /// + public enum ConfigEnum + { + /// + /// 通过申请 + /// + Pass = 1, + /// + /// 驳回申请 + /// + Reject = 2, + + /// + /// 无需审核--永久申请 + /// + NoReviewRequired = 3, + } +} diff --git a/PEIS.Repositories/Models/Sample.cs b/PEIS.Repositories/Models/Sample.cs index 3bbbee4..eadf54b 100644 --- a/PEIS.Repositories/Models/Sample.cs +++ b/PEIS.Repositories/Models/Sample.cs @@ -4,6 +4,9 @@ using System.Text; namespace PEIS.Repositories.Models { + /// + /// 存放业务逻辑实体的地方 这个为示例文件,可以删除 + /// public class Sample { }