回调
This commit is contained in:
parent
d2773b9686
commit
f3a1abe8bf
24
YD_YiLu.Commons/Dto/DeviceSync/ErrorUserCallbackDto.cs
Normal file
24
YD_YiLu.Commons/Dto/DeviceSync/ErrorUserCallbackDto.cs
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace YD_YiLu.Commons.Dto.DeviceSync
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 信息下发失败回调请求
|
||||||
|
/// </summary>
|
||||||
|
public class ErrorUserCallbackRequestDto
|
||||||
|
{
|
||||||
|
public long SyncId { get; set; }
|
||||||
|
public int DeviceType { get; set; }
|
||||||
|
public string DeviceSerial { get; set; }
|
||||||
|
public List<ErrorUserCallbackItemDto> ErrorUsers { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 失败人员信息
|
||||||
|
/// </summary>
|
||||||
|
public class ErrorUserCallbackItemDto
|
||||||
|
{
|
||||||
|
public string UserSerial { get; set; }
|
||||||
|
public string ErrorMessage { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -28,6 +28,21 @@ namespace YD_YiLu.Api.Controllers
|
|||||||
return await _deviceSyncService.AppVerifyAsync(dto);
|
return await _deviceSyncService.AppVerifyAsync(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 信息下发失败回调
|
||||||
|
/// </summary>
|
||||||
|
[HttpPost]
|
||||||
|
[Route("/setting/callback/error_user")]
|
||||||
|
public object ErrorUserCallback([FromBody] ErrorUserCallbackRequestDto dto)
|
||||||
|
{
|
||||||
|
return new
|
||||||
|
{
|
||||||
|
code = 0,
|
||||||
|
msg = "OK",
|
||||||
|
data = 1
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 新增app版本
|
/// 新增app版本
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user