using GDZZ.Application.Enum;
using GDZZ.Core;
using Microsoft.AspNetCore.Http;
using System;
using System.ComponentModel.DataAnnotations;
namespace GDZZ.Application
{
///
/// 活动广告列表输入参数
///
public class MiniBannerInput : PageInputBase
{
///
/// 活动名字
///
public string Name { get; set; }
///
/// 跳转链接
///
public virtual string Skip { get; set; }
///
/// 活动类型
///
public BannerEnum Type { get; set; }
///
/// 广告图片
///
public virtual string Url { get; set; }
}
public class AddMiniBannerInput : MiniBannerInput
{
}
public class DeleteMiniBannerInput
{
///
/// 主键Id
///
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
public class UpdateMiniBannerInput : MiniBannerInput
{
///
/// 主键Id
///
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
public class QueryeMiniBannerInput : DeleteMiniBannerInput
{
}
}