using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace YBDevice.NApi.Application.LXBodyInfo
{
    /// <summary>
    /// 类型列表
    /// </summary>
    public class LXBodyList
    {
        /// <summary>
        /// 类型ID
        /// </summary>
        public Guid Id { get; set; }
        /// <summary>
        /// 类型名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 问题列表
        /// </summary>
        public List<LXBodyQAList> qalist { get; set; }
    }
    /// <summary>
    /// 丽秀详细问题列表
    /// </summary>
    public class LXBodyQAList
    {
        /// <summary>
        /// 问题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 主键
        /// </summary>
        public Guid Id { get; set; }
        /// <summary>
        /// 没有(根本不)的分数值
        /// </summary>
        public int NoneValue { get; set; }
        /// <summary>
        /// 很少(有一点)的分数值
        /// </summary>
        public int LittleValue { get; set; }
        /// <summary>
        /// 有时(有些)的分数值
        /// </summary>
        public int SomeValue { get; set; }
        /// <summary>
        /// 经常(相当)的分数值
        /// </summary>
        public int OftenValue { get; set; }
        /// <summary>
        /// 总是(非常)的分数值
        /// </summary>
        public int AlWaysValue { get; set; }
    }
    /// <summary>
    /// 体质计算提交信息
    /// </summary>
    public class LxBodySumitC2SDto
    {
        /// <summary>
        /// 家庭成员ID
        /// </summary>
        public int FamilyId { get; set; }
        /// <summary>
        /// 选择的结果
        /// </summary>
        public List<LXBodySubmitDto> data { get; set; }
    }
    /// <summary>
    /// 体质计算提交信息
    /// </summary>
    public class LXBodySubmitDto
    {
        /// <summary>
        /// 类型ID
        /// </summary>
        public Guid id { get; set; }
        /// <summary>
        /// 答案列表
        /// </summary>
        public List<LXBodySubmitItemDto> list { get; set; }
    }
    /// <summary>
    /// 问答项
    /// </summary>
    public class LXBodySubmitItemDto
    {
        /// <summary>
        /// 问答ID
        /// </summary>
        public Guid Id { get; set; }
        /// <summary>
        /// 分数
        /// </summary>
        public int Score { get; set; }
    }
    /// <summary>
    /// 问答最终计算结果
    /// </summary>
    public class LXBodySubmitResultData
    {
        /// <summary>
        /// 体质结果
        /// </summary>
        public string BodyType { get; set; }
        /// <summary>
        /// 倾向于结果
        /// </summary>
        public string extinfo { get; set; } = "";
        /// <summary>
        /// 结果列表
        /// </summary>
        public List<LXBodySubmitResult> list { get; set; }
    }

    /// <summary>
    /// 问答最终计算结果
    /// </summary>
    public class LXBodySubmitResult
    {
        /// <summary>
        /// 体质类型
        /// </summary>
        public string BodyType { get; set; }
        /// <summary>
        /// 判定结果,1-是,2-基本是,3-否
        /// </summary>
        public int Result { get; set; }
        /// <summary>
        /// 特征
        /// </summary>
        public string Feature { get; set; }
        /// <summary>
        /// 重点人群
        /// </summary>
        public string People { get; set; }
        /// <summary>
        /// 患病倾向
        /// </summary>
        public string Sick { get; set; }
        /// <summary>
        /// 调养方式
        /// </summary>
        public string Health { get; set; }
    }
    /// <summary>
    /// 结果计算
    /// </summary>
    public class LXBodyCalcDto
    {
        /// <summary>
        /// 类型ID
        /// </summary>
        public Guid TypeId { get; set; }
        /// <summary>
        /// 体质类型
        /// </summary>
        public string BodyType { get; set; } = "";
        /// <summary>
        /// 1-是,2-基本是,3-否
        /// </summary>
        public int Result { get; set; } = 3;
    }
}
