master
xiaochanghai 1 year ago
parent a3f1d137db
commit 1af0a8856b
  1. 14
      Tiobon.Core.Api/Controllers/Ghre/Ghre_QuestionAnswerController.cs
  2. 14
      Tiobon.Core.Api/Controllers/Ghre/Ghre_QuestionController.cs
  3. 12
      Tiobon.Core.IServices/Ghre/IGhre_QuestionAnswerServices.cs
  4. 12
      Tiobon.Core.IServices/Ghre/IGhre_QuestionServices.cs
  5. 140
      Tiobon.Core.Model/Base/Ghre/Ghre_Question.Dto.Base.cs
  6. 136
      Tiobon.Core.Model/Base/Ghre/Ghre_QuestionAnswer.Dto.Base.cs
  7. 27
      Tiobon.Core.Model/Edit/Ghre/Ghre_Question.Dto.EditInput.cs
  8. 27
      Tiobon.Core.Model/Edit/Ghre/Ghre_QuestionAnswer.Dto.EditInput.cs
  9. 27
      Tiobon.Core.Model/Insert/Ghre/Ghre_Question.Dto.InsertInput.cs
  10. 27
      Tiobon.Core.Model/Insert/Ghre/Ghre_QuestionAnswer.Dto.InsertInput.cs
  11. 142
      Tiobon.Core.Model/Models/Ghre/Ghre_Question.cs
  12. 139
      Tiobon.Core.Model/Models/Ghre/Ghre_QuestionAnswer.cs
  13. 27
      Tiobon.Core.Model/View/Ghre/Ghre_Question.Dto.View.cs
  14. 27
      Tiobon.Core.Model/View/Ghre/Ghre_QuestionAnswer.Dto.View.cs
  15. 21
      Tiobon.Core.Services/Ghre/Ghre_QuestionAnswerServices.cs
  16. 21
      Tiobon.Core.Services/Ghre/Ghre_QuestionServices.cs

@ -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_QuestionAnswerController : BaseController<IGhre_QuestionAnswerServices, Ghre_QuestionAnswer, Ghre_QuestionAnswerDto, InsertGhre_QuestionAnswerInput, EditGhre_QuestionAnswerInput>
{
public Ghre_QuestionAnswerController(IGhre_QuestionAnswerServices service) : base(service)
{
}
}

