新增考试通知记录

master
xiaochanghai 1 year ago
parent c7539b78d3
commit 71e4481e4c
  1. 2020
      Model/Tiobon.Web.pdm
  2. 14
      Tiobon.Core.Api/Controllers/Ghre/Ghre_ExamMessageLogController.cs
  3. 12
      Tiobon.Core.IServices/Ghre/IGhre_ExamMessageLogServices.cs
  4. 133
      Tiobon.Core.Model/Base/Ghre/Ghre_ExamMessageLog.Dto.Base.cs
  5. 27
      Tiobon.Core.Model/Edit/Ghre/Ghre_ExamMessageLog.Dto.EditInput.cs
  6. 27
      Tiobon.Core.Model/Insert/Ghre/Ghre_ExamMessageLog.Dto.InsertInput.cs
  7. 135
      Tiobon.Core.Model/Models/Ghre/Ghre_ExamMessageLog.cs
  8. 34
      Tiobon.Core.Model/View/Ghre/Ghre_ExamMessageLog.Dto.View.cs
  9. 23
      Tiobon.Core.Services/Ghre/Ghre_ExamMessageLogServices.cs

File diff suppressed because it is too large Load Diff

@ -0,0 +1,14 @@
namespace Tiobon.Core.Api.Controllers;
/// <summary>
/// 考试通知记录(Controller)
/// </summary>
[Route("api/[controller]")]
[ApiController, GlobalActionFilter]
[Authorize(Permissions.Name), ApiExplorerSettings(GroupName = Grouping.GroupName_Ghre)]
public class Ghre_ExamMessageLogController : BaseController<IGhre_ExamMessageLogServices, Ghre_ExamMessageLog, Ghre_ExamMessageLogDto, InsertGhre_ExamMessageLogInput, EditGhre_ExamMessageLogInput>
{
public Ghre_ExamMessageLogController(IGhre_ExamMessageLogServices service) : base(service)
{
}
}

@ -0,0 +1,12 @@
using Tiobon.Core.IServices.BASE;
using Tiobon.Core.Model.Models;
namespace Tiobon.Core.IServices
{
/// <summary>
/// 考试通知记录(自定义服务接口)
/// </summary>
public interface IGhre_ExamMessageLogServices :IBaseServices<Ghre_ExamMessageLog, Ghre_ExamMessageLogDto, InsertGhre_ExamMessageLogInput, EditGhre_ExamMessageLogInput>
{
}
}

