using FCS.Interface; namespace FCS.Services { /// /// 公共方法服务 /// public class CommonServices : ICommon { /// /// 获取等级对应分数 /// /// 等级 /// public int GetScore(int level) { if (level > 10) return 100; if (level < 0) return 0; return level * 10; } } }