feat(wxapi): 随官方标记获取用户信息相关接口或字段为废弃

This commit is contained in:
Fu Diwei
2021-12-15 15:34:40 +08:00
parent 86aa5ef01d
commit 4b46fa580d
5 changed files with 25 additions and 10 deletions

View File

@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
@@ -119,6 +118,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置性别。
/// </summary>
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
[Newtonsoft.Json.JsonProperty("sex")]
[System.Text.Json.Serialization.JsonPropertyName("sex")]
public int? Sex { get; set; }
@@ -134,6 +134,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置国家。
/// </summary>
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
[Newtonsoft.Json.JsonProperty("country")]
[System.Text.Json.Serialization.JsonPropertyName("country")]
public string? Country { get; set; }
@@ -141,6 +142,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置省份。
/// </summary>
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
[Newtonsoft.Json.JsonProperty("province")]
[System.Text.Json.Serialization.JsonPropertyName("province")]
public string? Province { get; set; }
@@ -148,6 +150,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置城市。
/// </summary>
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
[Newtonsoft.Json.JsonProperty("city")]
[System.Text.Json.Serialization.JsonPropertyName("city")]
public string? City { get; set; }

View File

@@ -30,7 +30,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public string MediaId { get; set; } = string.Empty;
}
[Obsolete("相关接口将于 2021-12-31 下线")]
public class MpNewsMessage : ImageMessage
{
}
@@ -306,7 +305,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置图文消息内容。
/// </summary>
[Obsolete("相关接口于 2021-12-31 下线")]
[Obsolete("相关接口或字段于 2021-12-31 下线")]
[Newtonsoft.Json.JsonProperty("mpnews")]
[System.Text.Json.Serialization.JsonPropertyName("mpnews")]
public Types.MpNewsMessage? MessageContentForMpNews { get; set; }

View File

@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
@@ -29,13 +28,15 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置用户的昵称。
/// </summary>
[Obsolete("相关接口或字段于 2021-12-27 下线。")]
[Newtonsoft.Json.JsonProperty("nickname")]
[System.Text.Json.Serialization.JsonPropertyName("nickname")]
public string Nickname { get; set; } = default!;
public string? Nickname { get; set; }
/// <summary>
/// 获取或设置用户的性别。
/// </summary>
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
[Newtonsoft.Json.JsonProperty("sex")]
[System.Text.Json.Serialization.JsonPropertyName("sex")]
public int? Sex { get; set; }
@@ -43,6 +44,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置用户所在国家。
/// </summary>
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
[Newtonsoft.Json.JsonProperty("country")]
[System.Text.Json.Serialization.JsonPropertyName("country")]
public string? Country { get; set; }
@@ -50,6 +52,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置用户所在省份。
/// </summary>
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
[Newtonsoft.Json.JsonProperty("province")]
[System.Text.Json.Serialization.JsonPropertyName("province")]
public string? Province { get; set; }
@@ -57,6 +60,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置用户所在城市。
/// </summary>
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
[Newtonsoft.Json.JsonProperty("city")]
[System.Text.Json.Serialization.JsonPropertyName("city")]
public string? City { get; set; }
@@ -71,9 +75,10 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置用户的头像 URL。
/// </summary>
[Obsolete("相关接口或字段于 2021-12-27 下线。")]
[Newtonsoft.Json.JsonProperty("headimgurl")]
[System.Text.Json.Serialization.JsonPropertyName("headimgurl")]
public string HeadImageUrl { get; set; } = default!;
public string? HeadImageUrl { get; set; }
/// <summary>
/// 获取或设置用户是否订阅该公众号标识。

View File

@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
@@ -25,13 +24,15 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置用户的昵称。
/// </summary>
[Obsolete("相关接口或字段于 2021-12-27 下线。")]
[Newtonsoft.Json.JsonProperty("nickname")]
[System.Text.Json.Serialization.JsonPropertyName("nickname")]
public string Nickname { get; set; } = default!;
public string? Nickname { get; set; }
/// <summary>
/// 获取或设置用户的性别。
/// </summary>
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
[Newtonsoft.Json.JsonProperty("sex")]
[System.Text.Json.Serialization.JsonPropertyName("sex")]
public int? Sex { get; set; }
@@ -39,6 +40,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置用户所在国家。
/// </summary>
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
[Newtonsoft.Json.JsonProperty("country")]
[System.Text.Json.Serialization.JsonPropertyName("country")]
public string? Country { get; set; }
@@ -46,6 +48,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置用户所在省份。
/// </summary>
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
[Newtonsoft.Json.JsonProperty("province")]
[System.Text.Json.Serialization.JsonPropertyName("province")]
public string? Province { get; set; }
@@ -53,6 +56,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置用户所在城市。
/// </summary>
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
[Newtonsoft.Json.JsonProperty("city")]
[System.Text.Json.Serialization.JsonPropertyName("city")]
public string? City { get; set; }
@@ -67,9 +71,10 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置用户的头像 URL。
/// </summary>
[Obsolete("相关接口或字段于 2021-12-27 下线。")]
[Newtonsoft.Json.JsonProperty("headimgurl")]
[System.Text.Json.Serialization.JsonPropertyName("headimgurl")]
public string HeadImageUrl { get; set; } = default!;
public string? HeadImageUrl { get; set; }
/// <summary>
/// 获取或设置用户是否订阅该公众号标识。

View File

@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
@@ -32,6 +31,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置用户的性别。
/// </summary>
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
[Newtonsoft.Json.JsonProperty("sex")]
[System.Text.Json.Serialization.JsonPropertyName("sex")]
public int? Sex { get; set; }
@@ -39,6 +39,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置用户所在国家。
/// </summary>
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
[Newtonsoft.Json.JsonProperty("country")]
[System.Text.Json.Serialization.JsonPropertyName("country")]
public string? Country { get; set; }
@@ -46,6 +47,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置用户所在省份。
/// </summary>
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
[Newtonsoft.Json.JsonProperty("province")]
[System.Text.Json.Serialization.JsonPropertyName("province")]
public string? Province { get; set; }
@@ -53,6 +55,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置用户所在城市。
/// </summary>
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
[Newtonsoft.Json.JsonProperty("city")]
[System.Text.Json.Serialization.JsonPropertyName("city")]
public string? City { get; set; }