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