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