using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using YBDevice.Entity; namespace YBDevice.CommonService.BodyFatHelper { /// /// 体脂计算算法 /// public interface IBodyFatHelperService { /// /// 结果计算 /// /// 已计算的结果 /// UserMeasureModel CalcBodyFat(MeasureCalcDto model); /// /// 计算体脂 /// /// 体重,单位为kg /// 身高,单位为米 /// 年龄 /// 阻抗 /// 性别,1-男,2-女,0-未知 /// UserMeasureModel CalcBodyFat(double weight, double height, int age, int adc, int sex); /// /// 八电极计算体脂 /// /// 体重,单位为kg /// 身高,单位为米 /// 年龄 /// 性别,1-男,2-女,0-未知 /// 全身阻抗 /// 左脚阻抗 /// 左手阻抗 /// 右脚阻抗 /// 右手阻抗 Task CalcBody120FatAsync(decimal weight, decimal height, int age, int sex, decimal lefthand, decimal righthand, decimal leftfoot, decimal rightfoot, decimal body); /// /// bmi范围标准 /// /// /// /// List bmi_value(int sex, int age); /// /// 脂肪率/体脂率范围标准 /// /// /// /// List fa_r_value(int sex, int age); /// /// 脂肪重量标准范围 /// /// 性别 /// 年龄 /// 重量,kg /// List fat_w_value(int sex, int age, decimal weight); /// /// 肌肉率范围 /// /// /// /// List muscle_value(int sex, int age); /// /// 肌肉重量标准范围 /// /// 性别 /// 年龄 /// 重量,kg /// List muscleval_value(int sex, int age, decimal weight); /// /// 水份范围 /// /// /// /// List water_value(int sex, int age); /// /// 骨量范围 /// /// /// /// 体重 /// List bone_value(int sex, int age, decimal weight); /// /// 基础代谢范围 /// /// /// /// /// List kcal_value(int sex, int age, decimal weight); /// /// 内脂范围 /// /// /// /// List visceral_value(int sex, int age); /// /// 蛋白质范围 /// /// /// /// List protein_value(int sex, int age); /// /// 蛋白量标准范围 /// /// /// /// /// List proteinval_value(int sex, int age, decimal weight); /// /// 皮下脂肪范围 /// /// /// /// List sfr_value(int sex, int age); /// /// 骨骼肌量范围 /// /// /// /// List skeletalmusclekg(int sex, int age); /// /// 皮下脂肪量范围 /// /// /// /// /// List sfrval_value(int sex, int age, decimal weight); /// /// 肥胖等级 /// /// level=(体重-标准体重)/标准体重 /// string fatlevel(double level); /// /// 标准体重 /// /// 身高,厘米 /// 性别,0-女,1-男 /// double standweight(int height, int sex); /// /// BMI标准的范围 /// /// /// /// MeasureInfoItemValue bmi_stand(int sex, int age); /// /// 肌肉量标准 /// /// /// /// /// MeasureInfoItemValue muscleval_stand(int sex, int age, decimal weight); /// /// 脂肪重量标准 /// /// /// /// /// MeasureInfoItemValue fat_w_stand(int sex, int age, decimal weight); /// /// 骨骼肌量标准 /// /// /// /// 骨骼肌值 /// List skeletalmusclekg_val(int sex, int age, decimal val); /// /// BMI值计算 /// /// 身高,厘米 /// 体重,公斤 /// decimal CalcBMi(decimal height, decimal weight); /// /// 标准体重计算 /// /// 身高,厘米 /// 性别,1-男,2-女 /// decimal CalcStandWeight(decimal height, int sex); /// /// 儿童BMI标准 /// /// 性别,1-男,2-女 /// 月龄 /// BMI值 /// string ChildBmiLevel(int sex, int month, decimal bmivalue); /// /// 儿童身高标准 /// /// 性别,1-男,2-女 /// 月龄 /// 身高,cm /// string ChildHeightLevel(int sex, int month, decimal height); /// /// 儿童体重标准 /// /// 性别,1-男,2-女 /// 月龄 /// 体重,kg /// string ChildWeightLevel(int sex, int month, decimal weight); /// /// 根据等级获取标准颜色 /// /// 等级标准 /// string GetLevelColor(string level); /// /// 获取儿童BMI范围 /// /// 1-男,2-女 /// 月龄 /// List ChildBmiStand(int sex, int month); /// /// 获取儿童身高范围 /// /// 1-男,2-女 /// 月龄 /// List ChildHeightStand(int sex, int month); /// /// 获取儿童体重范围 /// /// 1-男,2-女 /// 月龄 /// List ChildWeightStand(int sex, int month); } }