using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VOL.Model
{
///
/// 热门课程列表
///
public class PopularCurricularDto
{
public int Id { get; set; }
///
/// 课程Id
///
public int CurricularId { get; set; }
///
/// 课程分类名称
///
public string CurricularTaxonomyName { get; set; }
///
/// 课程名称
///
public string CurricularName { get; set; }
///
/// 封面图
///
public string CoverImage { get; set; }
///
/// 点击数
///
public int? Hits { get; set; }
///
/// 创建时间
///
public DateTime? CreateDate { get; set; }
///
/// 备注
///
public string Remarks { get; set; }
}
///
/// 热门课程查询参数
///
public class PopularCurricularVo : PageDto
{
///
/// 展示模式:手动/自动
///
public string DisplayMode { get; set; }
///
/// 展示规则:最新上传/流量最大
///
public string DisplayRule { get; set; }
///
/// 展示数量
///
[Range(2, int.MaxValue, ErrorMessage = "最少展示2节课程")]
public int? DisplayCount { get; set; }
}
///
/// 添加热门课程请求
///
public class AddPopularCurricularDto
{
///
/// 课程ID列表
///
[Required(ErrorMessage = "课程ID不能为空")]
public List CurricularIds { get; set; }
}
}