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.

74 lines
2.5 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using OfficeOpenXml.FormulaParsing.Excel.Functions.Math;
using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Host.Req
{
/// <summary>
/// 2.1.1.1 换电站进行车辆认证
/// </summary>
public class VehicleCertification : ICmd
{
/// <summary>
/// 认证方式
/// 1 车牌号 2 rfid 卡号
/// <see cref="Entity.Constant.CloudEnum.AuthenticationMethod"/>
/// </summary>
public int ty { get; set; }
/// <summary>
/// 车牌号
/// 一般车牌规则,当 ty 为 1 时,该字段必须填
/// </summary>
public string cn { get; set; }
/// <summary>
/// rfid卡号
/// 当 ty 为 2 时,该字段必须填
/// </summary>
public string rfid { get; set; }
/// <summary>
/// 车辆识别号
/// 当 ty 为 2 时,该字段必须填,如果字段为空时,需要进行 MAC 地址验证,MAC地址和 vin 不能同时为空。
/// </summary>
public string vi { get; set; }
/// <summary>
/// MAC地址
/// 当 ty 为 2 时,该字段必须填,如果该字段为空时,需要进行 VIN 验证MAC地址和 vin 不能同时为空。
/// </summary>
public string mac { get; set; }
/// <summary>
/// 所有车队
/// 当 ty 为 2 时,该字段必须填
/// </summary>
public string mc { get; set; }
/// <summary>
/// 车辆所在换电通 道
/// 从 1 开始递增 0表示默认单仓单通道
/// </summary>
public int en { get; set; }
/// <summary>
/// 车辆进入的时间
/// 格式 “yyyy-mm-dd hh:mm:ss”
/// </summary>
public DateTime? dt { get; set; }
/// <summary>
/// 车牌图片
/// 可选项,换电站需将图片进行 base64编码后才能传输后台收到字段进行base64 解码后才能查看
/// </summary>
public String pic { get; set; }
/// <summary>
/// 站内外鉴权方式
/// 0.站内鉴权(默认) 1.站外
/// <see cref="Entity.Constant.CloudEnum.AuthMethod"/>
/// </summary>
public int mode { get; set; }
public string GetCmd()
{
return CloudConst.carAuth;
}
}
}