diff --git a/Tiobon.Core.Api/Tiobon.Core.Model.xml b/Tiobon.Core.Api/Tiobon.Core.Model.xml
index 04ec5aef..72c74f0d 100644
--- a/Tiobon.Core.Api/Tiobon.Core.Model.xml
+++ b/Tiobon.Core.Api/Tiobon.Core.Model.xml
@@ -635,6 +635,11 @@
封面图片URL
+
+
+ 封面图片背景
+
+
试卷风格
@@ -2373,6 +2378,11 @@
封面图片URL
+
+
+ 封面图片背景
+
+
试卷风格
diff --git a/Tiobon.Core.Api/Tiobon.Core.xml b/Tiobon.Core.Api/Tiobon.Core.xml
index 65010133..76d9be3c 100644
--- a/Tiobon.Core.Api/Tiobon.Core.xml
+++ b/Tiobon.Core.Api/Tiobon.Core.xml
@@ -265,6 +265,13 @@
+
+
+ 下载导入模板Excel
+
+
+
+
构造函数
@@ -539,107 +546,7 @@
- 课程分类(Controller)
-
-
-
-
- 根据条件查询数据
-
- 条件
-
-
-
-
- 根据Id查询数据
-
- 主键ID
-
-
-
-
- 新增数据
-
-
-
-
-
-
- 批量新增数据
-
-
-
-
-
- 更新数据
-
- 主键ID
-
-
-
-
-
- 批量更新数据
-
-
-
-
-
- 删除数据
-
- 主键ID
-
-
-
-
- 批量删除数据
-
- 主键IDs
-
-
-
-
- 服务层分页响应实体(泛型)
-
-
-
-
- 状态码
-
-
-
-
- 操作是否成功
-
-
-
-
- 返回信息
-
-
-
-
- 当前页标
-
-
-
-
- 总页数
-
-
-
-
- 数据总数
-
-
-
-
- 每页大小
-
-
-
-
- 返回数据
+ Ghre_CourseClass(Controller)
diff --git a/Tiobon.Core.Model/Base/Ghre/Ghre_ExamPaper.Dto.Base.cs b/Tiobon.Core.Model/Base/Ghre/Ghre_ExamPaper.Dto.Base.cs
index 4e02dbbb..f52e67e6 100644
--- a/Tiobon.Core.Model/Base/Ghre/Ghre_ExamPaper.Dto.Base.cs
+++ b/Tiobon.Core.Model/Base/Ghre/Ghre_ExamPaper.Dto.Base.cs
@@ -88,6 +88,12 @@ namespace Tiobon.Core.Model.Models
[Display(Name = "CoverUrl"), Description("封面图片URL"), MaxLength(64, ErrorMessage = "封面图片URL 不能超过 64 个字符")]
public string CoverUrl { get; set; }
+ ///
+ /// 封面图片背景
+ ///
+ [Display(Name = "CoverBackGround"), Description("封面图片背景"), MaxLength(64, ErrorMessage = "封面图片背景 不能超过 64 个字符")]
+ public string CoverBackGround { get; set; }
+
///
/// 试卷风格
///
diff --git a/Tiobon.Core.Model/Models/Ghre/Ghre_ExamPaper.cs b/Tiobon.Core.Model/Models/Ghre/Ghre_ExamPaper.cs
index 551cb24b..cddd4abf 100644
--- a/Tiobon.Core.Model/Models/Ghre/Ghre_ExamPaper.cs
+++ b/Tiobon.Core.Model/Models/Ghre/Ghre_ExamPaper.cs
@@ -91,6 +91,12 @@ namespace Tiobon.Core.Model.Models
[Display(Name = "CoverUrl"), Description("封面图片URL"), MaxLength(64, ErrorMessage = "封面图片URL 不能超过 64 个字符")]
public string CoverUrl { get; set; }
+ ///
+ /// 封面图片背景
+ ///
+ [Display(Name = "CoverBackGround"), Description("封面图片背景"), MaxLength(64, ErrorMessage = "封面图片背景 不能超过 64 个字符")]
+ public string CoverBackGround { get; set; }
+
///
/// 试卷风格
///
diff --git a/Tiobon.Core.Model/ViewModels/Extend/DefaultGhre_ExamPaperInput.cs b/Tiobon.Core.Model/ViewModels/Extend/DefaultGhre_ExamPaperInput.cs
index 8c738e9b..d091de02 100644
--- a/Tiobon.Core.Model/ViewModels/Extend/DefaultGhre_ExamPaperInput.cs
+++ b/Tiobon.Core.Model/ViewModels/Extend/DefaultGhre_ExamPaperInput.cs
@@ -54,6 +54,7 @@ public class DefaultGhre_ExamPaperStyleInfo
{
public string coverImage { get; set; }
public string paperStyle { get; set; }
+ public string coverBackGround { get; set; } = "rgba(0, 0, 0, 0.4)";
}
public class DefaultGhre_ExamPaperPreview
{
diff --git a/Tiobon.Core.Services/Ghre/Ghre_ExamPaperServices.cs b/Tiobon.Core.Services/Ghre/Ghre_ExamPaperServices.cs
index 5c3b6b2c..bad3b70c 100644
--- a/Tiobon.Core.Services/Ghre/Ghre_ExamPaperServices.cs
+++ b/Tiobon.Core.Services/Ghre/Ghre_ExamPaperServices.cs
@@ -447,6 +447,8 @@ namespace Tiobon.Core.Services
input.pageData.styleInfo.coverImage = exampaper.CoverUrl;
input.pageData.styleInfo.paperStyle = exampaper.Style;
+ input.pageData.styleInfo.coverBackGround = exampaper.CoverBackGround;
+
input.pageData.examPaperSetType = exampaper.SetMethod;
input.pageData.examPaperSetData = await _ghre_ExamPaperConfigServices.Query(x => x.ExamPaperId == Id, "TaxisNo ASC");
@@ -591,6 +593,7 @@ namespace Tiobon.Core.Services
insert.PaperNo = await GenerateContinuousSequence("Ghre_ExamPaper", "PaperNo", "P");
insert.LinkId = insertModel.baseData.LinkType == "CourseId" ? insertModel.baseData.CourseId : insertModel.baseData.CourseSceneId;
insert.CoverUrl = insertModel.styleInfo.coverImage;
+ insert.CoverBackGround = insertModel.styleInfo.coverBackGround;
insert.Style = insertModel.styleInfo.paperStyle;
insert.SetMethod = insertModel.examPaperSetType;
insert.Status = "Draft";
@@ -645,6 +648,7 @@ delete from Ghre_ExamPaperQuestion WHERE ExamPaperId='{id}';");
insert.PaperNo = await GenerateContinuousSequence("Ghre_ExamPaper", "PaperNo", "P");
insert.LinkId = insertModel.baseData.LinkType == "CourseId" ? insertModel.baseData.CourseId : insertModel.baseData.CourseSceneId;
insert.CoverUrl = insertModel.styleInfo.coverImage;
+ insert.CoverBackGround = insertModel.styleInfo.coverBackGround;
insert.Style = insertModel.styleInfo.paperStyle;
insert.SetMethod = insertModel.examPaperSetType;
insert.Status = "Draft";
diff --git a/Tiobon.Core/Tiobon.Core.Model.xml b/Tiobon.Core/Tiobon.Core.Model.xml
index 04ec5aef..72c74f0d 100644
--- a/Tiobon.Core/Tiobon.Core.Model.xml
+++ b/Tiobon.Core/Tiobon.Core.Model.xml
@@ -635,6 +635,11 @@
封面图片URL
+
+
+ 封面图片背景
+
+
试卷风格
@@ -2373,6 +2378,11 @@
封面图片URL
+
+
+ 封面图片背景
+
+
试卷风格