using System.Collections.Generic;
namespace YD_YiLu.Commons.Dto.DeviceSync
{
///
/// 人员信息拉取请求(活力课间屏,不分页)
///
public class DeviceSyncUserRequestDto
{
public string DeviceSerial { get; set; }
public int DeviceType { get; set; }
public int UserType { get; set; } = 2;
}
///
/// 人员分页下发请求
///
public class DeviceSyncUserPageRequestDto
{
///
/// 设备序列号
///
public string DeviceSerial { get; set; }
///
/// 设备类型 11壹动站 19壹体屏/课间屏
///
public int DeviceType { get; set; }
///
/// 人员类型 1教师 2学生 3家长
///
public int UserType { get; set; } = 2;
///
/// 分页页码
///
public int PageIndex { get; set; } = 1;
///
/// 分页大小;<=0 表示全量拉取(与 /device/sync/user 合并逻辑时使用)
///
public int PageSize { get; set; } = 10;
///
/// 为 true 时忽略分页,拉取全部人员(活力课间屏等)
///
public bool FullSync { get; set; }
}
///
/// 人员分页下发响应
///
public class DeviceSyncUserPageResponseDto
{
public long SyncId { get; set; }
public int Current { get; set; }
public int Pages { get; set; }
public int Total { get; set; }
public List UserList { get; set; } = new List();
}
///
/// 人员信息
///
public class DeviceSyncUserDto
{
public int UserId { get; set; }
public int UserType { get; set; }
public string Username { get; set; }
public string Nickname { get; set; }
public int OrganizationId { get; set; }
public string OrganizationName { get; set; }
public string GradeName { 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 List TrainLimitValues { get; set; } = new List();
}
public class TrainLimitValueDto
{
public int CourseId { get; set; }
public string BestResult { get; set; }
public string LastResult { get; set; }
}
}