using Nirvana.Common.ApiBase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace YBDevice.NApi.Application.LXBodyInfo
{
    /// <summary>
    /// 丽秀体质
    /// </summary>
   public interface ILXBodyService
    {
        /// <summary>
        /// 问答列表
        /// </summary>
        /// <param name="isrestart">是否重新计算,0-否,1-是</param>
        /// <param name="sex">性别,1-男,2-女,0-未知</param>
        /// <returns></returns>
        Task<ResultInfo> GetListAsync(int isrestart = 0, int sex = 0);
        /// <summary>
        /// 结果计算
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        Task<ResultInfo> GetResultInfoAsync(LXBodySubmitDto data);

        /// <summary>
        /// 结果计算
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        Task<ResultInfo> GetResultInfoAsync(List<LXBodySubmitDto> data);

        /// <summary>
        /// 获取已经计算的结果
        /// </summary>
        /// <returns></returns>
        Task<ResultInfo> GetInfoAsync();
    }
}
