using Myshipping.Core;
using System;
using System.ComponentModel.DataAnnotations;
namespace Myshipping.Application
{
///
/// 订舱模板输入参数
///
public class BookingTemplateInput
{
///
/// 标题
///
public string Title { get; set; }
///
/// 类型
///
public virtual string Type { get; set; }
///
/// 模板内容
///
public virtual string Content { get; set; }
///
/// 备注
///
public virtual string Remark { get; set; }
}
///
/// 订舱模板新增输入参数
///
public class AddBookingTemplateInput : BookingTemplateInput
{
}
///
/// 订舱模板修改输入参数
///
public class UpdateBookingTemplateInput: BookingTemplateInput
{
///
/// 主键
///
[Required(ErrorMessage = "主键不能为空")]
public long Id { get; set; }
}
///
/// 订舱模板获取(删除)输入参数
///
public class GetBookingTemplateInput
{
///
/// 主键
///
[Required(ErrorMessage = "主键不能为空")]
public long Id { get; set; }
}
///
/// 订舱模板查询输入参数
///
public class QueryBookingTemplateInput : PageInputBase
{
///
/// 主键
///
public virtual long Id { get; set; }
///
/// 标题
///
public string Title { get; set; }
///
/// 类型
///
public virtual string Type { get; set; }
///
/// 模板内容
///
public virtual string Content { get; set; }
///
/// 备注
///
public virtual string Remark { get; set; }
}
}