diff --git a/Model/Tiobon.Web.pdm b/Model/Tiobon.Web.pdm index 5cfd8ac6..335b48a4 100644 --- a/Model/Tiobon.Web.pdm +++ b/Model/Tiobon.Web.pdm @@ -1,5 +1,5 @@ - + @@ -105110,9 +105110,9 @@ Shadow=0 1714101292 -1714109061 -((-21934,18568), (-11734,19018)) -((-21934,18793),(-11734,18793)) +1714266500 +((-21934,18603), (-11734,19053)) +((-21934,18828),(-11734,18828)) 2 1 16711680 @@ -105274,8 +105274,8 @@ LABL 0 Arial Unicode MS,8,N 1713839845 -1714109061 -((-24977,17031), (-18891,20631)) +1714266500 +((-24977,17031), (-18891,20775)) 0 16711680 16744448 @@ -106708,10 +106708,10 @@ LABL 0 Arial Unicode MS,8,N 583F0A24-D08A-4CFA-AE28-44C145E48C41 课程场景 -Ghre_Course2 +Ghre_CourseScene 1713843857 Administrator -1713843884 +1714266457 Administrator 课程场景 @@ -106851,25 +106851,25 @@ LABL 0 Arial Unicode MS,8,N 5C55CEE6-7706-42D8-B5FD-DDA86C2E7E21 -课程编号 -CourseNo +场景编号 +SceneNo 1713843857 Administrator -1713843857 +1714266484 Administrator -课程名称 +场景名称 nvarchar(32) 32 D369A78F-FAB6-420E-BE1C-6790D3178655 -课程名称 -CourseName +场景名称 +SceneName 1713843857 Administrator -1713843857 +1714266484 Administrator -课程名称 +场景名称 nvarchar(32) 32 diff --git a/Tiobon.Core.Api/Controllers/Ghre/Ghre_CourseSceneController.cs b/Tiobon.Core.Api/Controllers/Ghre/Ghre_CourseSceneController.cs new file mode 100644 index 00000000..3925d71b --- /dev/null +++ b/Tiobon.Core.Api/Controllers/Ghre/Ghre_CourseSceneController.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_CourseSceneController : BaseController +{ + public Ghre_CourseSceneController(IGhre_CourseSceneServices service) : base(service) + { + } +} \ No newline at end of file diff --git a/Tiobon.Core.Api/Tiobon.Core.Model.xml b/Tiobon.Core.Api/Tiobon.Core.Model.xml index a8446c5f..1e93a9ef 100644 --- a/Tiobon.Core.Api/Tiobon.Core.Model.xml +++ b/Tiobon.Core.Api/Tiobon.Core.Model.xml @@ -390,6 +390,96 @@ 预留字段12 + + + 课程场景 (Dto.Base) + + + + + 场景名称 + + + + + 场景名称 + + + + + 备注 + + + + + 排序 + + + + + 默认标志 + + + + + 预留字段1 + + + + + 预留字段2 + + + + + 预留字段3 + + + + + 预留字段4 + + + + + 预留字段5 + + + + + 预留字段6 + + + + + 预留字段7 + + + + + 预留字段8 + + + + + 预留字段9 + + + + + 预留字段10 + + + + + 预留字段11 + + + + + 预留字段12 + + 系统用户 (Dto.Base) @@ -579,6 +669,11 @@ 课程分类 (Dto.EditInput) + + + 课程场景 (Dto.EditInput) + + 系统用户 (Dto.EditInput) @@ -599,6 +694,11 @@ 课程分类 (Dto.InsertInput) + + + 课程场景 (Dto.InsertInput) + + 系统用户 (Dto.InsertInput) @@ -1158,6 +1258,96 @@ 预留字段12 + + + 课程场景 (Model) + + + + + 场景名称 + + + + + 场景名称 + + + + + 备注 + + + + + 排序 + + + + + 默认标志 + + + + + 预留字段1 + + + + + 预留字段2 + + + + + 预留字段3 + + + + + 预留字段4 + + + + + 预留字段5 + + + + + 预留字段6 + + + + + 预留字段7 + + + + + 预留字段8 + + + + + 预留字段9 + + + + + 预留字段10 + + + + + 预留字段11 + + + + + 预留字段12 + + 任务日志表 @@ -2161,6 +2351,11 @@ 课程分类(Dto.View) + + + 课程场景(Dto.View) + + 系统用户(Dto.View) diff --git a/Tiobon.Core.Api/Tiobon.Core.xml b/Tiobon.Core.Api/Tiobon.Core.xml index 408bf158..dd82b5b1 100644 --- a/Tiobon.Core.Api/Tiobon.Core.xml +++ b/Tiobon.Core.Api/Tiobon.Core.xml @@ -500,6 +500,11 @@ 课程分类(Controller) + + + 课程场景(Controller) + + 系统用户(Controller) diff --git a/Tiobon.Core.IServices/Ghre/IGhre_CourseSceneServices.cs b/Tiobon.Core.IServices/Ghre/IGhre_CourseSceneServices.cs new file mode 100644 index 00000000..7ec800a0 --- /dev/null +++ b/Tiobon.Core.IServices/Ghre/IGhre_CourseSceneServices.cs @@ -0,0 +1,12 @@ +using Tiobon.Core.IServices.BASE; +using Tiobon.Core.Model.Models; + +namespace Tiobon.Core.IServices +{ + /// + /// 课程场景(自定义服务接口) + /// + public interface IGhre_CourseSceneServices :IBaseServices + { + } +} \ No newline at end of file diff --git a/Tiobon.Core.Model/Base/Ghre/Ghre_CourseScene.Dto.Base.cs b/Tiobon.Core.Model/Base/Ghre/Ghre_CourseScene.Dto.Base.cs new file mode 100644 index 00000000..8178551e --- /dev/null +++ b/Tiobon.Core.Model/Base/Ghre/Ghre_CourseScene.Dto.Base.cs @@ -0,0 +1,127 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghre_CourseScene.cs +* +*功 能: N / A +* 类 名: Ghre_CourseScene +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2024/4/28 10:26:07 SimonHsiao 初版 +* +* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; + +namespace Tiobon.Core.Model.Models +{ + + /// + /// 课程场景 (Dto.Base) + /// + public class Ghre_CourseSceneBase + { + + /// + /// 场景名称 + /// + [Display(Name = "SceneNo"), Description("场景名称"), MaxLength(32, ErrorMessage = "场景名称 不能超过 32 个字符")] + public string SceneNo { get; set; } + + /// + /// 场景名称 + /// + [Display(Name = "SceneName"), Description("场景名称"), MaxLength(32, ErrorMessage = "场景名称 不能超过 32 个字符")] + public string SceneName { get; set; } + + /// + /// 备注 + /// + [Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")] + public string RemarkSz { get; set; } + + /// + /// 排序 + /// + public int? SortNo { 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_CourseScene.Dto.EditInput.cs b/Tiobon.Core.Model/Edit/Ghre/Ghre_CourseScene.Dto.EditInput.cs new file mode 100644 index 00000000..d793bf57 --- /dev/null +++ b/Tiobon.Core.Model/Edit/Ghre/Ghre_CourseScene.Dto.EditInput.cs @@ -0,0 +1,27 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghre_CourseScene.cs +* +*功 能: N / A +* 类 名: Ghre_CourseScene +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2024/4/28 10:26:07 SimonHsiao 初版 +* +* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ + +namespace Tiobon.Core.Model.Models +{ + + /// + /// 课程场景 (Dto.EditInput) + /// + public class EditGhre_CourseSceneInput : Ghre_CourseSceneBase + { + } +} diff --git a/Tiobon.Core.Model/Insert/Ghre/Ghre_CourseScene.Dto.InsertInput.cs b/Tiobon.Core.Model/Insert/Ghre/Ghre_CourseScene.Dto.InsertInput.cs new file mode 100644 index 00000000..089015a4 --- /dev/null +++ b/Tiobon.Core.Model/Insert/Ghre/Ghre_CourseScene.Dto.InsertInput.cs @@ -0,0 +1,27 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghre_CourseScene.cs +* +*功 能: N / A +* 类 名: Ghre_CourseScene +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2024/4/28 10:26:07 SimonHsiao 初版 +* +* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ + +namespace Tiobon.Core.Model.Models +{ + + /// + /// 课程场景 (Dto.InsertInput) + /// + public class InsertGhre_CourseSceneInput : Ghre_CourseSceneBase + { + } +} diff --git a/Tiobon.Core.Model/Models/Ghre/Ghre_CourseScene.cs b/Tiobon.Core.Model/Models/Ghre/Ghre_CourseScene.cs new file mode 100644 index 00000000..74483b25 --- /dev/null +++ b/Tiobon.Core.Model/Models/Ghre/Ghre_CourseScene.cs @@ -0,0 +1,129 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghre_CourseScene.cs +* +*功 能: N / A +* 类 名: Ghre_CourseScene +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2024/4/28 10:26:07 SimonHsiao 初版 +* +* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; +using SqlSugar; + +namespace Tiobon.Core.Model.Models +{ + + /// + /// 课程场景 (Model) + /// + [SugarTable("Ghre_CourseScene", "Ghre_CourseScene"), Entity(TableCnName = "课程场景", TableName = "Ghre_CourseScene")] + public class Ghre_CourseScene : BasePoco + { + + /// + /// 场景名称 + /// + [Display(Name = "SceneNo"), Description("场景名称"), MaxLength(32, ErrorMessage = "场景名称 不能超过 32 个字符")] + public string SceneNo { get; set; } + + /// + /// 场景名称 + /// + [Display(Name = "SceneName"), Description("场景名称"), MaxLength(32, ErrorMessage = "场景名称 不能超过 32 个字符")] + public string SceneName { get; set; } + + /// + /// 备注 + /// + [Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")] + public string RemarkSz { get; set; } + + /// + /// 排序 + /// + public int? SortNo { 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_CourseScene.Dto.View.cs b/Tiobon.Core.Model/View/Ghre/Ghre_CourseScene.Dto.View.cs new file mode 100644 index 00000000..223d3afc --- /dev/null +++ b/Tiobon.Core.Model/View/Ghre/Ghre_CourseScene.Dto.View.cs @@ -0,0 +1,27 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghre_CourseScene.cs +* +*功 能: N / A +* 类 名: Ghre_CourseScene +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2024/4/28 10:26:07 SimonHsiao 初版 +* +* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ + +namespace Tiobon.Core.Model.Models +{ + + /// + /// 课程场景(Dto.View) + /// + public class Ghre_CourseSceneDto : Ghre_CourseScene + { + } +} diff --git a/Tiobon.Core.Services/Ghre/Ghre_CourseSceneServices.cs b/Tiobon.Core.Services/Ghre/Ghre_CourseSceneServices.cs new file mode 100644 index 00000000..a35eb726 --- /dev/null +++ b/Tiobon.Core.Services/Ghre/Ghre_CourseSceneServices.cs @@ -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 +{ + /// + /// 课程场景 (服务) + /// + public class Ghre_CourseSceneServices : BaseServices, IGhre_CourseSceneServices + { + private readonly IBaseRepository _dal; + public Ghre_CourseSceneServices(IBaseRepository dal) + { + this._dal = dal; + base.BaseDal = dal; + } + } +} \ No newline at end of file