36 lines
947 B
C#
36 lines
947 B
C#
|
|
using Furion.DynamicApiController;
|
|||
|
|
using Microsoft.AspNetCore.Mvc;
|
|||
|
|
using Nirvana.Common;
|
|||
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace Waste.Application.ThirdApiInfo
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 开放数据
|
|||
|
|
/// </summary>
|
|||
|
|
[ApiDescriptionSettings("DevApi")]
|
|||
|
|
public class OpenAppService : IDynamicApiController
|
|||
|
|
{
|
|||
|
|
private readonly IOpenService _openService;
|
|||
|
|
public OpenAppService(IOpenService openService)
|
|||
|
|
{
|
|||
|
|
_openService = openService;
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// 获取设备上报相关信息
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="data"></param>
|
|||
|
|
/// <returns></returns>
|
|||
|
|
[HttpPost]
|
|||
|
|
[NonUnify]
|
|||
|
|
public async Task<ResultInfo> GetDevInfoAsync(GetDevInfoRequestDto data)
|
|||
|
|
{
|
|||
|
|
return await _openService.GetDevInfoAsync(data);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|