YD_YiLu.Api/YD_YiLu.Commons/Dto/DeviceSync/DeviceSyncMyRecordDto.cs

75 lines
2.4 KiB
C#
Raw Permalink Normal View History

2026-03-27 10:53:02 +08:00
using System.Collections.Generic;
namespace YD_YiLu.Commons.Dto.DeviceSync
{
/// <summary>
/// 查询我的运动请求
/// </summary>
public class DeviceSyncMyRecordRequestDto
{
public int DeviceType { get; set; }
public string DeviceSerial { get; set; }
public string UserSerial { get; set; }
public int DateType { get; set; }
public string QueryStartTime { get; set; }
public string QueryEndTime { get; set; }
2026-07-01 15:21:39 +08:00
public List<int> CourseIdList { get; set; } = new List<int>();
2026-03-27 10:53:02 +08:00
public int? CourseType { get; set; }
}
/// <summary>
/// 查询我的运动响应
/// </summary>
public class DeviceSyncMyRecordResponseDto
{
public UserSyncDto UserSync { get; set; }
public int TrainCourseSum { get; set; }
public int TrainDays { get; set; }
public string TrainHours { get; set; }
public int TrainCounts { get; set; }
public List<GradeListItem> GradeList { get; set; } = new List<GradeListItem>();
public List<GraphTrainListItem> GraphTrainList { get; set; } = new List<GraphTrainListItem>();
}
public class UserSyncDto
{
public int UserId { get; set; }
public int UserType { get; set; }
public string Nickname { get; set; }
public int OrganizationId { get; set; }
public string OrganizationName { get; set; }
public string FacePictureUrl { get; set; }
public string Identity { get; set; }
public string Gender { get; set; }
public string Birthday { get; set; }
public string UserSerial { get; set; }
public string Height { get; set; }
public string Weight { get; set; }
}
public class GradeListItem
{
2026-07-01 15:21:39 +08:00
public int CourseId { get; set; }
public string CourseName { get; set; }
public string BestGrade { get; set; }
public string AvgGrade { get; set; }
2026-03-27 10:53:02 +08:00
}
public class GraphTrainListItem
{
public int CourseId { get; set; }
public string CourseName { get; set; }
2026-07-01 15:21:39 +08:00
public int Time { get; set; }
2026-03-27 10:53:02 +08:00
public int Count { get; set; }
}
public class CourseBestListItem
{
public int CourseId { get; set; }
public string CourseName { get; set; }
public string BestGrade { get; set; }
public string AvgGrade { get; set; }
public string WorstGrade { get; set; }
}
}