每个文件下面都新增了示例文件

yjfy
SummmerLost 3 years ago
parent 0a84f5281f
commit 39a29e96f1
  1. 13
      PEIS.EF/Domain/SampleDomain.cs
  2. 11
      PEIS.Interface/Controllers/SampleController.cs
  3. 13
      PEIS.Repositories/Context/SampleContext.cs
  4. 13
      PEIS.Repositories/Dtos/SampleDto.cs
  5. 26
      PEIS.Repositories/Enums/ConfigEnum.cs
  6. 3
      PEIS.Repositories/Models/Sample.cs

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace PEIS.Service.Domain
{
/// <summary>
/// 业务逻辑帮助类 需要在业务逻辑的基础上提炼出来的一些公共方法,但不属于基础帮助类的方法
/// </summary>
public class SampleDomain
{
}
}

@ -0,0 +1,11 @@
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace PEIS.Cloud.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class SampleController : ControllerBase
{
}
}

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace PEIS.Repositories.Context
{
/// <summary>
/// 上下文存放地方 存放数据库的上下文,不同数据库请用不同文件夹区分
/// </summary>
public class SampleContext
{
}
}

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace PEIS.Repositories.Dtos
{
/// <summary>
/// 返回给前端的实体对象,因为在Domain层没有引用所以跟Models分开
/// </summary>
public class SampleDto
{
}
}

@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace PEIS.Repositories.Enums
{
/// <summary>
/// 枚举类存放的地方 特别是一些审核状态 下方代码举例
/// </summary>
public enum ConfigEnum
{
/// <summary>
/// 通过申请
/// </summary>
Pass = 1,
/// <summary>
/// 驳回申请
/// </summary>
Reject = 2,
/// <summary>
/// 无需审核--永久申请
/// </summary>
NoReviewRequired = 3,
}
}

@ -4,6 +4,9 @@ using System.Text;
namespace PEIS.Repositories.Models
{
/// <summary>
/// 存放业务逻辑实体的地方 这个为示例文件,可以删除
/// </summary>
public class Sample
{
}

Loading…
Cancel
Save