File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
frameworks/CSharp/touchsocket Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 88 "port" : 8080 ,
99 "approach" : " Realistic" ,
1010 "classification" : " Fullstack" ,
11+ "database" : " Postgres" ,
1112 "framework" : " touchsocket.webapi" ,
1213 "language" : " C#" ,
1314 "orm" : " Raw" ,
6465 "port" : 8080 ,
6566 "approach" : " Realistic" ,
6667 "classification" : " Fullstack" ,
68+ "database" : " Postgres" ,
6769 "framework" : " touchsocket.webapi31" ,
6870 "language" : " C#" ,
6971 "orm" : " Raw" ,
Original file line number Diff line number Diff line change 88
99using HttpContent = TouchSocket . Http . HttpContent ;
1010
11- namespace TouchSocketWebApi ;
11+ namespace TouchSocketWebApi31 ;
1212
1313public class Program
1414{
@@ -60,7 +60,7 @@ public partial class ApiServer : SingletonRpcServer
6060 public async Task Plaintext ( IWebApiCallContext callContext )
6161 {
6262 var response = callContext . HttpContext . Response ;
63- response . SetStatus ( 200 , "success " ) ;
63+ response . SetStatus ( 200 , "ok " ) ;
6464 response . Content = m_contentPlaintext ;
6565 await response . AnswerAsync ( ) . ConfigureAwait ( false ) ;
6666 }
@@ -73,7 +73,7 @@ public MyJson Json()
7373 }
7474}
7575
76- [ JsonSerializable ( typeof ( MyJson ) ) ] //ʵ¼ÊÀàÐÍ1
76+ [ JsonSerializable ( typeof ( MyJson ) ) ]
7777internal partial class AppJsonSerializerContext : JsonSerializerContext
7878{
7979
You can’t perform that action at this time.
0 commit comments