using Newtonsoft.Json; using YBDevice.Entity; namespace YBDevice.Body.BodyFatHelper { /// /// 八电极测量项 /// public class Body120MeausreS2CDto : UserBodyMeasureS2CDto { /// /// 年龄 /// public int Age { get; set; } /// /// 性别 /// public GenderType Sex { get; set; } } /// /// 八电极测量项 /// public class UserBodyMeasureS2CDto : UserMeasureDto { /// /// 历史记录值 /// public List list { get; set; } } /// /// 八电极测量项 /// public class UserMeasureDto : MeasureLevelDto { /// /// 脂肪率,% /// public decimal fat_r { get; set; } = 0; /// /// 肌肉率,% /// public decimal muscle { get; set; } = 0; /// /// 水份,% /// public decimal water { get; set; } = 0; /// /// 骨重,kg /// public decimal bone { get; set; } = 0; /// /// 基础代谢,kcal/day /// public decimal kcal { get; set; } = 0; /// /// 躯干肌肉率,% /// 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 fat_w { get; set; } = 0; /// /// 内脂,'' /// public decimal visceral { get; set; } = 0; /// /// 蛋白质率,% /// public decimal protein { get; set; } = 0; /// /// 蛋白量,kg /// public decimal proteinval { get; set; } = 0; /// /// 骨骼肌量,kg /// public decimal SkeletalMuscle { get; set; } = 0; /// /// 体龄,'' /// public int bodyage { get; set; } = 0; /// /// BMI,kg/m2 /// 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 muscleval { get; set; } = 0; /// /// 去脂体重,kg /// public decimal lbm { get; set; } = 0; /// /// 体型,参考体型枚举,'' /// public string body { get; set; } = "异常"; /// /// 体重,kg /// public decimal weight { get; set; } = 0; /// /// 理想体重,kg /// public decimal idealweight { get; set; } = 0; /// /// 身高,CM /// public decimal height { get; set; } = 0; /// /// 记录ID /// public virtual Guid Id { get; set; } } /// /// 返回给第三方的八电极测量项 /// public class OpenUserMeasureDto : UserMeasureDto { /// /// 记录ID /// [JsonIgnore] public override Guid Id { get; set; } } /// /// 测量项等级 /// public class MeasureLevelDto { /// /// 骨骼肌量标准 /// public string SkeletalMuscleLevel { get; set; } = "异常"; /// /// 肥胖等级标准 /// public string fatLevel { get; set; } = "异常"; /// /// 脂肪率标准 /// 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 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 string age { get; set; } /// /// 身高,厘米 /// public string heightCm { get; set; } /// /// 人群类型,0-普通,1-运动员 /// public string peopleType { get; set; } /// /// 性别,0-女,1-男 /// public string sex { get; set; } /// /// 重量,公斤 /// public string weightKg { get; set; } /// /// 左侧全⾝阻抗阻抗(悠健编码后值) /// public string zLeftBodyEnCode { get; set; } /// /// 左⼿阻抗阻抗(悠健编码后值 /// public string zLeftArmEnCode { get; set; } /// /// 左脚阻抗阻抗(悠健编码后值) /// public string zLeftLegEnCode { get; set; } /// /// 右⼿阻抗阻抗(悠健编码后值 /// public string zRightArmEnCode { get; set; } /// /// 右脚阻抗阻抗(悠健编码后值 /// public string zRightLegEnCode { get; set; } } }