using Furion.DynamicApiController;
using Nirvana.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Waste.Application.PostInfo
{
///
/// 对接平台接口测试
///
public class PostInfoAppService: IDynamicApiController
{
private readonly ISuZhouService _suZhouService;
public PostInfoAppService(ISuZhouService suZhouService)
{
_suZhouService = suZhouService;
}
///
/// Hello接口GET测试
///
///
///
public async Task GetHelloAsync(string greet="hello")
{
return await _suZhouService.GetHelloAsync(greet);
}
///
/// Hello接口POST测试
///
///
///
public async Task PostHelloAsync(string greet = "hello")
{
return await _suZhouService.PostHelloAsync(greet);
}
///
/// 分页查询当前账号下存在的地产区域数据
///
///
///
///
///
public async Task GetEstatesAsync(int page = 1, int size = 10, string search = "")
{
return await _suZhouService.GetEstatesAsync(page, size, search);
}
///
/// 添加地产区域信息
///
///
///
public async Task PostEstatesAsync(EstatesC2SDto estatesC2SDto)
{
return await _suZhouService.PostEstatesAsync(estatesC2SDto);
}
///
/// 查询地产区域信息
///
///
///
public async Task GetEstatesByIdAsync(string id)
{
return await _suZhouService.GetEstatesByIdAsync(id);
}
///
/// 向服务端推送测试用垃圾采集数据
///
///
///
public async Task PostGarbagesAsync(GarbageC2SDto garbageC2SDto)
{
return await _suZhouService.PostGarbagesAsync(garbageC2SDto);
}
}
}