using System; using System.Collections.Generic; using System.Linq; using LearningOfficer.OA.Common.Enums; using LearningOfficer.OA.Core.Entities.OA.SystemInfo; using SqlSugar; namespace LearningOfficer.OA.Core.Entities.OA.Solution { /// /// 工具包 /// [SugarTable("tool_kit")] public class ToolKit : BaseEntity { /// /// 备 注:工具名称 /// 默认值: /// [SugarColumn(ColumnName = "tool_name")] public string ToolName { get; set; } = null!; /// /// 备 注:最后更新时间 /// 默认值: /// [SugarColumn(ColumnName = "up_time")] public DateTime UpTime { get; set; } = DateTime.Now; /// /// 备 注:添加时间 /// 默认值: /// [SugarColumn(ColumnName = "add_time", IsOnlyIgnoreUpdate = true)] public DateTime AddTime { get; set; } = DateTime.Now; /// /// 备 注:工具格式 文件后缀名 /// 默认值: /// [SugarColumn(ColumnName = "tool_type")] public string ToolType { get; set; } = null!; /// /// 备 注:大小 kb /// 默认值: /// [SugarColumn(ColumnName = "tool_size")] public int ToolSize { get; set; } /// /// 备 注:文件id,关联sys_file_info表 /// 默认值: /// [SugarColumn(ColumnName = "file_id")] public long SysFileId { get; set; } /// /// 备 注:适用对象 1:学校;2:教师;3:学生 /// 默认值: /// [SugarColumn(ColumnName = "problem_obj")] public ToolObjectType ProblemObj { get; set; } /// /// 备 注:使用班级类型。1本科班,2重点班,3重点本科都适用 /// 默认值: /// [SugarColumn(ColumnName = "tool_class_type")] public ToolClassType ToolClassType { get; set; } /// /// 备 注:云校id /// 默认值: /// [SugarColumn(ColumnName = "cloudschool_id")] public long CloudSchoolId { get; set; } /// /// 备 注:逻辑删除 /// 默认值: /// [SugarColumn(ColumnName = "is_delete")] public bool IsDelete { get; set; } /// /// 备 注:工具包的学期列表 /// [Navigate(NavigateType.OneToMany, nameof(ToolKitSemester.ToolKitId))] public List ToolKitSemesters { get; set; } /// /// 备 注:工具包文件详细信息 /// [Navigate(NavigateType.OneToOne, nameof(SysFileId))] public SysFileinfo Fileinfo { get; set; } } }