diff --git a/Tiobon.Core.Api/Controllers/Ghrs/Ghrs_DataBelongController.cs b/Tiobon.Core.Api/Controllers/Ghrs/Ghrs_DataBelongController.cs new file mode 100644 index 00000000..0addcb67 --- /dev/null +++ b/Tiobon.Core.Api/Controllers/Ghrs/Ghrs_DataBelongController.cs @@ -0,0 +1,14 @@ +namespace Tiobon.Core.Api.Controllers; + +/// +/// 资料归属(Controller) +/// +[Route("api/[controller]")] +[ApiController, GlobalActionFilter] +[Authorize(Permissions.Name), ApiExplorerSettings(GroupName = Grouping.GroupName_Ghrs)] +public class Ghrs_DataBelongController : BaseController +{ + public Ghrs_DataBelongController(IGhrs_DataBelongServices service) : base(service) + { + } +} \ No newline at end of file diff --git a/Tiobon.Core.IServices/Ghrs/IGhrs_DataBelongServices.cs b/Tiobon.Core.IServices/Ghrs/IGhrs_DataBelongServices.cs new file mode 100644 index 00000000..856f00e9 --- /dev/null +++ b/Tiobon.Core.IServices/Ghrs/IGhrs_DataBelongServices.cs @@ -0,0 +1,8 @@ +namespace Tiobon.Core.IServices; + +/// +/// 资料归属(自定义服务接口) +/// +public interface IGhrs_DataBelongServices :IBaseServices +{ + } \ No newline at end of file diff --git a/Tiobon.Core.Model/Base/Ghrs/Ghrs_DataBelong.Dto.Base.cs b/Tiobon.Core.Model/Base/Ghrs/Ghrs_DataBelong.Dto.Base.cs new file mode 100644 index 00000000..c6404e2d --- /dev/null +++ b/Tiobon.Core.Model/Base/Ghrs/Ghrs_DataBelong.Dto.Base.cs @@ -0,0 +1,129 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghrs_DataBelong.cs +* +*功 能: N / A +* 类 名: Ghrs_DataBelong +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2025/5/29 10:15:52 SimonHsiao 初版 +* +* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ +namespace Tiobon.Core.Model.Models; + + +/// +/// 资料归属 (Dto.Base) +/// +public class Ghrs_DataBelongBase +{ + + /// + /// DataBelongId + /// + public int? DataBelongId { get; set; } + + /// + /// DataBelongNo + /// + [Display(Name = "DataBelongNo"), Description("DataBelongNo"), MaxLength(100, ErrorMessage = "DataBelongNo 不能超过 100 个字符")] + public string DataBelongNo { get; set; } + + /// + /// DataBelongName + /// + [Display(Name = "DataBelongName"), Description("DataBelongName"), MaxLength(1000, ErrorMessage = "DataBelongName 不能超过 1000 个字符")] + public string DataBelongName { get; set; } + + /// + /// DataBelongEname + /// + [Display(Name = "DataBelongEname"), Description("DataBelongEname"), MaxLength(1000, ErrorMessage = "DataBelongEname 不能超过 1000 个字符")] + public string DataBelongEname { get; set; } + + /// + /// DataBelongTypeID + /// + public int? DataBelongTypeID { get; set; } + + /// + /// MKey + /// + [Display(Name = "MKey"), Description("MKey"), MaxLength(200, ErrorMessage = "MKey 不能超过 200 个字符")] + public string MKey { get; set; } + + /// + /// RemarkSz + /// + [Display(Name = "RemarkSz"), Description("RemarkSz"), MaxLength(2000, ErrorMessage = "RemarkSz 不能超过 2000 个字符")] + public string RemarkSz { get; set; } + + /// + /// SortNo + /// + public int? SortNo { get; set; } + + /// + /// IsDefault + /// + public int? IsDefault { get; set; } + + /// + /// Reverse1 + /// + [Display(Name = "Reverse1"), Description("Reverse1"), MaxLength(1000, ErrorMessage = "Reverse1 不能超过 1000 个字符")] + public string Reverse1 { get; set; } + + /// + /// Reverse2 + /// + [Display(Name = "Reverse2"), Description("Reverse2"), MaxLength(1000, ErrorMessage = "Reverse2 不能超过 1000 个字符")] + public string Reverse2 { get; set; } + + /// + /// Reverse3 + /// + [Display(Name = "Reverse3"), Description("Reverse3"), MaxLength(1000, ErrorMessage = "Reverse3 不能超过 1000 个字符")] + public string Reverse3 { get; set; } + + /// + /// Reverse4 + /// + [Display(Name = "Reverse4"), Description("Reverse4"), MaxLength(1000, ErrorMessage = "Reverse4 不能超过 1000 个字符")] + public string Reverse4 { get; set; } + + /// + /// Reverse5 + /// + [Display(Name = "Reverse5"), Description("Reverse5"), MaxLength(1000, ErrorMessage = "Reverse5 不能超过 1000 个字符")] + public string Reverse5 { get; set; } + + /// + /// Reverse6 + /// + [Display(Name = "Reverse6"), Description("Reverse6"), MaxLength(1000, ErrorMessage = "Reverse6 不能超过 1000 个字符")] + public string Reverse6 { get; set; } + + /// + /// Reverse7 + /// + [Display(Name = "Reverse7"), Description("Reverse7"), MaxLength(1000, ErrorMessage = "Reverse7 不能超过 1000 个字符")] + public string Reverse7 { get; set; } + + /// + /// Reverse8 + /// + [Display(Name = "Reverse8"), Description("Reverse8"), MaxLength(1000, ErrorMessage = "Reverse8 不能超过 1000 个字符")] + public string Reverse8 { get; set; } + + /// + /// Reverse9 + /// + [Display(Name = "Reverse9"), Description("Reverse9"), MaxLength(1000, ErrorMessage = "Reverse9 不能超过 1000 个字符")] + public string Reverse9 { get; set; } +} diff --git a/Tiobon.Core.Model/Edit/Ghrs/Ghrs_DataBelong.Dto.EditInput.cs b/Tiobon.Core.Model/Edit/Ghrs/Ghrs_DataBelong.Dto.EditInput.cs new file mode 100644 index 00000000..8391761a --- /dev/null +++ b/Tiobon.Core.Model/Edit/Ghrs/Ghrs_DataBelong.Dto.EditInput.cs @@ -0,0 +1,26 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghrs_DataBelong.cs +* +*功 能: N / A +* 类 名: Ghrs_DataBelong +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2025/5/29 10:15:52 SimonHsiao 初版 +* +* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ + +namespace Tiobon.Core.Model.Models; + + +/// +/// 资料归属 (Dto.EditInput) +/// +public class EditGhrs_DataBelongInput : Ghrs_DataBelongBase +{ +} diff --git a/Tiobon.Core.Model/Insert/Ghrs/Ghrs_DataBelong.Dto.InsertInput.cs b/Tiobon.Core.Model/Insert/Ghrs/Ghrs_DataBelong.Dto.InsertInput.cs new file mode 100644 index 00000000..d7f77957 --- /dev/null +++ b/Tiobon.Core.Model/Insert/Ghrs/Ghrs_DataBelong.Dto.InsertInput.cs @@ -0,0 +1,26 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghrs_DataBelong.cs +* +*功 能: N / A +* 类 名: Ghrs_DataBelong +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2025/5/29 10:15:52 SimonHsiao 初版 +* +* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ + +namespace Tiobon.Core.Model.Models; + + +/// +/// 资料归属 (Dto.InsertInput) +/// +public class InsertGhrs_DataBelongInput : Ghrs_DataBelongBase +{ +} diff --git a/Tiobon.Core.Model/Models/Ghrs/Ghrs_DataBelong.cs b/Tiobon.Core.Model/Models/Ghrs/Ghrs_DataBelong.cs new file mode 100644 index 00000000..b2ee89ad --- /dev/null +++ b/Tiobon.Core.Model/Models/Ghrs/Ghrs_DataBelong.cs @@ -0,0 +1,130 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghrs_DataBelong.cs +* +*功 能: N / A +* 类 名: Ghrs_DataBelong +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2025/5/29 10:15:52 SimonHsiao 初版 +* +* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ +namespace Tiobon.Core.Model.Models; + + +/// +/// 资料归属 (Model) +/// +[SugarTable("Ghrs_DataBelong", "Ghrs_DataBelong"), Entity(TableCnName = "资料归属", TableName = "Ghrs_DataBelong")] +public class Ghrs_DataBelong : BasePoco +{ + + /// + /// DataBelongId + /// + public int? DataBelongId { get; set; } + + /// + /// DataBelongNo + /// + [Display(Name = "DataBelongNo"), Description("DataBelongNo"), MaxLength(100, ErrorMessage = "DataBelongNo 不能超过 100 个字符")] + public string DataBelongNo { get; set; } + + /// + /// DataBelongName + /// + [Display(Name = "DataBelongName"), Description("DataBelongName"), MaxLength(1000, ErrorMessage = "DataBelongName 不能超过 1000 个字符")] + public string DataBelongName { get; set; } + + /// + /// DataBelongEname + /// + [Display(Name = "DataBelongEname"), Description("DataBelongEname"), MaxLength(1000, ErrorMessage = "DataBelongEname 不能超过 1000 个字符")] + public string DataBelongEname { get; set; } + + /// + /// DataBelongTypeID + /// + public int? DataBelongTypeID { get; set; } + + /// + /// MKey + /// + [Display(Name = "MKey"), Description("MKey"), MaxLength(200, ErrorMessage = "MKey 不能超过 200 个字符")] + public string MKey { get; set; } + + /// + /// RemarkSz + /// + [Display(Name = "RemarkSz"), Description("RemarkSz"), MaxLength(2000, ErrorMessage = "RemarkSz 不能超过 2000 个字符")] + public string RemarkSz { get; set; } + + /// + /// SortNo + /// + public int? SortNo { get; set; } + + /// + /// IsDefault + /// + public int? IsDefault { get; set; } + + /// + /// Reverse1 + /// + [Display(Name = "Reverse1"), Description("Reverse1"), MaxLength(1000, ErrorMessage = "Reverse1 不能超过 1000 个字符")] + public string Reverse1 { get; set; } + + /// + /// Reverse2 + /// + [Display(Name = "Reverse2"), Description("Reverse2"), MaxLength(1000, ErrorMessage = "Reverse2 不能超过 1000 个字符")] + public string Reverse2 { get; set; } + + /// + /// Reverse3 + /// + [Display(Name = "Reverse3"), Description("Reverse3"), MaxLength(1000, ErrorMessage = "Reverse3 不能超过 1000 个字符")] + public string Reverse3 { get; set; } + + /// + /// Reverse4 + /// + [Display(Name = "Reverse4"), Description("Reverse4"), MaxLength(1000, ErrorMessage = "Reverse4 不能超过 1000 个字符")] + public string Reverse4 { get; set; } + + /// + /// Reverse5 + /// + [Display(Name = "Reverse5"), Description("Reverse5"), MaxLength(1000, ErrorMessage = "Reverse5 不能超过 1000 个字符")] + public string Reverse5 { get; set; } + + /// + /// Reverse6 + /// + [Display(Name = "Reverse6"), Description("Reverse6"), MaxLength(1000, ErrorMessage = "Reverse6 不能超过 1000 个字符")] + public string Reverse6 { get; set; } + + /// + /// Reverse7 + /// + [Display(Name = "Reverse7"), Description("Reverse7"), MaxLength(1000, ErrorMessage = "Reverse7 不能超过 1000 个字符")] + public string Reverse7 { get; set; } + + /// + /// Reverse8 + /// + [Display(Name = "Reverse8"), Description("Reverse8"), MaxLength(1000, ErrorMessage = "Reverse8 不能超过 1000 个字符")] + public string Reverse8 { get; set; } + + /// + /// Reverse9 + /// + [Display(Name = "Reverse9"), Description("Reverse9"), MaxLength(1000, ErrorMessage = "Reverse9 不能超过 1000 个字符")] + public string Reverse9 { get; set; } +} diff --git a/Tiobon.Core.Model/View/Ghrs/Ghrs_DataBelong.Dto.View.cs b/Tiobon.Core.Model/View/Ghrs/Ghrs_DataBelong.Dto.View.cs new file mode 100644 index 00000000..da1b5469 --- /dev/null +++ b/Tiobon.Core.Model/View/Ghrs/Ghrs_DataBelong.Dto.View.cs @@ -0,0 +1,34 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghrs_DataBelong.cs +* +*功 能: N / A +* 类 名: Ghrs_DataBelong +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2025/5/29 10:15:52 SimonHsiao 初版 +* +* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ + +namespace Tiobon.Core.Model.Models; + +/// +/// 资料归属(Dto.View1) +/// +public class Ghrs_DataBelongDto : Ghrs_DataBelong +{ + /// + /// 创建信息 + /// + public string CreateDataInfo { get; set; } + + /// + /// 修改信息 + /// + public string UpdateDataInfo { get; set; } +} diff --git a/Tiobon.Core.Services/Ghrs/Ghrs_DataBelongServices.cs b/Tiobon.Core.Services/Ghrs/Ghrs_DataBelongServices.cs new file mode 100644 index 00000000..f661ff3c --- /dev/null +++ b/Tiobon.Core.Services/Ghrs/Ghrs_DataBelongServices.cs @@ -0,0 +1,15 @@ +namespace Tiobon.Core.Services; + +/// +/// 资料归属 (服务) +/// +public class Ghrs_DataBelongServices : BaseServices, IGhrs_DataBelongServices +{ + private readonly IBaseRepository _dal; + public Ghrs_DataBelongServices(ICaching caching, IBaseRepository dal) + { + this._dal = dal; + base.BaseDal = dal; + base._caching = caching; + } +} \ No newline at end of file