@ -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_QuestionController : BaseController<IGhre_QuestionServices, Ghre_Question, Ghre_QuestionDto, InsertGhre_QuestionInput, EditGhre_QuestionInput>
{
public Ghre_QuestionController(IGhre_QuestionServices 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_QuestionAnswerServices :IBaseServices<Ghre_QuestionAnswer, Ghre_QuestionAnswerDto, InsertGhre_QuestionAnswerInput, EditGhre_QuestionAnswerInput>
{
}
}

@ -0,0 +1,12 @@
using Tiobon.Core.IServices.BASE;
using Tiobon.Core.Model.Models;
namespace Tiobon.Core.IServices
{
/// <summary>
/// 题目(自定义服务接口)
/// </summary>
public interface IGhre_QuestionServices :IBaseServices<Ghre_Question, Ghre_QuestionDto, InsertGhre_QuestionInput, EditGhre_QuestionInput>
{
}
}

@ -0,0 +1,140 @@
/* ,
* Ghre_Question.cs
*
* N / A
* Ghre_Question
*
* Ver
*
*V0.01 2024/4/28 11:00:27 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_QuestionBase
{
/// <summary>
/// 课程Ids
/// </summary>
[Display(Name = "CourseIds"), Description("课程Ids"), MaxLength(2000, ErrorMessage = "课程Ids 不能超过 2000 个字符")]
public string CourseIds { get; set; }
/// <summary>
/// 题目编号
/// </summary>
[Display(Name = "CourseINo"), Description("题目编号"), MaxLength(32, ErrorMessage = "题目编号 不能超过 32 个字符")]
public string CourseINo { get; set; }
/// <summary>
/// 难易程度
/// </summary>
[Display(Name = "DifficultyLevel"), Description("难易程度"), MaxLength(32, ErrorMessage = "难易程度 不能超过 32 个字符")]
public string DifficultyLevel { get; set; }
/// <summary>
/// 题目类型
/// </summary>
[Display(Name = "CourseType"), Description("题目类型"), MaxLength(32, ErrorMessage = "题目类型 不能超过 32 个字符")]
public string CourseType { get; set; }
/// <summary>
/// 题目内容
/// </summary>
[Display(Name = "CourseContent"), Description("题目内容"), MaxLength(2000, ErrorMessage = "题目内容 不能超过 2000 个字符")]
public string CourseContent { 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,136 @@
/* ,
* Ghre_QuestionAnswer.cs
*
* N / A
* Ghre_QuestionAnswer
*
* Ver
*
*V0.01 2024/4/28 11:02:39 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_QuestionAnswerBase
{
/// <summary>
/// 题目ID
/// </summary>
/// <summary>
/// 答案内容
/// </summary>
[Display(Name = "AnswerContent"), Description("答案内容"), MaxLength(32, ErrorMessage = "答案内容 不能超过 32 个字符")]
public string AnswerContent { get; set; }
/// <summary>
/// 是否为正确答案
/// </summary>
public bool? IsCorrect { get; set; }
/// <summary>
/// 图片地址
/// </summary>
[Display(Name = "ImageUrl"), Description("图片地址"), MaxLength(64, ErrorMessage = "图片地址 不能超过 64 个字符")]
public string ImageUrl { get; set; }
/// <summary>
/// 排序号
/// </summary>
public int? TaxisNo { 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_Question.cs
*
* N / A
* Ghre_Question
*
* Ver
*
*V0.01 2024/4/28 11:00:27 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models
{
/// <summary>
/// 题目 (Dto.EditInput)
/// </summary>
public class EditGhre_QuestionInput : Ghre_QuestionBase
{
}
}

@ -0,0 +1,27 @@
/* ,
* Ghre_QuestionAnswer.cs
*
* N / A
* Ghre_QuestionAnswer
*
* Ver
*
*V0.01 2024/4/28 11:02:39 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models
{
/// <summary>
/// 题目答案 (Dto.EditInput)
/// </summary>
public class EditGhre_QuestionAnswerInput : Ghre_QuestionAnswerBase
{
}
}

@ -0,0 +1,27 @@
/* ,
* Ghre_Question.cs
*
* N / A
* Ghre_Question
*
* Ver
*
*V0.01 2024/4/28 11:00:27 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models
{
/// <summary>
/// 题目 (Dto.InsertInput)
/// </summary>
public class InsertGhre_QuestionInput : Ghre_QuestionBase
{
}
}

@ -0,0 +1,27 @@
/* ,
* Ghre_QuestionAnswer.cs
*
* N / A
* Ghre_QuestionAnswer
*
* Ver
*
*V0.01 2024/4/28 11:02:39 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models
{
/// <summary>
/// 题目答案 (Dto.InsertInput)
/// </summary>
public class InsertGhre_QuestionAnswerInput : Ghre_QuestionAnswerBase
{
}
}

@ -0,0 +1,142 @@
/* ,
* Ghre_Question.cs
*
* N / A
* Ghre_Question
*
* Ver
*
*V0.01 2024/4/28 11:00:27 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_Question", "Ghre_Question"), Entity(TableCnName = "题目", TableName = "Ghre_Question")]
public class Ghre_Question : BasePoco
{
/// <summary>
/// 课程Ids
/// </summary>
[Display(Name = "CourseIds"), Description("课程Ids"), MaxLength(2000, ErrorMessage = "课程Ids 不能超过 2000 个字符")]
public string CourseIds { get; set; }
/// <summary>
/// 题目编号
/// </summary>
[Display(Name = "CourseINo"), Description("题目编号"), MaxLength(32, ErrorMessage = "题目编号 不能超过 32 个字符")]
public string CourseINo { get; set; }
/// <summary>
/// 难易程度
/// </summary>
[Display(Name = "DifficultyLevel"), Description("难易程度"), MaxLength(32, ErrorMessage = "难易程度 不能超过 32 个字符")]
public string DifficultyLevel { get; set; }
/// <summary>
/// 题目类型
/// </summary>
[Display(Name = "CourseType"), Description("题目类型"), MaxLength(32, ErrorMessage = "题目类型 不能超过 32 个字符")]
public string CourseType { get; set; }
/// <summary>
/// 题目内容
/// </summary>
[Display(Name = "CourseContent"), Description("题目内容"), MaxLength(2000, ErrorMessage = "题目内容 不能超过 2000 个字符")]
public string CourseContent { 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,139 @@
/* ,
* Ghre_QuestionAnswer.cs
*
* N / A
* Ghre_QuestionAnswer
*
* Ver
*
*V0.01 2024/4/28 11:02:39 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_QuestionAnswer", "Ghre_QuestionAnswer"), Entity(TableCnName = "题目答案", TableName = "Ghre_QuestionAnswer")]
public class Ghre_QuestionAnswer : BasePoco
{
/// <summary>
/// 题目ID
/// </summary>
public long? QuestionId { get; set; }
/// <summary>
/// 答案内容
/// </summary>
[Display(Name = "AnswerContent"), Description("答案内容"), MaxLength(32, ErrorMessage = "答案内容 不能超过 32 个字符")]
public string AnswerContent { get; set; }
/// <summary>
/// 是否为正确答案
/// </summary>
public bool? IsCorrect { get; set; }
/// <summary>
/// 图片地址
/// </summary>
[Display(Name = "ImageUrl"), Description("图片地址"), MaxLength(64, ErrorMessage = "图片地址 不能超过 64 个字符")]
public string ImageUrl { get; set; }
/// <summary>
/// 排序号
/// </summary>
public int? TaxisNo { 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_Question.cs
*
* N / A
* Ghre_Question
*
* Ver
*
*V0.01 2024/4/28 11:00:27 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models
{
/// <summary>
/// 题目(Dto.View)
/// </summary>
public class Ghre_QuestionDto : Ghre_Question
{
}
}

@ -0,0 +1,27 @@
/* ,
* Ghre_QuestionAnswer.cs
*
* N / A
* Ghre_QuestionAnswer
*
* Ver
*
*V0.01 2024/4/28 11:02:39 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models
{
/// <summary>
/// 题目答案(Dto.View)
/// </summary>
public class Ghre_QuestionAnswerDto : Ghre_QuestionAnswer
{
}
}

@ -0,0 +1,21 @@

using Tiobon.Core.IServices;
using Tiobon.Core.Model.Models;
using Tiobon.Core.Services.BASE;
using Tiobon.Core.IRepository.Base;
namespace Tiobon.Core.Services
{
/// <summary>
/// 题目答案 (服务)
/// </summary>
public class Ghre_QuestionAnswerServices : BaseServices<Ghre_QuestionAnswer, Ghre_QuestionAnswerDto, InsertGhre_QuestionAnswerInput, EditGhre_QuestionAnswerInput>, IGhre_QuestionAnswerServices
{
private readonly IBaseRepository<Ghre_QuestionAnswer> _dal;
public Ghre_QuestionAnswerServices(IBaseRepository<Ghre_QuestionAnswer> dal)
{
this._dal = dal;
base.BaseDal = dal;
}
}
}

@ -0,0 +1,21 @@

using Tiobon.Core.IServices;
using Tiobon.Core.Model.Models;
using Tiobon.Core.Services.BASE;
using Tiobon.Core.IRepository.Base;
namespace Tiobon.Core.Services
{
/// <summary>
/// 题目 (服务)
/// </summary>
public class Ghre_QuestionServices : BaseServices<Ghre_Question, Ghre_QuestionDto, InsertGhre_QuestionInput, EditGhre_QuestionInput>, IGhre_QuestionServices
{
private readonly IBaseRepository<Ghre_Question> _dal;
public Ghre_QuestionServices(IBaseRepository<Ghre_Question> dal)
{
this._dal = dal;
base.BaseDal = dal;
}
}
}
Loading…
Cancel
Save