using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YB.DeviceStand.Domain.Shared;
namespace YB.DeviceStand.Domain
{
///
/// 基础数据
///
public class BodyBaseS2SDto
{
///
/// 体重
///
public decimal weight { get; set; }
///
/// 身高
///
public decimal height { get; set; }
///
/// 年龄
///
public int age { get; set; }
///
/// 性别
///
public UserSex sex { get; set; }
}
///
/// 2/4电极体脂计算请求参数
///
public class BodyFat4CalcS2SDto : BodyBaseS2SDto
{
///
/// 阻抗
///
public decimal adc { get; set; }
}
///
/// 2/4电极体脂计算结果
///
public class BodyFat4CalcResultS2SDto : MeasureStand
{
}
///
/// 八电极请求参数
///
public class BodyFat8CalcS2SDto : BodyBaseS2SDto
{
///
/// 左手阻抗
///
public decimal lefthand { get; set; }
///
/// 右手阻抗
///
public decimal righthand { get; set; }
///
/// 左脚阻抗
///
public decimal leftfoot { get; set; }
///
/// 右脚阻抗
///
public decimal rightfoot { get; set; }
///
/// 全身阻抗
///
public decimal body { get; set; }
}
///
/// 8电极体脂计算结果
///
public class BodyFat8CalcResultS2SDto : UserMeasureDto
{
}
///
/// 测量项等级
///
public class MeasureLevel : UserMeasureModel
{
///
/// 脂肪率标准
///
public string fat_rLevel { get; set; } = "";
///
/// 肌肉率标准
///
public string muscleLevel { get; set; } = "";
///
/// 水份标准
///
public string waterLevel { get; set; } = "";
///
/// 骨量标准
///
public string boneLevel { get; set; } = "";
///
/// 基础代谢标准
///
public string kcalLevel { get; set; } = "";
///
/// 脂肪重量标准
///
public string fat_wLevel { get; set; } = "";
///
/// 内脂等级
///
public string visceralLevel { get; set; } = "";
///
/// 蛋白率标准
///
public string proteinLevel { get; set; } = "";
///
/// 体龄标准
///
public string bodyageLevel { get; set; } = "";
///
/// bmi标准
///
public string bmiLevel { get; set; } = "";
///
/// 肌肉量标准,和肌肉率一致
///
public string musulevalLevel { get; set; } = "";
///
/// 蛋白量标准,和蛋白率一致
///
public string proteinvalLevel { get; set; } = "";
///
/// 皮下脂肪标准
///
public string sfrLevel { get; set; } = "";
///
/// 体型标准
///
public string bodylevel { get; set; } = "";
///
/// 肥胖等级标准
///
public string fatLevel { get; set; } = "";
///
/// 骨骼肌量标准
///
public string skeletalmuscleLevel { get; set; } = "";
}
///
/// 用户测量信息
///
public class UserMeasureModel : BodyBaseS2SDto
{
///
/// 脂肪率
///
public decimal fat_r { get; set; } = 0;
///
/// 肌肉率
///
public decimal muscle { get; set; } = 0;
///
/// 水份
///
public decimal water { get; set; } = 0;
///
/// 骨重
///
public decimal bone { get; set; } = 0;
///
/// 基础代谢
///
public decimal kcal { get; set; } = 0;
///
/// 脂肪重量
///
public decimal fat_w { get; set; } = 0;
///
/// 内脂
///
public decimal visceral { get; set; } = 0;
///
/// 蛋白质
///
public decimal protein { get; set; } = 0;
///
/// 体龄
///
public int bodyage { get; set; } = 0;
///
/// BMI
///
public decimal bmi { get; set; } = 0;
///
/// 分数
///
public decimal cmi { get; set; } = 0;
///
/// 皮下脂肪率,%
///
public decimal sfr { get; set; } = 0;
///
/// 皮下脂肪量,KG
///
public decimal sfrval { get; set; } = 0;
///
/// 骨骼肌量,kg
///
public decimal skeletalmuscle { get; set; } = 0;
///
/// 肌肉量
///
public decimal muscleval { get; set; } = 0;
///
/// 蛋白量
///
public decimal proteinval { get; set; } = 0;
///
/// 去脂体重
///
public decimal lbm { get; set; } = 0;
///
/// 体型,参考体型枚举
///
public string body { get; set; } = "";
///
/// 肥胖等级,参考等级枚举
///
public string fatlevlval { get; set; } = "";
}
///
/// 测量项标准
///
public class MeasureStand : MeasureLevel
{
///
/// 标准体重
///
public string standardWeight { get; set; } = "";
///
/// 脂肪率标准范围
///
public string standardfat_r { get; set; } = "";
///
/// 肌肉率标准范围
///
public string standardmuscle { get; set; } = "";
///
/// 水份标准范围
///
public string standardwater { get; set; } = "";
///
/// 骨重标准范围
///
public string standardbone { get; set; } = "";
///
/// 基础代谢标准范围
///
public string standardkcal { get; set; } = "";
///
/// 脂肪重量标准范围
///
public string standardfat_w { get; set; } = "";
///
/// 内脂标准范围
///
public string standardviscera { get; set; } = "";
///
/// 蛋白质标准范围
///
public string standardprotein { get; set; } = "";
///
/// 体龄
///
public string standardbodyage { get; set; } = "";
///
/// bmi标准范围
///
public string standardbmi { get; set; } = "";
///
/// 皮下脂肪标准范围
///
public string standardsfr { get; set; } = "";
///
/// 体型标准范围
///
public string standardbody { get; set; } = "";
///
/// 肌肉量标准范围
///
public string standardmuscleval { get; set; } = "";
///
/// 蛋白量标准范围
///
public string standardproteinval { get; set; } = "";
///
/// 去脂体重标准范围
///
public string standardlbm { get; set; } = "";
///
/// 肥胖范围
///
public string standardfatlevel { get; set; } = "";
}
///
/// 八电极算法接口返回数据
///
public class BodyReponseInfo
{
///
/// 状态,1000测量成功,其他均是失败
///
public int code { get; set; }
///
/// 状态
///
public string status { get; set; }
///
/// 信息
///
public string message { get; set; }
}
///
/// 八电极算法接口返回数据
///
public class BodyReponseInfo : BodyReponseInfo
{
///
/// 数据
///
public List data { get; set; }
}
public class BodyResponseData
{
///
/// 参数名称
///
public string name { get; set; }
///
/// 值
///
public object value { get; set; }
///
/// 描述
///
public BodyResponseDataDesc description { get; set; }
///
/// 单位
///
public string unit { get; set; }
///
/// 标准
///
public BodyResponseDataLevel level { get; set; }
}
///
/// 参数描述
///
public class BodyResponseDataDesc
{
///
/// 描述定义
///
public string definition { get; set; }
///
/// 提示
///
public string tips { get; set; }
}
///
/// 测量项标准
///
public class BodyResponseDataLevel
{
///
/// 标准值
///
public string value { get; set; }
///
/// 范围
///
public List stand { get; set; }
}
///
/// 八电极合泰请求参数
///
public class HetaiBodyRequestS2SDto
{
///
/// 年龄,岁
///
public int age { get; set; }
///
/// 身高,厘米
///
public decimal heightCm { get; set; }
///
/// 人群类型,0-普通,1-运动员
///
public int peopleType { get; set; }
///
/// 性别,0-女,1-男
///
public int sex { get; set; }
///
/// 重量,公斤
///
public decimal weightKg { get; set; }
///
/// 左侧全⾝阻抗阻抗(悠健编码后值)
///
public decimal zLeftBodyEnCode { get; set; }
///
/// 左⼿阻抗阻抗(悠健编码后值
///
public decimal zLeftArmEnCode { get; set; }
///
/// 左脚阻抗阻抗(悠健编码后值)
///
public decimal zLeftLegEnCode { get; set; }
///
/// 右⼿阻抗阻抗(悠健编码后值
///
public decimal zRightArmEnCode { get; set; }
///
/// 右脚阻抗阻抗(悠健编码后值
///
public decimal zRightLegEnCode { get; set; }
}
///
/// 八电极测量项
///
public class UserMeasureDto : MeasureLevel
{
///
/// 躯干肌肉率,%
///
public decimal muscleratetrunk { get; set; } = 0;
///
/// 左脚肌肉率,%
///
public decimal musclerateleftleg { get; set; } = 0;
///
/// 右脚肌肉率,%
///
public decimal muscleraterightleg { get; set; } = 0;
///
/// 左手肌肉率,%
///
public decimal musclerateleftarm { get; set; } = 0;
///
/// 右手肌肉率,%
///
public decimal muscleraterightarm { get; set; } = 0;
///
/// 躯干脂肪率,%
///
public decimal bodyfatraterunk { get; set; } = 0;
///
/// 左脚脂肪率,%
///
public decimal bodyfatrateleftleg { get; set; } = 0;
///
/// 右脚脂肪率,%
///
public decimal bodyfatraterightleg { get; set; } = 0;
///
/// 左手脂肪率,%
///
public decimal bodyfatrateleftarm { get; set; } = 0;
///
/// 右手脂肪率,%
///
public decimal bodyfatraterightarm { get; set; } = 0;
///
/// 躯干肌肉量,kg
///
public decimal musclekgtrunk { get; set; } = 0;
///
/// 左脚肌肉量,kg
///
public decimal musclekgleftleg { get; set; } = 0;
///
/// 右脚肌肉量,kg
///
public decimal musclekgrightleg { get; set; } = 0;
///
/// 左手肌肉量,kg
///
public decimal musclekgleftarm { get; set; } = 0;
///
/// 右手肌肉量,kg
///
public decimal musclekgrightarm { get; set; } = 0;
///
/// 躯干脂肪量,kg
///
public decimal bodyfatkgtrunk { get; set; } = 0;
///
/// 左脚脂肪量,kg
///
public decimal bodyfatkgleftleg { get; set; } = 0;
///
/// 右脚脂肪量,kg
///
public decimal bodyfatkgrightleg { get; set; } = 0;
///
/// 左手脂肪量,kg
///
public decimal bodyfatkgleftarm { get; set; } = 0;
///
/// 右手脂肪量,kg
///
public decimal bodyfatkgrightarm { get; set; } = 0;
///
/// 骨骼肌量,kg
///
public decimal SkeletalMuscle { get; set; } = 0;
///
/// 理想体重,kg
///
public decimal idealweight { get; set; } = 0;
///
/// 记录ID
///
public Guid Id { get; set; }
}
///
/// 2/4电极算法返回结果定义
///
public class BodyfatItem
{
///
/// bmi
///
public string bmi;
///
/// 骨量
///
public string bm;
///
/// 肌肉率
///
public string rom;
///
/// 水分
///
public string moi;
///
/// 脂肪率
///
public string bfr;
///
/// 皮下脂肪率
///
public string sfr;
///
/// 骨骼肌率
///
public string rosm;
///
/// 蛋白率
///
public string pp;
///
/// 内脏脂肪指数
///
public string uvi;
///
/// 基础代谢率
///
public string bmr;
///
/// 身体年龄
///
public string physicAge;
///
/// 体重
///
public double weight;
///
/// 身高
///
public double height;
///
/// 年龄
///
public int age;
///
/// 阻抗
///
public int adc;
///
/// 性别,0-女,1-男
///
public int sex;
}
}