using System; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; namespace DS.WMS.PrintApi.Utils { public class CustomContractResolver : CamelCasePropertyNamesContractResolver { /// /// 对长整型做处理 /// /// /// protected override JsonConverter ResolveContractConverter(Type objectType) { if (objectType == typeof(long)) { return new JsonConverterLong(); } return base.ResolveContractConverter(objectType); } } }