mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
完善SDK
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace SDKCSharp.Model
|
||||
{
|
||||
public class GetStoryModel
|
||||
public class GetProductModel
|
||||
{
|
||||
|
||||
/// <summary>
|
@@ -44,7 +44,7 @@ namespace SDKTest
|
||||
// 创建请求对象
|
||||
GetProductRequest request = new GetProductRequest();
|
||||
// 请求参数
|
||||
GetStoryModel model = new GetStoryModel();
|
||||
GetProductModel model = new GetProductModel();
|
||||
model.Id = 1;
|
||||
request.BizModel = model;
|
||||
|
||||
|
15
sop-sdk/sdk-csharp/SDKCSharp/Request/GetProductRequest.cs
Normal file
15
sop-sdk/sdk-csharp/SDKCSharp/Request/GetProductRequest.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using SDKCSharp.Common;
|
||||
using SDKCSharp.Response;
|
||||
|
||||
namespace SDKCSharp.Request
|
||||
{
|
||||
public class GetProductRequest : BaseRequest<GetProductResponse>
|
||||
{
|
||||
public override string GetMethod()
|
||||
{
|
||||
return "product.get";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
18
sop-sdk/sdk-csharp/SDKCSharp/Response/GetProductResponse.cs
Normal file
18
sop-sdk/sdk-csharp/SDKCSharp/Response/GetProductResponse.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace SDKCSharp.Response
|
||||
{
|
||||
public class GetProductResponse
|
||||
{
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[JsonProperty("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonProperty("gmt_create")]
|
||||
public string GmtCreate { get; set; }
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user