服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
7 天以前 f7e91120bed67bf81f3e873056b147c8df2d68c0
Tiger.Business.MESTests/MesTests.cs
@@ -14,6 +14,14 @@
        [TestMethod()]
        public void CommonTest()
        {
            var dic = new Dictionary<string, string>();
            dic.Add("1", "11");
            dic.Add("2", "222");
            var dicStr = dic.ToJson();
            var ai = new ActiveInfo() { ExpiryDate = DateTime.Now };
            var aiStr = ai.ToJson();
            var date = new DateTime(2021,1,2);
            
            var firstDay = new DateTime(date.Year, 1, 1);
@@ -23,5 +31,11 @@
            var str = $"{year.ToString().Substring(2, 2)}{week:00}";
            ;
        }
        public class ActiveInfo
        {
            public string Mac { get; set; }
            public DateTime? ExpiryDate { get; set; }
        }
    }
}