Skip to content

Commit 78fbaf7

Browse files
committed
提升版本
1 parent 2725ef8 commit 78fbaf7

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>2.1.4</Version>
3+
<Version>2.1.5</Version>
44
<Copyright>Copyright © laojiu 2017-2024</Copyright>
55
<NoWarn>IDE0290;NETSDK1138</NoWarn>
66
</PropertyGroup>

WebApiClientCore.OpenApi.SourceGenerator/WebApiClientCore.OpenApi.SourceGenerator.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<Nullable>enable</Nullable>
6-
<Version>2.1.4.1</Version>
76
<TargetFrameworks>netcoreapp3.1;net6.0;net8.0</TargetFrameworks>
87

98
<Summary>将本地或远程OpenApi文档解析生成WebApiClientCore的接口定义代码文件的工具</Summary>

WebApiClientCore/Parameters/FormDataFile.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
using System;
2-
using System.ComponentModel;
32
using System.Diagnostics;
43
using System.IO;
5-
using System.Text;
64
using System.Threading;
75
using System.Threading.Tasks;
86
using WebApiClientCore.HttpContents;
9-
using WebApiClientCore.Internals;
107

118
namespace WebApiClientCore.Parameters
129
{
@@ -22,22 +19,15 @@ public class FormDataFile : IApiParameter
2219
private readonly Func<Stream> streamFactory;
2320

2421
/// <summary>
25-
/// 获取文件好友名称
22+
/// 获取文件名称
2623
/// </summary>
2724
public string? FileName { get; }
2825

2926
/// <summary>
3027
/// 获取或设置文件的Mime
3128
/// </summary>
3229
public string? ContentType { get; set; } = FormDataFileContent.OctetStream;
33-
34-
/// <summary>
35-
/// 获取编码后的文件好友名称
36-
/// </summary>
37-
[EditorBrowsable(EditorBrowsableState.Never)]
38-
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
39-
public virtual string? EncodedFileName => HttpUtil.UrlEncode(this.FileName, Encoding.UTF8);
40-
30+
4131
/// <summary>
4232
/// multipart/form-data的一个文件项
4333
/// </summary>

0 commit comments

Comments
 (0)