Quanxue.Zhanghao.Daochu/LearningOfficer.OA.Common/Dtos/ToolKit/ToolKitDto.cs

125 lines
3.3 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using LearningOfficer.OA.Common.Dtos.Solution;
using LearningOfficer.OA.Common.Dtos.SysFile;
using LearningOfficer.OA.Common.Enums;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.ToolKit
{
public class ToolKitAddDto
{
/// <summary>
/// 解决方案学期阶段枚举集合
/// </summary>
public List<SolutionSemesterEnum> SolutionSemesters { get; set; }
/// <summary>
/// 备 注:工具名称
/// 默认值:
///</summary>
public string ToolName { get; set; } = null!;
/// <summary>
/// 备 注:工具格式 文件后缀名
/// 默认值:
///</summary>
public string ToolType { get; set; } = null!;
/// <summary>
/// 备 注:文件上传后的id
/// 默认值:
///</summary>
public long SysFileId { get; set; }
/// <summary>
/// 备 注:大小 kb
/// 默认值:
///</summary>
public int ToolSize { get; set; }
/// <summary>
/// 备 注:适用对象 1学校2教师3学生
/// 默认值:
///</summary>
public ToolObjectType ProblemObj { get; set; }
/// <summary>
/// 备 注:使用班级类型。1本科班2重点班3重点本科都适用
/// 默认值:
///</summary>
public ToolClassType ToolClassType { get; set; }
}
public class ToolKitUpdateDto : ToolKitAddDto
{
/// <summary>
/// 备 注:工具Id
/// 默认值:
///</summary>
public long Id { get; set; }
}
public class ToolKitViewDto
{
public long Id { get; set; }
/// <summary>
/// 备 注:工具名称
/// 默认值:
///</summary>
public string ToolName { get; set; } = null!;
/// <summary>
/// 备 注:工具格式 文件后缀名
/// 默认值:
///</summary>
public string ToolType { get; set; } = null!;
/// <summary>
/// 备 注:大小 kb
/// 默认值:
///</summary>
public int ToolSize { get; set; }
/// <summary>
/// 备 注:适用对象 1学校2教师3学生
/// 默认值:
///</summary>
public ToolObjectType ProblemObj { get; set; }
/// <summary>
/// 备 注:最后更新时间
/// 默认值:
///</summary>
public DateTime UpTime { get; set; }
/// <summary>
/// 文件信息
/// </summary>
public SysFileViewDto Fileinfo { get; set; }
/// <summary>
/// 备 注:添加时间
/// 默认值:
///</summary>
public DateTime AddTime { get; set; }
/// <summary>
/// 备 注:使用班级类型。1本科班2重点班3重点本科都适用
/// 默认值:
///</summary>
public ToolClassType ToolClassType { get; set; }
public List<ToolKitSemesterViewDto> ToolKitSemesters { get; set; }
/// <summary>
/// 关联解决方案列表
/// </summary>
public List<SolutionListViewDto> SolutionLists { get; set; } = new();
}
}