using System;
using System.ComponentModel.DataAnnotations;
using YBDevice.Entity;
namespace YBDevice.NApi.Application.ThirdOpen
{
///
/// 两电极/四电极结果计算
///
public class BodyCalcC2SDto
{
///
/// 体重,单位KG
///
[Range(1, 200, ErrorMessage = "体重只能在10-200公斤之间")]
public decimal Weight { get; set; }
///
/// 身高,单位厘米
///
[Range(10, 250, ErrorMessage = "身高只能在10-200厘米之间")]
public decimal Height { get; set; }
///
/// 年龄,岁
///
[Range(0, 100, ErrorMessage = "年龄只能在0-100岁之间")]
public int Age { get; set; }
///
/// 阻抗值
///
[Range(0, 1000, ErrorMessage = "阻抗值只能在0-1000之间")]
public int adc { get; set; }
///
/// 性别,1-男,2-女
///
public GenderType sex { get; set; }
}
///
/// 八电极结果结算
///
public class Body120CalcC2SDto
{
///
/// 体重,单位KG
///
[Range(1, 200, ErrorMessage = "体重只能在10-200公斤之间")]
public decimal Weight { get; set; }
///
/// 身高,单位厘米
///
[Range(10, 250, ErrorMessage = "身高只能在10-200厘米之间")]
public decimal Height { get; set; }
///
/// 年龄,岁
///
[Range(0, 100, ErrorMessage = "年龄只能在0-100岁之间")]
public int Age { get; set; }
///
/// 左手阻抗
///
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; }
///
/// 性别,1-男,2-女
///
public GenderType sex { get; set; }
}
///
/// 转发给第三方的数据
///
public class BodyPostBodyS2SDto
{
///
/// 体重,单位KG
///
public decimal Weight { get; set; }
///
/// 身高,单位厘米
///
public decimal Height { get; set; }
///
/// 年龄,岁
///
public int Age { get; set; }
///
/// 阻抗值
///
public int adc { get; set; }
}
///
/// 两电极/四电极结果返回值
///
public class BodyCalcS2CDto
{
///
/// 脂肪率
///
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 decimal weight { get; set; } = 0;
///
/// 身高
///
public decimal height { get; set; } = 0;
///
/// 标准体重
///
public string standardWeight { 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 string fatLevel { get; set; } = "";
}
}