You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

170 lines
3.7 KiB
C#

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; }
2 years ago
/// <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>
2 years ago
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
{
2 years ago
/// <summary>
/// 标题
/// </summary>
public string Title { get; set; }
/// <summary>
/// 类型
/// </summary>
public virtual string Type { get; set; }
2 years ago
}
2 years ago
/// <summary>
/// 订舱模板查询台账返回数据
/// </summary>
public class QueryBookingTemplateOutput : BookingTemplateInput
{
/// <summary>
/// ID
/// </summary>
public long Id { get; set; }
/// <summary>
/// 是否已分享2023年7月6日增加为满足和川分享给全部用户不指定具体人员的需求前端需要知道是否已分享
/// </summary>
public bool IsShared { get; set; }
}
2 years ago
2 years ago
public class BookingTemplateShareDto
{
2 years ago
/// <summary>
/// 业务id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 模板id
/// </summary>
public long TemplateId { get; set; }
/// <summary>
/// 分享用户Id2023-7-6修改-1代表所有用户用于满足和川分享给全部用户的需求
2 years ago
/// </summary>
public long ShareToId { get; set; }
/// <summary>
/// 分享用户
/// </summary>
public string ShareToName { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
}
2 years ago
public class BookingTemplateShareQuery
{
public string TemplateName { get; set; }
public string ShareToId { get; set; }
}
}