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

namespace YBDevice.NApi
{
    /// <summary>
    /// 家庭成员管理
    /// </summary>
    public interface IFamilyService
    {
        /// <summary>
        /// 家庭成员列表
        /// </summary>
        /// <returns></returns>
        Task<ResultInfo> GetListAsync();

        /// <summary>
        /// 加载默认头像
        /// </summary>
        /// <param name="sex">性别,1-男,2-女</param>
        /// <param name="type">类型,1-成人,2-儿童</param>
        /// <returns></returns>
        string HeadImg(int sex, int type);

        /// <summary>
        /// 家庭成员信息修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<ResultInfo> SubmitAsync(FamilySubmitModel model);

        /// <summary>
        /// 家庭成员删除
        /// </summary>
        /// <param name="id">家庭成员ID</param>
        /// <returns></returns>
        Task<ResultInfo> DeleteAsync(int id);

        /// <summary>
        /// 家庭成员详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<ResultInfo> DetailAsync(int id);

        /// <summary>
        /// 设置目标体重
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<ResultInfo> SetTargetAsync(YB_FamilyTarget model);
    }
}