@ -0,0 +1,133 @@
/* ,
* Ghre_ExamMessageLog.cs
*
* N / A
* Ghre_ExamMessageLog
*
* Ver
*
*V0.01 2024/6/4 14:16:13 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace Tiobon.Core.Model.Models
{
/// <summary>
/// 考试通知记录 (Dto.Base)
/// </summary>
public class Ghre_ExamMessageLogBase
{
/// <summary>
/// 试卷ID
/// </summary>
public long? ExamId { get; set; }
/// <summary>
/// 发送类型
/// </summary>
[Display(Name = "SendType"), Description("发送类型"), MaxLength(256, ErrorMessage = "发送类型 不能超过 256 个字符")]
public string SendType { get; set; }
/// <summary>
/// 通知设置
/// </summary>
[Display(Name = "MsgSet"), Description("通知设置"), MaxLength(32, ErrorMessage = "通知设置 不能超过 32 个字符")]
public string MsgSet { get; set; }
/// <summary>
/// 通知范围
/// </summary>
[Display(Name = "NotificationScop"), Description("通知范围"), MaxLength(32, ErrorMessage = "通知范围 不能超过 32 个字符")]
public string NotificationScop { get; set; }
/// <summary>
/// 备注
/// </summary>
[Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")]
public string RemarkSz { get; set; }
/// <summary>
/// 默认标志
/// </summary>
public int? IsDefault { get; set; }
/// <summary>
/// 预留字段1
/// </summary>
[Display(Name = "Reverse1"), Description("预留字段1"), MaxLength(1000, ErrorMessage = "预留字段1 不能超过 1000 个字符")]
public string Reverse1 { get; set; }
/// <summary>
/// 预留字段2
/// </summary>
[Display(Name = "Reverse2"), Description("预留字段2"), MaxLength(1000, ErrorMessage = "预留字段2 不能超过 1000 个字符")]
public string Reverse2 { get; set; }
/// <summary>
/// 预留字段3
/// </summary>
[Display(Name = "Reverse3"), Description("预留字段3"), MaxLength(1000, ErrorMessage = "预留字段3 不能超过 1000 个字符")]
public string Reverse3 { get; set; }
/// <summary>
/// 预留字段4
/// </summary>
[Display(Name = "Reverse4"), Description("预留字段4"), MaxLength(1000, ErrorMessage = "预留字段4 不能超过 1000 个字符")]
public string Reverse4 { get; set; }
/// <summary>
/// 预留字段5
/// </summary>
[Display(Name = "Reverse5"), Description("预留字段5"), MaxLength(1000, ErrorMessage = "预留字段5 不能超过 1000 个字符")]
public string Reverse5 { get; set; }
/// <summary>
/// 预留字段6
/// </summary>
[Display(Name = "Reverse6"), Description("预留字段6"), MaxLength(1000, ErrorMessage = "预留字段6 不能超过 1000 个字符")]
public string Reverse6 { get; set; }
/// <summary>
/// 预留字段7
/// </summary>
[Display(Name = "Reverse7"), Description("预留字段7"), MaxLength(1000, ErrorMessage = "预留字段7 不能超过 1000 个字符")]
public string Reverse7 { get; set; }
/// <summary>
/// 预留字段8
/// </summary>
[Display(Name = "Reverse8"), Description("预留字段8"), MaxLength(1000, ErrorMessage = "预留字段8 不能超过 1000 个字符")]
public string Reverse8 { get; set; }
/// <summary>
/// 预留字段9
/// </summary>
[Display(Name = "Reverse9"), Description("预留字段9"), MaxLength(1000, ErrorMessage = "预留字段9 不能超过 1000 个字符")]
public string Reverse9 { get; set; }
/// <summary>
/// 预留字段10
/// </summary>
[Display(Name = "Reverse10"), Description("预留字段10"), MaxLength(1000, ErrorMessage = "预留字段10 不能超过 1000 个字符")]
public string Reverse10 { get; set; }
/// <summary>
/// 预留字段11
/// </summary>
public int? ReverseI1 { get; set; }
/// <summary>
/// 预留字段12
/// </summary>
public int? ReverseI2 { get; set; }
}
}

@ -0,0 +1,27 @@
/* ,
* Ghre_ExamMessageLog.cs
*
* N / A
* Ghre_ExamMessageLog
*
* Ver
*
*V0.01 2024/6/4 14:16:13 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models
{
/// <summary>
/// 考试通知记录 (Dto.EditInput)
/// </summary>
public class EditGhre_ExamMessageLogInput : Ghre_ExamMessageLogBase
{
}
}

@ -0,0 +1,27 @@
/* ,
* Ghre_ExamMessageLog.cs
*
* N / A
* Ghre_ExamMessageLog
*
* Ver
*
*V0.01 2024/6/4 14:16:13 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models
{
/// <summary>
/// 考试通知记录 (Dto.InsertInput)
/// </summary>
public class InsertGhre_ExamMessageLogInput : Ghre_ExamMessageLogBase
{
}
}

@ -0,0 +1,135 @@
/* ,
* Ghre_ExamMessageLog.cs
*
* N / A
* Ghre_ExamMessageLog
*
* Ver
*
*V0.01 2024/6/4 14:16:13 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using SqlSugar;
namespace Tiobon.Core.Model.Models
{
/// <summary>
/// 考试通知记录 (Model)
/// </summary>
[SugarTable("Ghre_ExamMessageLog", "Ghre_ExamMessageLog"), Entity(TableCnName = "考试通知记录", TableName = "Ghre_ExamMessageLog")]
public class Ghre_ExamMessageLog : BasePoco
{
/// <summary>
/// 试卷ID
/// </summary>
public long? ExamId { get; set; }
/// <summary>
/// 发送类型
/// </summary>
[Display(Name = "SendType"), Description("发送类型"), MaxLength(256, ErrorMessage = "发送类型 不能超过 256 个字符")]
public string SendType { get; set; }
/// <summary>
/// 通知设置
/// </summary>
[Display(Name = "MsgSet"), Description("通知设置"), MaxLength(32, ErrorMessage = "通知设置 不能超过 32 个字符")]
public string MsgSet { get; set; }
/// <summary>
/// 通知范围
/// </summary>
[Display(Name = "NotificationScop"), Description("通知范围"), MaxLength(32, ErrorMessage = "通知范围 不能超过 32 个字符")]
public string NotificationScop { get; set; }
/// <summary>
/// 备注
/// </summary>
[Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")]
public string RemarkSz { get; set; }
/// <summary>
/// 默认标志
/// </summary>
public int? IsDefault { get; set; }
/// <summary>
/// 预留字段1
/// </summary>
[Display(Name = "Reverse1"), Description("预留字段1"), MaxLength(1000, ErrorMessage = "预留字段1 不能超过 1000 个字符")]
public string Reverse1 { get; set; }
/// <summary>
/// 预留字段2
/// </summary>
[Display(Name = "Reverse2"), Description("预留字段2"), MaxLength(1000, ErrorMessage = "预留字段2 不能超过 1000 个字符")]
public string Reverse2 { get; set; }
/// <summary>
/// 预留字段3
/// </summary>
[Display(Name = "Reverse3"), Description("预留字段3"), MaxLength(1000, ErrorMessage = "预留字段3 不能超过 1000 个字符")]
public string Reverse3 { get; set; }
/// <summary>
/// 预留字段4
/// </summary>
[Display(Name = "Reverse4"), Description("预留字段4"), MaxLength(1000, ErrorMessage = "预留字段4 不能超过 1000 个字符")]
public string Reverse4 { get; set; }
/// <summary>
/// 预留字段5
/// </summary>
[Display(Name = "Reverse5"), Description("预留字段5"), MaxLength(1000, ErrorMessage = "预留字段5 不能超过 1000 个字符")]
public string Reverse5 { get; set; }
/// <summary>
/// 预留字段6
/// </summary>
[Display(Name = "Reverse6"), Description("预留字段6"), MaxLength(1000, ErrorMessage = "预留字段6 不能超过 1000 个字符")]
public string Reverse6 { get; set; }
/// <summary>
/// 预留字段7
/// </summary>
[Display(Name = "Reverse7"), Description("预留字段7"), MaxLength(1000, ErrorMessage = "预留字段7 不能超过 1000 个字符")]
public string Reverse7 { get; set; }
/// <summary>
/// 预留字段8
/// </summary>
[Display(Name = "Reverse8"), Description("预留字段8"), MaxLength(1000, ErrorMessage = "预留字段8 不能超过 1000 个字符")]
public string Reverse8 { get; set; }
/// <summary>
/// 预留字段9
/// </summary>
[Display(Name = "Reverse9"), Description("预留字段9"), MaxLength(1000, ErrorMessage = "预留字段9 不能超过 1000 个字符")]
public string Reverse9 { get; set; }
/// <summary>
/// 预留字段10
/// </summary>
[Display(Name = "Reverse10"), Description("预留字段10"), MaxLength(1000, ErrorMessage = "预留字段10 不能超过 1000 个字符")]
public string Reverse10 { get; set; }
/// <summary>
/// 预留字段11
/// </summary>
public int? ReverseI1 { get; set; }
/// <summary>
/// 预留字段12
/// </summary>
public int? ReverseI2 { get; set; }
}
}

@ -0,0 +1,34 @@
/* ,
* Ghre_ExamMessageLog.cs
*
* N / A
* Ghre_ExamMessageLog
*
* Ver
*
*V0.01 2024/6/4 14:16:13 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models;
/// <summary>
/// 考试通知记录(Dto.View)
/// </summary>
public class Ghre_ExamMessageLogDto : Ghre_ExamMessageLog
{
/// <summary>
/// 创建信息
/// </summary>
public string CreateDataInfo { get; set; }
/// <summary>
/// 修改信息
/// </summary>
public string UpdateDataInfo { get; set; }
}

@ -0,0 +1,23 @@

using Tiobon.Core.IServices;
using Tiobon.Core.Model.Models;
using Tiobon.Core.Services.BASE;
using Tiobon.Core.IRepository.Base;
using Tiobon.Core.Common.Caches;
namespace Tiobon.Core.Services
{
/// <summary>
/// 考试通知记录 (服务)
/// </summary>
public class Ghre_ExamMessageLogServices : BaseServices<Ghre_ExamMessageLog, Ghre_ExamMessageLogDto, InsertGhre_ExamMessageLogInput, EditGhre_ExamMessageLogInput>, IGhre_ExamMessageLogServices
{
private readonly IBaseRepository<Ghre_ExamMessageLog> _dal;
public Ghre_ExamMessageLogServices(ICaching caching, IBaseRepository<Ghre_ExamMessageLog> dal)
{
this._dal = dal;
base.BaseDal = dal;
base._caching = caching;
}
}
}
Loading…
Cancel
Save