|
|
using Myshipping.Core;
|
|
|
using System;
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
namespace Myshipping.Application
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 订舱模板输入参数
|
|
|
/// </summary>
|
|
|
public class BookingTemplateInput
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 标题
|
|
|
/// </summary>
|
|
|
public string Title { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 类型
|
|
|
/// </summary>
|
|
|
public virtual string Type { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 模板内容
|
|
|
/// </summary>
|
|
|
public virtual string Content { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 备注
|
|
|
/// </summary>
|
|
|
public virtual string Remark { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 名称
|
|
|
/// </summary>
|
|
|
public string NAME { get; set; }
|
|
|
/// <summary>
|
|
|
/// 地址
|
|
|
/// </summary>
|
|
|
public string ADDR { get; set; }
|
|
|
/// <summary>
|
|
|
/// 国家code
|
|
|
/// </summary>
|
|
|
public string COUNTRY { get; set; }
|
|
|
/// <summary>
|
|
|
/// 国家
|
|
|
/// </summary>
|
|
|
public string COUNTRYName { get; set; }
|
|
|
/// <summary>
|
|
|
/// 发货人电话
|
|
|
/// </summary>
|
|
|
public string TEL { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 订舱模板新增输入参数
|
|
|
/// </summary>
|
|
|
public class AddBookingTemplateInput : BookingTemplateInput
|
|
|
{
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 订舱模板修改输入参数
|
|
|
/// </summary>
|
|
|
public class UpdateBookingTemplateInput : BookingTemplateInput
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 主键
|
|
|
/// </summary>
|
|
|
[Required(ErrorMessage = "主键不能为空")]
|
|
|
public long Id { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 订舱模板获取(删除)输入参数
|
|
|
/// </summary>
|
|
|
public class GetBookingTemplateInput
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 主键
|
|
|
/// </summary>
|
|
|
[Required(ErrorMessage = "主键不能为空")]
|
|
|
public long Id { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 订舱模板查询输入参数
|
|
|
/// </summary>
|
|
|
public class QueryBookingTemplateInput : PageInputBase
|
|
|
{
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 标题
|
|
|
/// </summary>
|
|
|
public string Title { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 类型
|
|
|
/// </summary>
|
|
|
public virtual string Type { get; set; }
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 订舱模板查询台账返回数据
|
|
|
/// </summary>
|
|
|
public class QueryBookingTemplateOutput : BookingTemplateInput
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// ID
|
|
|
/// </summary>
|
|
|
public long Id { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 是否已分享(2023年7月6日增加,为满足和川分享给全部用户,不指定具体人员的需求,前端需要知道是否已分享)
|
|
|
/// </summary>
|
|
|
public bool IsShared { get; set; }
|
|
|
}
|
|
|
|
|
|
|
|
|
public class BookingTemplateShareDto
|
|
|
{
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 业务id
|
|
|
/// </summary>
|
|
|
public long Id { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 模板id
|
|
|
/// </summary>
|
|
|
public long TemplateId { get; set; }
|
|
|
/// <summary>
|
|
|
/// 分享用户Id(2023-7-6修改:-1代表所有用户,用于满足和川分享给全部用户的需求)
|
|
|
/// </summary>
|
|
|
public long ShareToId { get; set; }
|
|
|
/// <summary>
|
|
|
/// 分享用户
|
|
|
/// </summary>
|
|
|
public string ShareToName { get; set; }
|
|
|
/// <summary>
|
|
|
/// 备注
|
|
|
/// </summary>
|
|
|
public string Remark { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
public class BookingTemplateShareQuery
|
|
|
{
|
|
|
|
|
|
public string TemplateName { get; set; }
|
|
|
public string ShareToId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|