Quanxue.Zhanghao.Daochu/LearningOfficer.OA.Common/Dtos/Solution/SolutionDto.cs

243 lines
7.2 KiB
C#
Raw 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.ToolKit;
using LearningOfficer.OA.Common.Enums;
using LearningOfficer.OA.Common.Request;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Solution
{
public class SolutionAddDto
{
/// <summary>
/// 备 注:问题描述
/// 默认值:
///</summary>
public string ProblemTitle { get; set; } = null!;
/// <summary>
/// 备 注:适用对象 1学校2教师3学生
/// 默认值:
///</summary>
public ToolObjectType ProblemObj { get; set; }
/// <summary>
/// 备 注:问题显著现象
/// 默认值:
///</summary>
public string ProblemPhenomenon { get; set; } = null!;
/// <summary>
/// 备 注:使用班级类型。1本科班2重点班3重点本科都适用
/// 默认值:
///</summary>
public ToolClassType ToolClassType { get; set; }
/// <summary>
/// 备 注:解决方案文本描述
/// 默认值:
///</summary>
public string SolutionContent { get; set; } = null!;
/// <summary>
/// 工具包ID列表
/// </summary>
public List<long> ProblemTools { get; set; }
/// <summary>
/// 关联任务类型枚举列表
/// </summary>
public List<SysTaskTypeEnums> ProblemTaskType { get; set; }
/// <summary>
/// 关联学段枚举列表
/// </summary>
public List<SolutionSemesterEnum> ProblemSemesters { get; set; }
}
public class SolutionUpdateDto : SolutionAddDto
{
/// <summary>
/// 备 注:主键ID
/// 默认值:
///</summary>
public long Id { get; set; }
}
public class SolutionSearchMobileDto : PageRequest
{
/// <summary>
/// 备 注:问题描述
/// 默认值:
///</summary>
public string? ProblemTitle { get; set; }
/// <summary>
/// 备 注:适用对象 1学校2教师3学生
/// 默认值:
///</summary>
public ToolObjectType? ProblemObj { get; set; }
/// <summary>
/// 备 注:问题显著现象
/// 默认值:
///</summary>
public string? ProblemPhenomenon { get; set; } = null!;
/// <summary>
/// 班级id必传
/// </summary>
public long ClassesId { get; set; }
/// <summary>
/// 任务类型枚举列表
/// </summary>
public SysTaskTypeEnums? ProblemTaskType { get; set; }
}
public class SolutionListViewMobileDto
{
public long Id { get; set; }
/// <summary>
/// 备 注:问题描述
/// 默认值:
///</summary>
public string ProblemTitle { get; set; } = null!;
/// <summary>
/// 最后修改时间
/// </summary>
public DateTime UpTime { get; set; }
/// <summary>
/// 备 注:适用对象 1学校2教师3学生
/// 默认值:
///</summary>
public ToolObjectType ProblemObj { get; set; }
/// <summary>
/// 备 注:使用班级类型。1本科班2重点班3重点本科都适用
/// 默认值:
///</summary>
public ToolClassType ToolClassType { get; set; }
/// <summary>
/// 备 注:问题显著现象
/// 默认值:
///</summary>
public string ProblemPhenomenon { get; set; } = null!;
/// <summary>
/// 关联学段枚举列表
/// </summary>
public List<ProblemSemesterViewDto> ProblemSemesters { get; set; }
}
public class SolutionListViewDto
{
public long Id { get; set; }
/// <summary>
/// 备 注:问题描述
/// 默认值:
///</summary>
public string ProblemTitle { get; set; } = null!;
/// <summary>
/// 最后修改时间
/// </summary>
public DateTime UpTime { get; set; }
/// <summary>
/// 备 注:适用对象 1学校2教师3学生
/// 默认值:
///</summary>
public ToolObjectType ProblemObj { get; set; }
/// <summary>
/// 备 注:使用班级类型。1本科班2重点班3重点本科都适用
/// 默认值:
///</summary>
public ToolClassType ToolClassType { get; set; }
/// <summary>
/// 关联学段枚举列表
/// </summary>
public List<ProblemSemesterViewDto> ProblemSemesters { get; set; }
}
public class SolutionSearchDto : PageRequest
{
/// <summary>
/// 备 注:问题描述
/// 默认值:
///</summary>
public string? ProblemTitle { get; set; }
/// <summary>
/// 备 注:适用对象 1学校2教师3学生
/// 默认值:
///</summary>
public ToolObjectType? ProblemObj { get; set; }
/// <summary>
/// 备 注:使用班级类型。1本科班2重点班3重点本科都适用
/// 默认值:
///</summary>
public ToolClassType? ToolClassType { get; set; }
/// <summary>
/// 关联年级枚举列表
/// </summary>
public List<SolutionSemesterEnum>? SolutionSemesterEnums { get; set; }
///// <summary>
///// 任务类型枚举列表
///// </summary>
//public List<SysTaskTypeEnums>? ProblemTaskType { get; set; }
}
public class SolutionDetailViewDto
{
public long Id { get; set; }
/// <summary>
/// 备 注:问题描述
/// 默认值:
///</summary>
public string ProblemTitle { get; set; } = null!;
/// <summary>
/// 最后修改时间
/// </summary>
public DateTime UpTime { get; set; }
/// <summary>
/// 备 注:适用对象 1学校2教师3学生
/// 默认值:
///</summary>
public ToolObjectType ProblemObj { get; set; }
/// <summary>
/// 备 注:使用班级类型。1本科班2重点班3重点本科都适用
/// 默认值:
///</summary>
public ToolClassType ToolClassType { get; set; }
/// <summary>
/// 关联学段枚举列表
/// </summary>
public List<ProblemSemesterViewDto> ProblemSemesters { get; set; }
/// <summary>
/// 备 注:问题显著现象
/// 默认值:
///</summary>
public string ProblemPhenomenon { get; set; } = null!;
/// <summary>
/// 备 注:解决方案文本描述
/// 默认值:
///</summary>
public string SolutionContent { get; set; } = null!;
/// <summary>
/// 关联任务类型枚举列表
/// </summary>
public List<ProblemTaskTypeViewDto> ProblemTaskTypes { get; set; }
/// <summary>
/// 解决方案工具列表
/// </summary>
public List<ToolKitViewDto> ToolKits { get; set; }
}
}