diff --git a/Tiobon.Core.Api/Controllers/Ghre/Ghre_ConfigGroupController.cs b/Tiobon.Core.Api/Controllers/Ghre/Ghre_ConfigGroupController.cs new file mode 100644 index 00000000..d1e82d40 --- /dev/null +++ b/Tiobon.Core.Api/Controllers/Ghre/Ghre_ConfigGroupController.cs @@ -0,0 +1,14 @@ +namespace Tiobon.Core.Api.Controllers; + +/// +/// 参数配置组(Controller) +/// +[Route("api/[controller]")] +[ApiController, GlobalActionFilter] +[Authorize(Permissions.Name), ApiExplorerSettings(GroupName = Grouping.GroupName_Ghre)] +public class Ghre_ConfigGroupController : BaseController +{ + public Ghre_ConfigGroupController(IGhre_ConfigGroupServices service) : base(service) + { + } +} \ No newline at end of file diff --git a/Tiobon.Core.IServices/Ghre/IGhre_ConfigGroupServices.cs b/Tiobon.Core.IServices/Ghre/IGhre_ConfigGroupServices.cs new file mode 100644 index 00000000..026ef82c --- /dev/null +++ b/Tiobon.Core.IServices/Ghre/IGhre_ConfigGroupServices.cs @@ -0,0 +1,11 @@ +using Tiobon.Core.IServices.BASE; +using Tiobon.Core.Model.Models; + +namespace Tiobon.Core.IServices; + +/// +/// 参数配置组(自定义服务接口) +/// +public interface IGhre_ConfigGroupServices : IBaseServices +{ +} \ No newline at end of file diff --git a/Tiobon.Core.Model/Base/Ghre/Ghre_ConfigGroup.Dto.Base.cs b/Tiobon.Core.Model/Base/Ghre/Ghre_ConfigGroup.Dto.Base.cs new file mode 100644 index 00000000..5c8bdd16 --- /dev/null +++ b/Tiobon.Core.Model/Base/Ghre/Ghre_ConfigGroup.Dto.Base.cs @@ -0,0 +1,117 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghre_ConfigGroup.cs +* +*功 能: N / A +* 类 名: Ghre_ConfigGroup +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2025/1/17 11:43:48 SimonHsiao 初版 +* +* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ +namespace Tiobon.Core.Model.Models; + + +/// +/// 参数配置组 (Dto.Base) +/// +public class Ghre_ConfigGroupBase +{ + + /// + /// 参数名称 + /// + [Display(Name = "GroupName"), Description("参数名称"), MaxLength(32, ErrorMessage = "参数名称 不能超过 32 个字符")] + public string GroupName { get; set; } + + /// + /// 排序 + /// + public int? SortNo { get; set; } + + /// + /// 备注 + /// + [Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")] + public string RemarkSz { get; set; } + + /// + /// 默认标志 + /// + public int? IsDefault { get; set; } + + /// + /// 预留字段1 + /// + [Display(Name = "Reverse1"), Description("预留字段1"), MaxLength(1000, ErrorMessage = "预留字段1 不能超过 1000 个字符")] + public string Reverse1 { get; set; } + + /// + /// 预留字段2 + /// + [Display(Name = "Reverse2"), Description("预留字段2"), MaxLength(1000, ErrorMessage = "预留字段2 不能超过 1000 个字符")] + public string Reverse2 { get; set; } + + /// + /// 预留字段3 + /// + [Display(Name = "Reverse3"), Description("预留字段3"), MaxLength(1000, ErrorMessage = "预留字段3 不能超过 1000 个字符")] + public string Reverse3 { get; set; } + + /// + /// 预留字段4 + /// + [Display(Name = "Reverse4"), Description("预留字段4"), MaxLength(1000, ErrorMessage = "预留字段4 不能超过 1000 个字符")] + public string Reverse4 { get; set; } + + /// + /// 预留字段5 + /// + [Display(Name = "Reverse5"), Description("预留字段5"), MaxLength(1000, ErrorMessage = "预留字段5 不能超过 1000 个字符")] + public string Reverse5 { get; set; } + + /// + /// 预留字段6 + /// + [Display(Name = "Reverse6"), Description("预留字段6"), MaxLength(1000, ErrorMessage = "预留字段6 不能超过 1000 个字符")] + public string Reverse6 { get; set; } + + /// + /// 预留字段7 + /// + [Display(Name = "Reverse7"), Description("预留字段7"), MaxLength(1000, ErrorMessage = "预留字段7 不能超过 1000 个字符")] + public string Reverse7 { get; set; } + + /// + /// 预留字段8 + /// + [Display(Name = "Reverse8"), Description("预留字段8"), MaxLength(1000, ErrorMessage = "预留字段8 不能超过 1000 个字符")] + public string Reverse8 { get; set; } + + /// + /// 预留字段9 + /// + [Display(Name = "Reverse9"), Description("预留字段9"), MaxLength(1000, ErrorMessage = "预留字段9 不能超过 1000 个字符")] + public string Reverse9 { get; set; } + + /// + /// 预留字段10 + /// + [Display(Name = "Reverse10"), Description("预留字段10"), MaxLength(1000, ErrorMessage = "预留字段10 不能超过 1000 个字符")] + public string Reverse10 { get; set; } + + /// + /// 预留字段11 + /// + public int? ReverseI1 { get; set; } + + /// + /// 预留字段12 + /// + public int? ReverseI2 { get; set; } +} diff --git a/Tiobon.Core.Model/Edit/Ghre/Ghre_ConfigGroup.Dto.EditInput.cs b/Tiobon.Core.Model/Edit/Ghre/Ghre_ConfigGroup.Dto.EditInput.cs new file mode 100644 index 00000000..2c93ca86 --- /dev/null +++ b/Tiobon.Core.Model/Edit/Ghre/Ghre_ConfigGroup.Dto.EditInput.cs @@ -0,0 +1,26 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghre_ConfigGroup.cs +* +*功 能: N / A +* 类 名: Ghre_ConfigGroup +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2025/1/17 11:43:48 SimonHsiao 初版 +* +* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ + +namespace Tiobon.Core.Model.Models; + + +/// +/// 参数配置组 (Dto.EditInput) +/// +public class EditGhre_ConfigGroupInput : Ghre_ConfigGroupBase +{ +} diff --git a/Tiobon.Core.Model/Insert/Ghre/Ghre_ConfigGroup.Dto.InsertInput.cs b/Tiobon.Core.Model/Insert/Ghre/Ghre_ConfigGroup.Dto.InsertInput.cs new file mode 100644 index 00000000..42779d1d --- /dev/null +++ b/Tiobon.Core.Model/Insert/Ghre/Ghre_ConfigGroup.Dto.InsertInput.cs @@ -0,0 +1,26 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghre_ConfigGroup.cs +* +*功 能: N / A +* 类 名: Ghre_ConfigGroup +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2025/1/17 11:43:48 SimonHsiao 初版 +* +* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ + +namespace Tiobon.Core.Model.Models; + + +/// +/// 参数配置组 (Dto.InsertInput) +/// +public class InsertGhre_ConfigGroupInput : Ghre_ConfigGroupBase +{ +} diff --git a/Tiobon.Core.Model/Models/Ghre/Ghre_ConfigGroup.cs b/Tiobon.Core.Model/Models/Ghre/Ghre_ConfigGroup.cs new file mode 100644 index 00000000..88896520 --- /dev/null +++ b/Tiobon.Core.Model/Models/Ghre/Ghre_ConfigGroup.cs @@ -0,0 +1,118 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghre_ConfigGroup.cs +* +*功 能: N / A +* 类 名: Ghre_ConfigGroup +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2025/1/17 11:43:48 SimonHsiao 初版 +* +* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ +namespace Tiobon.Core.Model.Models; + + +/// +/// 参数配置组 (Model) +/// +[SugarTable("Ghre_ConfigGroup", "Ghre_ConfigGroup"), Entity(TableCnName = "参数配置组", TableName = "Ghre_ConfigGroup")] +public class Ghre_ConfigGroup : BasePoco +{ + + /// + /// 参数名称 + /// + [Display(Name = "GroupName"), Description("参数名称"), MaxLength(32, ErrorMessage = "参数名称 不能超过 32 个字符")] + public string GroupName { get; set; } + + /// + /// 排序 + /// + public int? SortNo { get; set; } + + /// + /// 备注 + /// + [Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")] + public string RemarkSz { get; set; } + + /// + /// 默认标志 + /// + public int? IsDefault { get; set; } + + /// + /// 预留字段1 + /// + [Display(Name = "Reverse1"), Description("预留字段1"), MaxLength(1000, ErrorMessage = "预留字段1 不能超过 1000 个字符")] + public string Reverse1 { get; set; } + + /// + /// 预留字段2 + /// + [Display(Name = "Reverse2"), Description("预留字段2"), MaxLength(1000, ErrorMessage = "预留字段2 不能超过 1000 个字符")] + public string Reverse2 { get; set; } + + /// + /// 预留字段3 + /// + [Display(Name = "Reverse3"), Description("预留字段3"), MaxLength(1000, ErrorMessage = "预留字段3 不能超过 1000 个字符")] + public string Reverse3 { get; set; } + + /// + /// 预留字段4 + /// + [Display(Name = "Reverse4"), Description("预留字段4"), MaxLength(1000, ErrorMessage = "预留字段4 不能超过 1000 个字符")] + public string Reverse4 { get; set; } + + /// + /// 预留字段5 + /// + [Display(Name = "Reverse5"), Description("预留字段5"), MaxLength(1000, ErrorMessage = "预留字段5 不能超过 1000 个字符")] + public string Reverse5 { get; set; } + + /// + /// 预留字段6 + /// + [Display(Name = "Reverse6"), Description("预留字段6"), MaxLength(1000, ErrorMessage = "预留字段6 不能超过 1000 个字符")] + public string Reverse6 { get; set; } + + /// + /// 预留字段7 + /// + [Display(Name = "Reverse7"), Description("预留字段7"), MaxLength(1000, ErrorMessage = "预留字段7 不能超过 1000 个字符")] + public string Reverse7 { get; set; } + + /// + /// 预留字段8 + /// + [Display(Name = "Reverse8"), Description("预留字段8"), MaxLength(1000, ErrorMessage = "预留字段8 不能超过 1000 个字符")] + public string Reverse8 { get; set; } + + /// + /// 预留字段9 + /// + [Display(Name = "Reverse9"), Description("预留字段9"), MaxLength(1000, ErrorMessage = "预留字段9 不能超过 1000 个字符")] + public string Reverse9 { get; set; } + + /// + /// 预留字段10 + /// + [Display(Name = "Reverse10"), Description("预留字段10"), MaxLength(1000, ErrorMessage = "预留字段10 不能超过 1000 个字符")] + public string Reverse10 { get; set; } + + /// + /// 预留字段11 + /// + public int? ReverseI1 { get; set; } + + /// + /// 预留字段12 + /// + public int? ReverseI2 { get; set; } +} diff --git a/Tiobon.Core.Model/View/Ghre/Ghre_ConfigGroup.Dto.View.cs b/Tiobon.Core.Model/View/Ghre/Ghre_ConfigGroup.Dto.View.cs new file mode 100644 index 00000000..79479e09 --- /dev/null +++ b/Tiobon.Core.Model/View/Ghre/Ghre_ConfigGroup.Dto.View.cs @@ -0,0 +1,34 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghre_ConfigGroup.cs +* +*功 能: N / A +* 类 名: Ghre_ConfigGroup +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2025/1/17 11:43:48 SimonHsiao 初版 +* +* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ + +namespace Tiobon.Core.Model.Models; + +/// +/// 参数配置组(Dto.View1) +/// +public class Ghre_ConfigGroupDto : Ghre_ConfigGroup +{ + /// + /// 创建信息 + /// + public string CreateDataInfo { get; set; } + + /// + /// 修改信息 + /// + public string UpdateDataInfo { get; set; } +} diff --git a/Tiobon.Core.Services/Ghre/Ghre_ConfigGroupServices.cs b/Tiobon.Core.Services/Ghre/Ghre_ConfigGroupServices.cs new file mode 100644 index 00000000..635212f3 --- /dev/null +++ b/Tiobon.Core.Services/Ghre/Ghre_ConfigGroupServices.cs @@ -0,0 +1,24 @@ +namespace Tiobon.Core.Services; + +/// +/// 参数配置组 (服务) +/// +public class Ghre_ConfigGroupServices : BaseServices, IGhre_ConfigGroupServices +{ + private readonly IBaseRepository _dal; + public Ghre_ConfigGroupServices(ICaching caching, IBaseRepository dal) + { + this._dal = dal; + base.BaseDal = dal; + base._caching = caching; + } + + public override async Task> QueryFilterPage(QueryBody filter, string condition, bool? IsEnable = true) + { + var result = await base.QueryFilterPage(filter, condition, IsEnable); + + var + + return result; + } +} \ No newline at end of file