MES登录接口设置

This commit is contained in:
liming 蔡
2026-07-15 15:21:17 +08:00
parent 0218c38cd5
commit bbfb08a24a
13 changed files with 362 additions and 31 deletions
+2
View File
@@ -73,9 +73,11 @@
<Compile Include="MES\ProductResultParameters.cs" />
<Compile Include="MES\ReqArrivalStation.cs" />
<Compile Include="MES\ReqExitStation.cs" />
<Compile Include="MES\ReqLoginMes.cs" />
<Compile Include="MES\RespArrivalStation.cs" />
<Compile Include="MES\RespBase.cs" />
<Compile Include="MES\RespExitStation.cs" />
<Compile Include="MES\RespLoginMes.cs" />
<Compile Include="MES\RespProductResult.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
+44
View File
@@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JY.MES.MES
{
/// <summary>
/// 登录MES
/// </summary>
public class ReqLoginMes
{
/// <summary>
/// 工厂代码
/// </summary>
public string SiteCode { get; set; }
/// <summary>
/// 产线编号
/// </summary>
public string LineCode { get; set; }
/// <summary>
/// 设备编号
/// </summary>
public string EquipNum { get; set; }
/// <summary>
/// 员工账号 账号登录时,账号,密码必填
/// </summary>
public string UserName { get; set; }
/// <summary>
/// 员工密码
/// </summary>
public string PassWord { get; set; }
/// <summary>
/// 员工卡号 刷卡时,卡号必填
/// </summary>
public string UserCardID { get; set; }
}
}
+57
View File
@@ -0,0 +1,57 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JY.MES.MES
{
/// <summary>
/// MES登录响应
/// </summary>
public class RespLoginMes
{
/// <summary>
/// 错误代码,成功不返回
/// </summary>
public string ErrorCode { get; set; }
/// <summary>
/// 成功标识 (false失败 true 成功)
/// </summary>
public bool Success { get; set; }
/// <summary>
/// 数据处理消息,成功不返回
/// </summary>
public string Message { get; set; }
/// <summary>
/// 报错消息类型
/// </summary>
public string Category { get; set; }
/// <summary>
/// 员工账号&权限等级
/// </summary>
public MesUserInfo[] Rows { get; set; }
/// <summary>
/// 条数,统一返回1
/// </summary>
public int Total { get; set; }
}
public class MesUserInfo
{
/// <summary>
/// 员工账号
/// </summary>
public string Username { get; set; }
/// <summary>
/// 权限等级
/// </summary>
public string PermissionLevel { get; set; }
}
}