You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
1.9 KiB
75 lines
1.9 KiB
using AutoMapper;
|
|
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Znyc.Admin.Security.Entitys;
|
|
|
|
namespace Znyc.Admin.Security.Dtos
|
|
{
|
|
/// <summary>
|
|
/// 输入对象模型
|
|
/// </summary>
|
|
[AutoMap(typeof(Vehicle))]
|
|
[Serializable]
|
|
public class VehicleInPutDto
|
|
{
|
|
public long CompanyId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 车辆编号
|
|
/// </summary>
|
|
public string VehicleCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 车牌号
|
|
/// </summary>
|
|
[Required(ErrorMessage = "车牌号不能为空!")]
|
|
[MaxLength(8, ErrorMessage = "车牌号不得超过8个字")]
|
|
public string VehiclePlate { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物联卡类型
|
|
/// </summary>
|
|
public int CardType { get; set; }
|
|
|
|
/// <summary>
|
|
/// SIM卡号
|
|
/// </summary>
|
|
[Required(ErrorMessage = "SimNo不能为空!")]
|
|
[MaxLength(25, ErrorMessage = "SimNo不得超过25个字")]
|
|
public string SimNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 设备类型
|
|
/// </summary>
|
|
public long TerminalType { get; set; }
|
|
|
|
/// <summary>
|
|
/// GPS协议号
|
|
/// </summary>
|
|
public string AgreementNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// IEML号
|
|
/// </summary>
|
|
[Required(ErrorMessage = "IMEI号不能为空!")]
|
|
[MaxLength(25, ErrorMessage = "IMEI号不得超过25个字")]
|
|
public string ImeiNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 开通时间
|
|
/// </summary>
|
|
public DateTime OpenTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 到期时间
|
|
/// </summary>
|
|
public DateTime ExpireTime { get; set; }
|
|
|
|
#region v1.2.2
|
|
/// <summary>
|
|
/// 排序
|
|
/// </summary>
|
|
public int Sort { get; set; }
|
|
#endregion
|
|
}
|
|
}
|