mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-12 07:02:14 +08:00
新增restful模式
This commit is contained in:
8
sop-sdk/sdk-csharp/SDKCSharp/Program.cs
Executable file → Normal file
8
sop-sdk/sdk-csharp/SDKCSharp/Program.cs
Executable file → Normal file
@@ -42,15 +42,15 @@ namespace SDKTest
|
||||
private static void TestGet()
|
||||
{
|
||||
// 创建请求对象
|
||||
GetStoryRequest request = new GetStoryRequest();
|
||||
GetProductRequest request = new GetProductRequest();
|
||||
// 请求参数
|
||||
GetStoryModel model = new GetStoryModel();
|
||||
model.Name = "白雪公主";
|
||||
model.Id = 1;
|
||||
request.BizModel = model;
|
||||
|
||||
// 发送请求
|
||||
Result<GetStoryResponse> result = client.Execute(request);
|
||||
|
||||
Result<GetProductResponse> result = client.Execute(request);
|
||||
|
||||
if (result.IsSuccess())
|
||||
{
|
||||
// 返回结果
|
||||
|
Reference in New Issue
Block a user