mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-11-09 19:04:59 +08:00
feat(wxapi): 随官方标记获取用户信息相关接口或字段为废弃
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||||
{
|
{
|
||||||
@@ -119,6 +118,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置性别。
|
/// 获取或设置性别。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
|
||||||
[Newtonsoft.Json.JsonProperty("sex")]
|
[Newtonsoft.Json.JsonProperty("sex")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("sex")]
|
[System.Text.Json.Serialization.JsonPropertyName("sex")]
|
||||||
public int? Sex { get; set; }
|
public int? Sex { get; set; }
|
||||||
@@ -134,6 +134,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置国家。
|
/// 获取或设置国家。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
|
||||||
[Newtonsoft.Json.JsonProperty("country")]
|
[Newtonsoft.Json.JsonProperty("country")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("country")]
|
[System.Text.Json.Serialization.JsonPropertyName("country")]
|
||||||
public string? Country { get; set; }
|
public string? Country { get; set; }
|
||||||
@@ -141,6 +142,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置省份。
|
/// 获取或设置省份。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
|
||||||
[Newtonsoft.Json.JsonProperty("province")]
|
[Newtonsoft.Json.JsonProperty("province")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("province")]
|
[System.Text.Json.Serialization.JsonPropertyName("province")]
|
||||||
public string? Province { get; set; }
|
public string? Province { get; set; }
|
||||||
@@ -148,6 +150,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置城市。
|
/// 获取或设置城市。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
|
||||||
[Newtonsoft.Json.JsonProperty("city")]
|
[Newtonsoft.Json.JsonProperty("city")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("city")]
|
[System.Text.Json.Serialization.JsonPropertyName("city")]
|
||||||
public string? City { get; set; }
|
public string? City { get; set; }
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
public string MediaId { get; set; } = string.Empty;
|
public string MediaId { get; set; } = string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
[Obsolete("相关接口将于 2021-12-31 下线")]
|
|
||||||
public class MpNewsMessage : ImageMessage
|
public class MpNewsMessage : ImageMessage
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -306,7 +305,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置图文消息内容。
|
/// 获取或设置图文消息内容。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Obsolete("相关接口将于 2021-12-31 下线")]
|
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
|
||||||
[Newtonsoft.Json.JsonProperty("mpnews")]
|
[Newtonsoft.Json.JsonProperty("mpnews")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("mpnews")]
|
[System.Text.Json.Serialization.JsonPropertyName("mpnews")]
|
||||||
public Types.MpNewsMessage? MessageContentForMpNews { get; set; }
|
public Types.MpNewsMessage? MessageContentForMpNews { get; set; }
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||||
{
|
{
|
||||||
@@ -29,13 +28,15 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置用户的昵称。
|
/// 获取或设置用户的昵称。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("相关接口或字段于 2021-12-27 下线。")]
|
||||||
[Newtonsoft.Json.JsonProperty("nickname")]
|
[Newtonsoft.Json.JsonProperty("nickname")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("nickname")]
|
[System.Text.Json.Serialization.JsonPropertyName("nickname")]
|
||||||
public string Nickname { get; set; } = default!;
|
public string? Nickname { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置用户的性别。
|
/// 获取或设置用户的性别。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
|
||||||
[Newtonsoft.Json.JsonProperty("sex")]
|
[Newtonsoft.Json.JsonProperty("sex")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("sex")]
|
[System.Text.Json.Serialization.JsonPropertyName("sex")]
|
||||||
public int? Sex { get; set; }
|
public int? Sex { get; set; }
|
||||||
@@ -43,6 +44,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置用户所在国家。
|
/// 获取或设置用户所在国家。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
|
||||||
[Newtonsoft.Json.JsonProperty("country")]
|
[Newtonsoft.Json.JsonProperty("country")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("country")]
|
[System.Text.Json.Serialization.JsonPropertyName("country")]
|
||||||
public string? Country { get; set; }
|
public string? Country { get; set; }
|
||||||
@@ -50,6 +52,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置用户所在省份。
|
/// 获取或设置用户所在省份。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
|
||||||
[Newtonsoft.Json.JsonProperty("province")]
|
[Newtonsoft.Json.JsonProperty("province")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("province")]
|
[System.Text.Json.Serialization.JsonPropertyName("province")]
|
||||||
public string? Province { get; set; }
|
public string? Province { get; set; }
|
||||||
@@ -57,6 +60,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置用户所在城市。
|
/// 获取或设置用户所在城市。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
|
||||||
[Newtonsoft.Json.JsonProperty("city")]
|
[Newtonsoft.Json.JsonProperty("city")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("city")]
|
[System.Text.Json.Serialization.JsonPropertyName("city")]
|
||||||
public string? City { get; set; }
|
public string? City { get; set; }
|
||||||
@@ -71,9 +75,10 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置用户的头像 URL。
|
/// 获取或设置用户的头像 URL。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("相关接口或字段于 2021-12-27 下线。")]
|
||||||
[Newtonsoft.Json.JsonProperty("headimgurl")]
|
[Newtonsoft.Json.JsonProperty("headimgurl")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("headimgurl")]
|
[System.Text.Json.Serialization.JsonPropertyName("headimgurl")]
|
||||||
public string HeadImageUrl { get; set; } = default!;
|
public string? HeadImageUrl { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置用户是否订阅该公众号标识。
|
/// 获取或设置用户是否订阅该公众号标识。
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||||
{
|
{
|
||||||
@@ -25,13 +24,15 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置用户的昵称。
|
/// 获取或设置用户的昵称。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("相关接口或字段于 2021-12-27 下线。")]
|
||||||
[Newtonsoft.Json.JsonProperty("nickname")]
|
[Newtonsoft.Json.JsonProperty("nickname")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("nickname")]
|
[System.Text.Json.Serialization.JsonPropertyName("nickname")]
|
||||||
public string Nickname { get; set; } = default!;
|
public string? Nickname { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置用户的性别。
|
/// 获取或设置用户的性别。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
|
||||||
[Newtonsoft.Json.JsonProperty("sex")]
|
[Newtonsoft.Json.JsonProperty("sex")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("sex")]
|
[System.Text.Json.Serialization.JsonPropertyName("sex")]
|
||||||
public int? Sex { get; set; }
|
public int? Sex { get; set; }
|
||||||
@@ -39,6 +40,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置用户所在国家。
|
/// 获取或设置用户所在国家。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
|
||||||
[Newtonsoft.Json.JsonProperty("country")]
|
[Newtonsoft.Json.JsonProperty("country")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("country")]
|
[System.Text.Json.Serialization.JsonPropertyName("country")]
|
||||||
public string? Country { get; set; }
|
public string? Country { get; set; }
|
||||||
@@ -46,6 +48,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置用户所在省份。
|
/// 获取或设置用户所在省份。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
|
||||||
[Newtonsoft.Json.JsonProperty("province")]
|
[Newtonsoft.Json.JsonProperty("province")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("province")]
|
[System.Text.Json.Serialization.JsonPropertyName("province")]
|
||||||
public string? Province { get; set; }
|
public string? Province { get; set; }
|
||||||
@@ -53,6 +56,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置用户所在城市。
|
/// 获取或设置用户所在城市。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
|
||||||
[Newtonsoft.Json.JsonProperty("city")]
|
[Newtonsoft.Json.JsonProperty("city")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("city")]
|
[System.Text.Json.Serialization.JsonPropertyName("city")]
|
||||||
public string? City { get; set; }
|
public string? City { get; set; }
|
||||||
@@ -67,9 +71,10 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置用户的头像 URL。
|
/// 获取或设置用户的头像 URL。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("相关接口或字段于 2021-12-27 下线。")]
|
||||||
[Newtonsoft.Json.JsonProperty("headimgurl")]
|
[Newtonsoft.Json.JsonProperty("headimgurl")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("headimgurl")]
|
[System.Text.Json.Serialization.JsonPropertyName("headimgurl")]
|
||||||
public string HeadImageUrl { get; set; } = default!;
|
public string? HeadImageUrl { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置用户是否订阅该公众号标识。
|
/// 获取或设置用户是否订阅该公众号标识。
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||||
{
|
{
|
||||||
@@ -32,6 +31,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置用户的性别。
|
/// 获取或设置用户的性别。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
|
||||||
[Newtonsoft.Json.JsonProperty("sex")]
|
[Newtonsoft.Json.JsonProperty("sex")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("sex")]
|
[System.Text.Json.Serialization.JsonPropertyName("sex")]
|
||||||
public int? Sex { get; set; }
|
public int? Sex { get; set; }
|
||||||
@@ -39,6 +39,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置用户所在国家。
|
/// 获取或设置用户所在国家。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
|
||||||
[Newtonsoft.Json.JsonProperty("country")]
|
[Newtonsoft.Json.JsonProperty("country")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("country")]
|
[System.Text.Json.Serialization.JsonPropertyName("country")]
|
||||||
public string? Country { get; set; }
|
public string? Country { get; set; }
|
||||||
@@ -46,6 +47,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置用户所在省份。
|
/// 获取或设置用户所在省份。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
|
||||||
[Newtonsoft.Json.JsonProperty("province")]
|
[Newtonsoft.Json.JsonProperty("province")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("province")]
|
[System.Text.Json.Serialization.JsonPropertyName("province")]
|
||||||
public string? Province { get; set; }
|
public string? Province { get; set; }
|
||||||
@@ -53,6 +55,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置用户所在城市。
|
/// 获取或设置用户所在城市。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
|
||||||
[Newtonsoft.Json.JsonProperty("city")]
|
[Newtonsoft.Json.JsonProperty("city")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("city")]
|
[System.Text.Json.Serialization.JsonPropertyName("city")]
|
||||||
public string? City { get; set; }
|
public string? City { get; set; }
|
||||||
|
|||||||
Reference in New Issue
Block a user