mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-15 05:13:17 +08:00
32 lines
1.1 KiB
C#
32 lines
1.1 KiB
C#
using System;
|
|
|
|
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|
{
|
|
/// <summary>
|
|
/// <para>表示 [POST] /cgi-bin/media/uploadimg 接口的请求。</para>
|
|
/// </summary>
|
|
public class CgibinMediaUploadImageRequest : WechatApiRequest, IInferable<CgibinMediaUploadImageRequest, CgibinMediaUploadImageResponse>
|
|
{
|
|
/// <summary>
|
|
/// 获取或设置图片文件字节数组。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonIgnore]
|
|
[System.Text.Json.Serialization.JsonIgnore]
|
|
public byte[] FileBytes { get; set; } = Array.Empty<byte>();
|
|
|
|
/// <summary>
|
|
/// 获取或设置图片文件名。如果不指定将由系统自动生成。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonIgnore]
|
|
[System.Text.Json.Serialization.JsonIgnore]
|
|
public string? FileName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置图片文件 Conent-Type。如果不指定将由系统自动生成。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonIgnore]
|
|
[System.Text.Json.Serialization.JsonIgnore]
|
|
public string? FileContentType { get; set; }
|
|
}
|
|
}
|