课件的学习时长优化接口开发

master
xiaochanghai 3 months ago
parent da18ee9967
commit e9d8bdfe03
  1. 6427
      Model/Tiobon.Web.pdm
  2. 10
      Tiobon.Core.Api/Tiobon.Core.Model.xml
  3. 8
      Tiobon.Core.Model/Base/Ghre/Ghre_CourseWareAttachment.Dto.Base.cs
  4. 6
      Tiobon.Core.Model/Insert/Ghre/Ghre_CourseWare.Dto.InsertInput.cs
  5. 8
      Tiobon.Core.Model/Models/Ghre/Ghre_CourseWareAttachment.cs
  6. 6
      Tiobon.Core.Services/Ghre/Ghre_CourseWareServices.cs

File diff suppressed because it is too large Load Diff

@ -3590,6 +3590,11 @@
排序 排序
</summary> </summary>
</member> </member>
<member name="P:Tiobon.Core.Model.Models.Ghre_CourseWareAttachmentBase.LearnDuration">
<summary>
学习时长(分钟)
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghre_CreditPointBase"> <member name="T:Tiobon.Core.Model.Models.Ghre_CreditPointBase">
<summary> <summary>
学分记录 (Dto.Base) 学分记录 (Dto.Base)
@ -19541,6 +19546,11 @@
排序 排序
</summary> </summary>
</member> </member>
<member name="P:Tiobon.Core.Model.Models.Ghre_CourseWareAttachment.LearnDuration">
<summary>
学习时长(分钟)
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghre_CreditPoint"> <member name="T:Tiobon.Core.Model.Models.Ghre_CreditPoint">
<summary> <summary>
学分记录 (Model) 学分记录 (Model)

@ -6,7 +6,7 @@
* *
* Ver * Ver
* *
*V0.01 2025/1/14 15:35:05 SimonHsiao *V0.01 2025/3/31 9:27:54 SimonHsiao
* *
* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. * Copyright(c) 2025 Tiobon Corporation. All Rights Reserved.
* *
@ -141,4 +141,10 @@ public class Ghre_CourseWareAttachmentBase
/// 排序 /// 排序
/// </summary> /// </summary>
public int? SortNo { get; set; } public int? SortNo { get; set; }
/// <summary>
/// 学习时长(分钟)
/// </summary>
[Display(Name = "LearnDuration"), Description("学习时长(分钟)"), Column(TypeName = "decimal(20,2)")]
public decimal? LearnDuration { get; set; }
} }

@ -35,4 +35,10 @@ public class Ghre_CourseWareLink
public long Id { get; set; } public long Id { get; set; }
public string LinkName { get; set; } public string LinkName { get; set; }
public string LinkAddress { get; set; } public string LinkAddress { get; set; }
/// <summary>
/// 学习时长(分钟)
/// </summary>
[Display(Name = "LearnDuration"), Description("学习时长(分钟)"), Column(TypeName = "decimal(20,2)")]
public decimal? LearnDuration { get; set; }
} }

@ -6,7 +6,7 @@
* *
* Ver * Ver
* *
*V0.01 2025/1/14 15:35:05 SimonHsiao *V0.01 2025/3/31 9:27:54 SimonHsiao
* *
* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. * Copyright(c) 2025 Tiobon Corporation. All Rights Reserved.
* *
@ -142,4 +142,10 @@ public class Ghre_CourseWareAttachment : BasePoco
/// 排序 /// 排序
/// </summary> /// </summary>
public int? SortNo { get; set; } public int? SortNo { get; set; }
/// <summary>
/// 学习时长(分钟)
/// </summary>
[Display(Name = "LearnDuration"), Description("学习时长(分钟)"), Column(TypeName = "decimal(20,2)")]
public decimal? LearnDuration { get; set; }
} }

@ -47,7 +47,8 @@ public class Ghre_CourseWareServices : BaseServices<Ghre_CourseWare, Ghre_Course
CourseWareId = result, CourseWareId = result,
AttachmentName = x.LinkName, AttachmentName = x.LinkName,
RelativePath = x.LinkAddress, RelativePath = x.LinkAddress,
AttachFileExtension = "http" AttachFileExtension = "http",
LearnDuration = x.LearnDuration
}).ToList(); }).ToList();
await _ghre_CourseWareAttachmentServices.Add(attachments); await _ghre_CourseWareAttachmentServices.Add(attachments);
} }
@ -98,7 +99,8 @@ public class Ghre_CourseWareServices : BaseServices<Ghre_CourseWare, Ghre_Course
CourseWareId = Id, CourseWareId = Id,
AttachmentName = x.LinkName, AttachmentName = x.LinkName,
RelativePath = x.LinkAddress, RelativePath = x.LinkAddress,
AttachFileExtension = "http" AttachFileExtension = "http",
LearnDuration = x.LearnDuration
}).ToList(); }).ToList();
await _ghre_CourseWareAttachmentServices.Add(attachments); await _ghre_CourseWareAttachmentServices.Add(attachments);
} }

Loading…
Cancel
Save