问卷题库表结构设计、接口开发

master
xiaochanghai 2 months ago
parent d141ce58db
commit 89d2ea0bfb
  1. 1063
      Model/Tiobon.Web.pdm
  2. 14
      Tiobon.Core.Api/Controllers/Ghre/Ghre_SurveyQuestionPoolController.cs
  3. 14
      Tiobon.Core.Api/Controllers/Ghre/Ghre_SurveyQuestionPoolOptionController.cs
  4. 8
      Tiobon.Core.IServices/Ghre/IGhre_SurveyQuestionPoolOptionServices.cs
  5. 8
      Tiobon.Core.IServices/Ghre/IGhre_SurveyQuestionPoolServices.cs
  6. 174
      Tiobon.Core.Model/Base/Ghre/Ghre_SurveyQuestionPool.Dto.Base.cs
  7. 173
      Tiobon.Core.Model/Base/Ghre/Ghre_SurveyQuestionPoolOption.Dto.Base.cs
  8. 26
      Tiobon.Core.Model/Edit/Ghre/Ghre_SurveyQuestionPool.Dto.EditInput.cs
  9. 26
      Tiobon.Core.Model/Edit/Ghre/Ghre_SurveyQuestionPoolOption.Dto.EditInput.cs
  10. 26
      Tiobon.Core.Model/Insert/Ghre/Ghre_SurveyQuestionPool.Dto.InsertInput.cs
  11. 26
      Tiobon.Core.Model/Insert/Ghre/Ghre_SurveyQuestionPoolOption.Dto.InsertInput.cs
  12. 175
      Tiobon.Core.Model/Models/Ghre/Ghre_SurveyQuestionPool.cs
  13. 174
      Tiobon.Core.Model/Models/Ghre/Ghre_SurveyQuestionPoolOption.cs
  14. 34
      Tiobon.Core.Model/View/Ghre/Ghre_SurveyQuestionPool.Dto.View.cs
  15. 34
      Tiobon.Core.Model/View/Ghre/Ghre_SurveyQuestionPoolOption.Dto.View.cs
  16. 15
      Tiobon.Core.Services/Ghre/Ghre_SurveyQuestionPoolOptionServices.cs
  17. 15
      Tiobon.Core.Services/Ghre/Ghre_SurveyQuestionPoolServices.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_SurveyQuestionPoolController : BaseController<IGhre_SurveyQuestionPoolServices, Ghre_SurveyQuestionPool, Ghre_SurveyQuestionPoolDto, InsertGhre_SurveyQuestionPoolInput, EditGhre_SurveyQuestionPoolInput>
{
public Ghre_SurveyQuestionPoolController(IGhre_SurveyQuestionPoolServices 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_SurveyQuestionPoolOptionController : BaseController<IGhre_SurveyQuestionPoolOptionServices, Ghre_SurveyQuestionPoolOption, Ghre_SurveyQuestionPoolOptionDto, InsertGhre_SurveyQuestionPoolOptionInput, EditGhre_SurveyQuestionPoolOptionInput>
{
public Ghre_SurveyQuestionPoolOptionController(IGhre_SurveyQuestionPoolOptionServices service) : base(service)
{
}
}

@ -0,0 +1,8 @@
namespace Tiobon.Core.IServices;
/// <summary>
/// 问卷题库选项(自定义服务接口)
/// </summary>
public interface IGhre_SurveyQuestionPoolOptionServices : IBaseServices<Ghre_SurveyQuestionPoolOption, Ghre_SurveyQuestionPoolOptionDto, InsertGhre_SurveyQuestionPoolOptionInput, EditGhre_SurveyQuestionPoolOptionInput>
{
}

@ -0,0 +1,8 @@
namespace Tiobon.Core.IServices;
/// <summary>
/// 问卷题库(自定义服务接口)
/// </summary>
public interface IGhre_SurveyQuestionPoolServices : IBaseServices<Ghre_SurveyQuestionPool, Ghre_SurveyQuestionPoolDto, InsertGhre_SurveyQuestionPoolInput, EditGhre_SurveyQuestionPoolInput>
{
}

@ -0,0 +1,174 @@
/* ,
* Ghre_SurveyQuestionPool.cs
*
* N / A
* Ghre_SurveyQuestionPool
*
* Ver
*
*V0.01 2025/5/7 15:28:46 SimonHsiao
*
* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models;
/// <summary>
/// 问卷题库 (Dto.Base)
/// </summary>
public class Ghre_SurveyQuestionPoolBase
{
/// <summary>
/// 问卷调查ID
/// </summary>
public long? SurveyId { get; set; }
/// <summary>
/// 问卷调查题目ID
/// </summary>
public long? SurveyQuestionId { get; set; }
/// <summary>
/// 题目类型
/// </summary>
[Display(Name = "QuestionType"), Description("题目类型"), MaxLength(32, ErrorMessage = "题目类型 不能超过 32 个字符")]
public string QuestionType { get; set; }
/// <summary>
/// 题目内容
/// </summary>
[Display(Name = "QuestionContent"), Description("题目内容"), MaxLength(2000, ErrorMessage = "题目内容 不能超过 2000 个字符")]
public string QuestionContent { get; set; }
/// <summary>
/// 题目解析
/// </summary>
[Display(Name = "QuestionAnalysis"), Description("题目解析"), MaxLength(2000, ErrorMessage = "题目解析 不能超过 2000 个字符")]
public string QuestionAnalysis { get; set; }
/// <summary>
/// 是否必填
/// </summary>
public bool? IsRequired { get; set; }
/// <summary>
/// 开始提示
/// </summary>
[Display(Name = "StartTips"), Description("开始提示"), MaxLength(64, ErrorMessage = "开始提示 不能超过 64 个字符")]
public string StartTips { get; set; }
/// <summary>
/// 结束提示
/// </summary>
[Display(Name = "EndTips"), Description("结束提示"), MaxLength(64, ErrorMessage = "结束提示 不能超过 64 个字符")]
public string EndTips { get; set; }
/// <summary>
/// 图标
/// </summary>
[Display(Name = "QuestionIcon"), Description("图标"), MaxLength(32, ErrorMessage = "图标 不能超过 32 个字符")]
public string QuestionIcon { get; set; }
/// <summary>
/// 排序
/// </summary>
public int? SortNo { get; set; }
/// <summary>
/// 词云图关键字
/// </summary>
[Display(Name = "WordCloudKeywords"), Description("词云图关键字"), MaxLength(2000, ErrorMessage = "词云图关键字 不能超过 2000 个字符")]
public string WordCloudKeywords { get; set; }
/// <summary>
/// 状态
/// </summary>
[Display(Name = "Status"), Description("状态"), MaxLength(32, ErrorMessage = "状态 不能超过 32 个字符")]
public string Status { 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,173 @@
/* ,
* Ghre_SurveyQuestionPoolOption.cs
*
* N / A
* Ghre_SurveyQuestionPoolOption
*
* Ver
*
*V0.01 2025/5/7 15:28:36 SimonHsiao
*
* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models;
/// <summary>
/// 问卷题库选项 (Dto.Base)
/// </summary>
public class Ghre_SurveyQuestionPoolOptionBase
{
/// <summary>
/// 问卷调查ID
/// </summary>
public long? SurveyQuestionPoolId { get; set; }
/// <summary>
/// 题目编号
/// </summary>
[Display(Name = "QuestionNo"), Description("题目编号"), MaxLength(32, ErrorMessage = "题目编号 不能超过 32 个字符")]
public string QuestionNo { get; set; }
/// <summary>
/// 答案内容
/// </summary>
[Display(Name = "AnswerContent"), Description("答案内容"), MaxLength(2000, ErrorMessage = "答案内容 不能超过 2000 个字符")]
public string AnswerContent { get; set; }
/// <summary>
/// 是否必填
/// </summary>
public bool? IsRequired { get; set; }
/// <summary>
/// 分数
/// </summary>
[Display(Name = "Score"), Description("分数"), Column(TypeName = "decimal(20,2)")]
public decimal? Score { get; set; }
/// <summary>
/// 是否其他选项
/// </summary>
public bool? IsOther { get; set; }
/// <summary>
/// 图片地址
/// </summary>
[Display(Name = "ImageUrl"), Description("图片地址"), MaxLength(128, ErrorMessage = "图片地址 不能超过 128 个字符")]
public string ImageUrl { get; set; }
/// <summary>
/// 图片宽度
/// </summary>
[Display(Name = "ImageWidthPc"), Description("图片宽度"), MaxLength(32, ErrorMessage = "图片宽度 不能超过 32 个字符")]
public string ImageWidthPc { get; set; }
/// <summary>
/// 图片宽度
/// </summary>
[Display(Name = "ImageWidthApp"), Description("图片宽度"), MaxLength(32, ErrorMessage = "图片宽度 不能超过 32 个字符")]
public string ImageWidthApp { get; set; }
/// <summary>
/// 排序号
/// </summary>
public int? TaxisNo { get; set; }
/// <summary>
/// 排序
/// </summary>
public int? SortNo { get; set; }
/// <summary>
/// 状态
/// </summary>
[Display(Name = "Status"), Description("状态"), MaxLength(32, ErrorMessage = "状态 不能超过 32 个字符")]
public string Status { 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,26 @@
/* ,
* Ghre_SurveyQuestionPool.cs
*
* N / A
* Ghre_SurveyQuestionPool
*
* Ver
*
*V0.01 2025/5/7 15:28:46 SimonHsiao
*
* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models;
/// <summary>
/// 问卷题库 (Dto.EditInput)
/// </summary>
public class EditGhre_SurveyQuestionPoolInput : Ghre_SurveyQuestionPoolBase
{
}

@ -0,0 +1,26 @@
/* ,
* Ghre_SurveyQuestionPoolOption.cs
*
* N / A
* Ghre_SurveyQuestionPoolOption
*
* Ver
*
*V0.01 2025/5/7 15:28:36 SimonHsiao
*
* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models;
/// <summary>
/// 问卷题库选项 (Dto.EditInput)
/// </summary>
public class EditGhre_SurveyQuestionPoolOptionInput : Ghre_SurveyQuestionPoolOptionBase
{
}

@ -0,0 +1,26 @@
/* ,
* Ghre_SurveyQuestionPool.cs
*
* N / A
* Ghre_SurveyQuestionPool
*
* Ver
*
*V0.01 2025/5/7 15:28:46 SimonHsiao
*
* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models;
/// <summary>
/// 问卷题库 (Dto.InsertInput)
/// </summary>
public class InsertGhre_SurveyQuestionPoolInput : Ghre_SurveyQuestionPoolBase
{
}

@ -0,0 +1,26 @@
/* ,
* Ghre_SurveyQuestionPoolOption.cs
*
* N / A
* Ghre_SurveyQuestionPoolOption
*
* Ver
*
*V0.01 2025/5/7 15:28:36 SimonHsiao
*
* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models;
/// <summary>
/// 问卷题库选项 (Dto.InsertInput)
/// </summary>
public class InsertGhre_SurveyQuestionPoolOptionInput : Ghre_SurveyQuestionPoolOptionBase
{
}

@ -0,0 +1,175 @@
/* ,
* Ghre_SurveyQuestionPool.cs
*
* N / A
* Ghre_SurveyQuestionPool
*
* Ver
*
*V0.01 2025/5/7 15:28:46 SimonHsiao
*
* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models;
/// <summary>
/// 问卷题库 (Model)
/// </summary>
[SugarTable("Ghre_SurveyQuestionPool", "Ghre_SurveyQuestionPool"), Entity(TableCnName = "问卷题库", TableName = "Ghre_SurveyQuestionPool")]
public class Ghre_SurveyQuestionPool : BasePoco
{
/// <summary>
/// 问卷调查ID
/// </summary>
public long? SurveyId { get; set; }
/// <summary>
/// 问卷调查题目ID
/// </summary>
public long? SurveyQuestionId { get; set; }
/// <summary>
/// 题目类型
/// </summary>
[Display(Name = "QuestionType"), Description("题目类型"), MaxLength(32, ErrorMessage = "题目类型 不能超过 32 个字符")]
public string QuestionType { get; set; }
/// <summary>
/// 题目内容
/// </summary>
[Display(Name = "QuestionContent"), Description("题目内容"), MaxLength(2000, ErrorMessage = "题目内容 不能超过 2000 个字符")]
public string QuestionContent { get; set; }
/// <summary>
/// 题目解析
/// </summary>
[Display(Name = "QuestionAnalysis"), Description("题目解析"), MaxLength(2000, ErrorMessage = "题目解析 不能超过 2000 个字符")]
public string QuestionAnalysis { get; set; }
/// <summary>
/// 是否必填
/// </summary>
public bool? IsRequired { get; set; }
/// <summary>
/// 开始提示
/// </summary>
[Display(Name = "StartTips"), Description("开始提示"), MaxLength(64, ErrorMessage = "开始提示 不能超过 64 个字符")]
public string StartTips { get; set; }
/// <summary>
/// 结束提示
/// </summary>
[Display(Name = "EndTips"), Description("结束提示"), MaxLength(64, ErrorMessage = "结束提示 不能超过 64 个字符")]
public string EndTips { get; set; }
/// <summary>
/// 图标
/// </summary>
[Display(Name = "QuestionIcon"), Description("图标"), MaxLength(32, ErrorMessage = "图标 不能超过 32 个字符")]
public string QuestionIcon { get; set; }
/// <summary>
/// 排序
/// </summary>
public int? SortNo { get; set; }
/// <summary>
/// 词云图关键字
/// </summary>
[Display(Name = "WordCloudKeywords"), Description("词云图关键字"), MaxLength(2000, ErrorMessage = "词云图关键字 不能超过 2000 个字符")]
public string WordCloudKeywords { get; set; }
/// <summary>
/// 状态
/// </summary>
[Display(Name = "Status"), Description("状态"), MaxLength(32, ErrorMessage = "状态 不能超过 32 个字符")]
public string Status { 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,174 @@
/* ,
* Ghre_SurveyQuestionPoolOption.cs
*
* N / A
* Ghre_SurveyQuestionPoolOption
*
* Ver
*
*V0.01 2025/5/7 15:28:36 SimonHsiao
*
* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models;
/// <summary>
/// 问卷题库选项 (Model)
/// </summary>
[SugarTable("Ghre_SurveyQuestionPoolOption", "Ghre_SurveyQuestionPoolOption"), Entity(TableCnName = "问卷题库选项", TableName = "Ghre_SurveyQuestionPoolOption")]
public class Ghre_SurveyQuestionPoolOption : BasePoco
{
/// <summary>
/// 问卷调查ID
/// </summary>
public long? SurveyQuestionPoolId { get; set; }
/// <summary>
/// 题目编号
/// </summary>
[Display(Name = "QuestionNo"), Description("题目编号"), MaxLength(32, ErrorMessage = "题目编号 不能超过 32 个字符")]
public string QuestionNo { get; set; }
/// <summary>
/// 答案内容
/// </summary>
[Display(Name = "AnswerContent"), Description("答案内容"), MaxLength(2000, ErrorMessage = "答案内容 不能超过 2000 个字符")]
public string AnswerContent { get; set; }
/// <summary>
/// 是否必填
/// </summary>
public bool? IsRequired { get; set; }
/// <summary>
/// 分数
/// </summary>
[Display(Name = "Score"), Description("分数"), Column(TypeName = "decimal(20,2)")]
public decimal? Score { get; set; }
/// <summary>
/// 是否其他选项
/// </summary>
public bool? IsOther { get; set; }
/// <summary>
/// 图片地址
/// </summary>
[Display(Name = "ImageUrl"), Description("图片地址"), MaxLength(128, ErrorMessage = "图片地址 不能超过 128 个字符")]
public string ImageUrl { get; set; }
/// <summary>
/// 图片宽度
/// </summary>
[Display(Name = "ImageWidthPc"), Description("图片宽度"), MaxLength(32, ErrorMessage = "图片宽度 不能超过 32 个字符")]
public string ImageWidthPc { get; set; }
/// <summary>
/// 图片宽度
/// </summary>
[Display(Name = "ImageWidthApp"), Description("图片宽度"), MaxLength(32, ErrorMessage = "图片宽度 不能超过 32 个字符")]
public string ImageWidthApp { get; set; }
/// <summary>
/// 排序号
/// </summary>
public int? TaxisNo { get; set; }
/// <summary>
/// 排序
/// </summary>
public int? SortNo { get; set; }
/// <summary>
/// 状态
/// </summary>
[Display(Name = "Status"), Description("状态"), MaxLength(32, ErrorMessage = "状态 不能超过 32 个字符")]
public string Status { 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_SurveyQuestionPool.cs
*
* N / A
* Ghre_SurveyQuestionPool
*
* Ver
*
*V0.01 2025/5/7 15:28:46 SimonHsiao
*
* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models;
/// <summary>
/// 问卷题库(Dto.View1)
/// </summary>
public class Ghre_SurveyQuestionPoolDto : Ghre_SurveyQuestionPool
{
/// <summary>
/// 创建信息
/// </summary>
public string CreateDataInfo { get; set; }
/// <summary>
/// 修改信息
/// </summary>
public string UpdateDataInfo { get; set; }
}

@ -0,0 +1,34 @@
/* ,
* Ghre_SurveyQuestionPoolOption.cs
*
* N / A
* Ghre_SurveyQuestionPoolOption
*
* Ver
*
*V0.01 2025/5/7 15:28:36 SimonHsiao
*
* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models;
/// <summary>
/// 问卷题库选项(Dto.View1)
/// </summary>
public class Ghre_SurveyQuestionPoolOptionDto : Ghre_SurveyQuestionPoolOption
{
/// <summary>
/// 创建信息
/// </summary>
public string CreateDataInfo { get; set; }
/// <summary>
/// 修改信息
/// </summary>
public string UpdateDataInfo { get; set; }
}

@ -0,0 +1,15 @@
namespace Tiobon.Core.Services;
/// <summary>
/// 问卷题库选项 (服务)
/// </summary>
public class Ghre_SurveyQuestionPoolOptionServices : BaseServices<Ghre_SurveyQuestionPoolOption, Ghre_SurveyQuestionPoolOptionDto, InsertGhre_SurveyQuestionPoolOptionInput, EditGhre_SurveyQuestionPoolOptionInput>, IGhre_SurveyQuestionPoolOptionServices
{
private readonly IBaseRepository<Ghre_SurveyQuestionPoolOption> _dal;
public Ghre_SurveyQuestionPoolOptionServices(ICaching caching, IBaseRepository<Ghre_SurveyQuestionPoolOption> dal)
{
this._dal = dal;
base.BaseDal = dal;
base._caching = caching;
}
}

@ -0,0 +1,15 @@
namespace Tiobon.Core.Services;
/// <summary>
/// 问卷题库 (服务)
/// </summary>
public class Ghre_SurveyQuestionPoolServices : BaseServices<Ghre_SurveyQuestionPool, Ghre_SurveyQuestionPoolDto, InsertGhre_SurveyQuestionPoolInput, EditGhre_SurveyQuestionPoolInput>, IGhre_SurveyQuestionPoolServices
{
private readonly IBaseRepository<Ghre_SurveyQuestionPool> _dal;
public Ghre_SurveyQuestionPoolServices(ICaching caching, IBaseRepository<Ghre_SurveyQuestionPool> dal)
{
this._dal = dal;
base.BaseDal = dal;
base._caching = caching;
}
}
Loading…
Cancel
Save