WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 0e2033c

Browse files
committed
测试LongToStringConverter
1 parent 8d8b91b commit 0e2033c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/OSharp.Hosting.Apis/Controllers/TestController.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,19 @@ public async Task<string> Test04()
129129
await RoleRepository.BulkInsertAsync(roleList.ToArray());
130130
return "插入完成";
131131
}
132+
133+
[HttpPost]
134+
[Description("测试JsonConvert")]
135+
[AllowAnonymous]
136+
public async Task<JsonConvertDto> TestJsonConvert(JsonConvertDto dto)
137+
{
138+
return dto;
139+
}
140+
141+
public class JsonConvertDto
142+
{
143+
public long? Id { get; set; }
144+
}
132145
}
133146

134147
public class ClassFilter : ActionFilterAttribute, IExceptionFilter

0 commit comments

Comments
 (0)