mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-12 07:02:14 +08:00
1.8.0
This commit is contained in:
@@ -60,6 +60,18 @@ namespace SDKCSharp.Request
|
||||
this.version = version == null ? SdkConfig.DEFAULT_VERSION : version;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加上传文件
|
||||
/// </summary>
|
||||
/// <param name="file">File.</param>
|
||||
public void AddFile(UploadFile file)
|
||||
{
|
||||
if(this.files == null)
|
||||
{
|
||||
this.files = new List<UploadFile>();
|
||||
}
|
||||
this.files.Add(file);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 创建请求表单
|
||||
|
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using SDKCSharp.Response;
|
||||
|
||||
namespace SDKCSharp.Request
|
||||
{
|
||||
public class DemoFileUploadRequest : BaseRequest<DemoFileUploadResponse>
|
||||
{
|
||||
public override string GetMethod()
|
||||
{
|
||||
return "demo.file.upload";
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user