using Microsoft.AspNetCore.JsonPatch.Operations; using Swashbuckle.AspNetCore.Filters; namespace IRaCIS.Core.Application.Contracts { /// /// 实测 标注在服务方法上 没用 /// public class JsonPatchUserRequestExample : IExamplesProvider { public Operation[] GetExamples() { return new[] { new Operation { op = "replace", path = "/name", value = "Gordon" }, new Operation { op = "replace", path = "/surname", value = "Freeman" } }; } object IExamplesProvider.GetExamples() { return new[] { new Operation { op = "replace", path = "/name", value = "Gordon" }, new Operation { op = "replace", path = "/surname", value = "Freeman" } }; } } }