feat(work): 随官方更新获取客户详情接口响应模型

This commit is contained in:
Fu Diwei 2022-05-01 22:19:34 +08:00
parent 9456d71701
commit 9eed805c78
2 changed files with 8 additions and 1 deletions

View File

@ -38,7 +38,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
{
flurlReq.SetQueryParam("upload_type", 0);
using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: "image.png", fileBytes: request.ImageFileBytes, fileContentType: "image/png", formDataName: "media");
using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: "image.png", fileBytes: request.ImageFileBytes!, fileContentType: "image/png", formDataName: "media");
return await client.SendRequestAsync<Models.ShopImageUploadResponse>(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken);
}
}

View File

@ -177,6 +177,13 @@
[Newtonsoft.Json.JsonProperty("nickname")]
[System.Text.Json.Serialization.JsonPropertyName("nickname")]
public string? Nickname { get; set; }
/// <summary>
/// 获取或设置视频号添加场景。
/// </summary>
[Newtonsoft.Json.JsonProperty("source")]
[System.Text.Json.Serialization.JsonPropertyName("source")]
public int? Source { get; set; }
}
}