完善SDK

This commit is contained in:
六如
2025-02-02 21:28:05 +08:00
parent e09c0106a0
commit aa8f044c70
6 changed files with 113 additions and 133 deletions

View File

@@ -2,7 +2,7 @@
namespace SDKCSharp.Model
{
public class GetStoryModel
public class GetProductModel
{
/// <summary>

View File

@@ -44,7 +44,7 @@ namespace SDKTest
// 创建请求对象
GetProductRequest request = new GetProductRequest();
// 请求参数
GetStoryModel model = new GetStoryModel();
GetProductModel model = new GetProductModel();
model.Id = 1;
request.BizModel = model;

View 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";
}
}
}

View 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; }
}
}