using Furion.RemoteRequest;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YB.DeviceStand.Domain;

namespace YB.DeviceStand.Application
{
    /// <summary>
    /// 接口代理处理
    /// </summary>
    public interface IHttp : IHttpDispatchProxy
    {
        /// <summary>
        /// 合泰八电极算法
        /// </summary>
        /// <param name="bodydata">测量数据</param>
        /// <param name="AccessKey">密钥</param>
        /// <param name="Timestamp">时间戳</param>
        /// <param name="Sign">签名</param>
        /// <param name="action">异常处理</param>
        /// <returns></returns>
        [Post("/bia/body120"), Client("hetai"), Timeout(10)]
        Task<HttpResponseMessage> PostBodyAsync([Body("application/json")] HetaiBodyRequestS2SDto bodydata, [Headers] string AccessKey = default, [Headers] int Timestamp = default, [Headers] string Sign = default, [Interceptor(InterceptorTypes.Exception)] Action<HttpResponseMessage, string> action = default);
    }
}
