feat(wxapi): 随官方更新用户信息相关接口模型

This commit is contained in:
Fu Diwei 2021-10-07 12:21:57 +08:00
parent 93602991ef
commit 2ae6c5877b
3 changed files with 48 additions and 48 deletions

View File

@ -38,28 +38,28 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("sex")]
[System.Text.Json.Serialization.JsonPropertyName("sex")]
public int Sex { get; set; }
/// <summary>
/// 获取或设置用户所在城市。
/// </summary>
[Newtonsoft.Json.JsonProperty("city")]
[System.Text.Json.Serialization.JsonPropertyName("city")]
public string City { get; set; } = default!;
/// <summary>
/// 获取或设置用户所在省份。
/// </summary>
[Newtonsoft.Json.JsonProperty("province")]
[System.Text.Json.Serialization.JsonPropertyName("province")]
public string Province { get; set; } = default!;
public int? Sex { get; set; }
/// <summary>
/// 获取或设置用户所在国家。
/// </summary>
[Newtonsoft.Json.JsonProperty("country")]
[System.Text.Json.Serialization.JsonPropertyName("country")]
public string Country { get; set; } = default!;
public string? Country { get; set; }
/// <summary>
/// 获取或设置用户所在省份。
/// </summary>
[Newtonsoft.Json.JsonProperty("province")]
[System.Text.Json.Serialization.JsonPropertyName("province")]
public string? Province { get; set; }
/// <summary>
/// 获取或设置用户所在城市。
/// </summary>
[Newtonsoft.Json.JsonProperty("city")]
[System.Text.Json.Serialization.JsonPropertyName("city")]
public string? City { get; set; }
/// <summary>
/// 获取或设置用户的语言。

View File

@ -34,28 +34,28 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("sex")]
[System.Text.Json.Serialization.JsonPropertyName("sex")]
public int Sex { get; set; }
/// <summary>
/// 获取或设置用户所在城市。
/// </summary>
[Newtonsoft.Json.JsonProperty("city")]
[System.Text.Json.Serialization.JsonPropertyName("city")]
public string City { get; set; } = default!;
/// <summary>
/// 获取或设置用户所在省份。
/// </summary>
[Newtonsoft.Json.JsonProperty("province")]
[System.Text.Json.Serialization.JsonPropertyName("province")]
public string Province { get; set; } = default!;
public int? Sex { get; set; }
/// <summary>
/// 获取或设置用户所在国家。
/// </summary>
[Newtonsoft.Json.JsonProperty("country")]
[System.Text.Json.Serialization.JsonPropertyName("country")]
public string Country { get; set; } = default!;
public string? Country { get; set; }
/// <summary>
/// 获取或设置用户所在省份。
/// </summary>
[Newtonsoft.Json.JsonProperty("province")]
[System.Text.Json.Serialization.JsonPropertyName("province")]
public string? Province { get; set; }
/// <summary>
/// 获取或设置用户所在城市。
/// </summary>
[Newtonsoft.Json.JsonProperty("city")]
[System.Text.Json.Serialization.JsonPropertyName("city")]
public string? City { get; set; }
/// <summary>
/// 获取或设置用户的语言。

View File

@ -34,28 +34,28 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("sex")]
[System.Text.Json.Serialization.JsonPropertyName("sex")]
public int Sex { get; set; }
/// <summary>
/// 获取或设置用户所在城市。
/// </summary>
[Newtonsoft.Json.JsonProperty("city")]
[System.Text.Json.Serialization.JsonPropertyName("city")]
public string City { get; set; } = default!;
/// <summary>
/// 获取或设置用户所在省份。
/// </summary>
[Newtonsoft.Json.JsonProperty("province")]
[System.Text.Json.Serialization.JsonPropertyName("province")]
public string Province { get; set; } = default!;
public int? Sex { get; set; }
/// <summary>
/// 获取或设置用户所在国家。
/// </summary>
[Newtonsoft.Json.JsonProperty("country")]
[System.Text.Json.Serialization.JsonPropertyName("country")]
public string Country { get; set; } = default!;
public string? Country { get; set; }
/// <summary>
/// 获取或设置用户所在省份。
/// </summary>
[Newtonsoft.Json.JsonProperty("province")]
[System.Text.Json.Serialization.JsonPropertyName("province")]
public string? Province { get; set; }
/// <summary>
/// 获取或设置用户所在城市。
/// </summary>
[Newtonsoft.Json.JsonProperty("city")]
[System.Text.Json.Serialization.JsonPropertyName("city")]
public string? City { get; set; }
/// <summary>
/// 获取或设置用户的头像 URL。