using GDZZ.Core;
using System;
using System.ComponentModel.DataAnnotations;
namespace GDZZ.Application
{
///
/// 课程表输入参数
///
public class CourseInput : PageInputBase
{
///
/// 文件描述
///
public virtual string Info { get; set; }
///
/// 标价
///
public virtual decimal Price { get; set; }
///
/// 标签
///
public virtual string Tags { get; set; }
///
/// 缩略图
///
public virtual string Url { get; set; }
///
/// 标题
///
public virtual string Title { get; set; }
///
/// 是否免费
///
public virtual int IsFree { get; set; }
}
public class AddCourseInput : CourseInput
{
}
public class DeleteCourseInput
{
///
/// 主键Id
///
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
public class UpdateCourseInput : CourseInput
{
///
/// 主键Id
///
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
public class QueryeCourseInput : DeleteCourseInput
{
}
}