车间设备生产数据推送
This commit is contained in:
parent
ba19e33b71
commit
f319900369
@ -74,5 +74,9 @@
|
||||
"UsePrepayDB": true,
|
||||
"UseEnergyDB": true,
|
||||
"PrintLog": false
|
||||
},
|
||||
"OneNETSecureReceiveOptions": {
|
||||
"OneNETVerifySignatureToken": "SIcPQnpMgaFDmNlIjNmzq5smshz7cKrh",
|
||||
"OneNETAesKey": "RPTEIGCA1KvDEXS1"
|
||||
}
|
||||
}
|
||||
@ -70,5 +70,9 @@
|
||||
"AutomaticDayFreezeTime": "02:30:00",
|
||||
"AutomaticMonthFreezeTime": "03:30:00",
|
||||
"DefaultProtocolPlugin": "T37612012ProtocolPlugin"
|
||||
},
|
||||
"OneNETSecureReceiveOptions": {
|
||||
"OneNETVerifySignatureToken": "SIcPQnpMgaFDmNlIjNmzq5smshz7cKrh",
|
||||
"OneNETAesKey": "RPTEIGCA1KvDEXS1"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace JiShe.IoT.CommonServices.Dto
|
||||
{
|
||||
/// <summary>
|
||||
/// 生产设备
|
||||
/// </summary>
|
||||
public class ProductionEquipmentInput
|
||||
{
|
||||
/// <summary>
|
||||
/// 用于计算签名字符的随机串
|
||||
/// </summary>
|
||||
public string Nonce { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 加密签名,用以校验推送客户端身份合法性,校验方法见实例验证
|
||||
/// </summary>
|
||||
public string Signature { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 签名有效期(毫秒)
|
||||
/// </summary>
|
||||
public long Timestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 消息内容,JSON字符串,具体的设备相关信息
|
||||
/// </summary>
|
||||
[JsonPropertyName("msg")]
|
||||
public string Message { get; set; }
|
||||
}
|
||||
}
|
||||
@ -10,7 +10,7 @@ using System.Threading.Tasks;
|
||||
namespace JiShe.IoT.CommonServices
|
||||
{
|
||||
/// <summary>
|
||||
/// 通用服务
|
||||
/// 通用服务
|
||||
/// </summary>
|
||||
public interface ICommonService
|
||||
{
|
||||
@ -26,5 +26,12 @@ namespace JiShe.IoT.CommonServices
|
||||
/// <param name="input"></param>
|
||||
/// <returns></returns>
|
||||
List<SelectResult> GetSelectResultList(SelectResultListInput input);
|
||||
|
||||
/// <summary>
|
||||
/// 接收车间生产设备信息
|
||||
/// </summary>
|
||||
/// <param name="input"></param>
|
||||
/// <returns></returns>
|
||||
Task ReceiveWorkshopProductionEquipment(ProductionEquipmentInput input);
|
||||
}
|
||||
}
|
||||
|
||||
@ -41,5 +41,17 @@ namespace JiShe.IoT.CommonServices
|
||||
|
||||
return selectResults;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 接收车间生产设备信息
|
||||
/// </summary>
|
||||
/// <param name="input"></param>
|
||||
/// <returns></returns>
|
||||
[AllowAnonymous]
|
||||
public async Task ReceiveWorkshopProductionEquipment(ProductionEquipmentInput input)
|
||||
{
|
||||
await Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -29,5 +29,18 @@ namespace JiShe.IoT.Controllers
|
||||
{
|
||||
return _commonService.GetSelectResultList(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 接收车间生产设备信息
|
||||
/// </summary>
|
||||
/// <param name="input"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("WorkshopProductionEquipment")]
|
||||
[SwaggerOperation(summary: "车间生产设备信息", Tags = new[] { "Common" })]
|
||||
public async Task ReceiveWorkshopProductionEquipment(ProductionEquipmentInput input)
|
||||
{
|
||||
|
||||
await Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user