系统入参统一小驼峰
This commit is contained in:
parent
99828d4b91
commit
7ae3e3993a
@ -1,4 +1,6 @@
|
||||
using InterfaceForward.Domain.Shared.Helpers;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
using TrackCenter.Domain.VEntities;
|
||||
|
||||
namespace TrackCenter.Application.Track2InterfaceRelay;
|
||||
@ -24,7 +26,10 @@ public class InterfaceForwardService : ITransientDependency
|
||||
{
|
||||
var client = _httpClientFactory.CreateClient("itfx");
|
||||
|
||||
var body = data.ToJson();
|
||||
var body = JsonConvert.SerializeObject(data, new JsonSerializerSettings
|
||||
{
|
||||
ContractResolver = new CamelCasePropertyNamesContractResolver(),
|
||||
});
|
||||
var content = new StringContent(body);
|
||||
content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json");
|
||||
if (Track2InterfaceRelayAppContext.Current == null)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user