mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-24 04:53:46 +08:00
feat(wxapi): 新增视频号小店会员功能相关接口
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/vip/experiencevalue/set 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipExperienceValueSetRequest : WechatApiRequest, IInferable<ChannelsECVipExperienceValueSetRequest, ChannelsECVipExperienceValueSetResponse>
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Config
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class PayAmountRule
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置消费金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_value")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualNullableIntegerConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_value")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString | System.Text.Json.Serialization.JsonNumberHandling.WriteAsString)]
|
||||
public int? PayAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置消费门槛金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_amount_floor")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualNullableIntegerConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_amount_floor")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString | System.Text.Json.Serialization.JsonNumberHandling.WriteAsString)]
|
||||
public int? PayAmountFloor { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置获得的经验值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("gain_value")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualNullableIntegerConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("gain_value")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString | System.Text.Json.Serialization.JsonNumberHandling.WriteAsString)]
|
||||
public int? GainExperienceValue { get; set; }
|
||||
}
|
||||
|
||||
public class PayTimesRule
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置获得的经验值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("gain_value")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualNullableIntegerConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("gain_value")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString | System.Text.Json.Serialization.JsonNumberHandling.WriteAsString)]
|
||||
public int? GainExperienceValue { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置消费金额规则信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_amount_rule")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_amount_rule")]
|
||||
public Types.PayAmountRule? PayAmountRule { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置消费次数规则信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_time_rule")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_time_rule")]
|
||||
public Types.PayTimesRule? PayTimesRule { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置配置信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("conf")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("conf")]
|
||||
public Types.Config Config { get; set; } = new Types.Config();
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/vip/experiencevalue/set 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipExperienceValueSetResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,40 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/vip/grade/card/add 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipGradeCardAddRequest : WechatApiRequest, IInferable<ChannelsECVipGradeCardAddRequest, ChannelsECVipGradeCardAddResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置会员等级。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grade")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grade")]
|
||||
public int Grade { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员等级名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string? Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置经验值门槛。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("experience_value_threshold")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualIntegerConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("experience_value_threshold")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString | System.Text.Json.Serialization.JsonNumberHandling.WriteAsString)]
|
||||
public int ExperienceValueThreshold { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置经验值倍数(×10)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("experience_value_multiple")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualIntegerConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("experience_value_multiple")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString | System.Text.Json.Serialization.JsonNumberHandling.WriteAsString)]
|
||||
public int ExperienceValueMultiple { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/vip/grade/card/add 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipGradeCardAddResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /channels/ec/vip/grade/card/get 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipGradeCardGetRequest : WechatApiRequest, IInferable<ChannelsECVipGradeCardGetRequest, ChannelsECVipGradeCardGetResponse>
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,169 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /channels/ec/vip/grade/card/get 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipGradeCardGetResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Data
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class ExperienceValueConfig
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class PayAmountRule
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置消费金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_value")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_value")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public int? PayAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置消费门槛金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_amount_floor")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_amount_floor")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public int? PayAmountFloor { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置获得的经验值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("gain_value")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("gain_value")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public int? GainExperienceValue { get; set; }
|
||||
}
|
||||
|
||||
public class PayTimesRule
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置获得的经验值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("gain_value")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("gain_value")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public int? GainExperienceValue { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置消费金额规则信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_amount_rule")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_amount_rule")]
|
||||
public Types.PayAmountRule? PayAmountRule { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置消费次数规则信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_time_rule")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_time_rule")]
|
||||
public Types.PayTimesRule? PayTimesRule { get; set; }
|
||||
}
|
||||
|
||||
public class GradeCardConfig
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class GradeCard
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class AuditInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置审核状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置最新会员等级名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("latest_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("latest_name")]
|
||||
public string? LatestName { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员等级。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grade")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grade")]
|
||||
public int Grade { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员等级名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("valid_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("valid_name")]
|
||||
public string Name { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置经验值门槛。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("experience_value_threshold")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("experience_value_threshold")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public int ExperienceValueThreshold { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置经验值倍数(×10)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("experience_value_multiple")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("experience_value_multiple")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public int ExperienceValueMultiple { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audit_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audit_info")]
|
||||
public Types.AuditInfo? AuditInfo { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员等级列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grade_card_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grade_card_list")]
|
||||
public Types.GradeCard[] GradeCardList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置经验值配置信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("experience_value_conf")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("experience_value_conf")]
|
||||
public Types.ExperienceValueConfig? ExperienceValueConfig { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员等级配置信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("card_conf")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("card_conf")]
|
||||
public Types.GradeCardConfig? GradeCardConfig { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置返回数据。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("info")]
|
||||
public Types.Data Data { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/vip/grade/card/update 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipGradeCardUpdateRequest : WechatApiRequest, IInferable<ChannelsECVipGradeCardUpdateRequest, ChannelsECVipGradeCardUpdateResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置会员等级。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grade")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grade")]
|
||||
public int Grade { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员等级名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string? Name { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/vip/grade/card/update 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipGradeCardUpdateResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /channels/ec/vip/score/get 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipScoreGetRequest : WechatApiRequest, IInferable<ChannelsECVipScoreGetRequest, ChannelsECVipScoreGetResponse>
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,108 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /channels/ec/vip/score/get 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipScoreGetResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Config
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class GainRule
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class PayAmountRule
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置消费积分。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_value")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_value")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public int? PayValue { get; set; }
|
||||
}
|
||||
|
||||
public class PayTimesRule
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置获得积分。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("gain_value")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("gain_value")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public int? GainValue { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置消费金额规则信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_amount_rule")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_amount_rule")]
|
||||
public Types.PayAmountRule? PayAmountRule { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置消费次数规则信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_time_rule")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_time_rule")]
|
||||
public Types.PayTimesRule? PayTimesRule { get; set; }
|
||||
}
|
||||
|
||||
public class DeductRule
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("open_mgr")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("open_mgr")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
|
||||
public bool IsOpen { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置抵扣比例(单位:百分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ratio")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ratio")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public int? Ratio { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置抵扣上限。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("limit")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("limit")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public int? Limit { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置获取规则信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("gain_rule")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("gain_rule")]
|
||||
public Types.GainRule? GainRule { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置抵扣规则信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("deduct_rule")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("deduct_rule")]
|
||||
public Types.DeductRule? DeductRule { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置配置信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("conf")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("conf")]
|
||||
public Types.Config Config { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,112 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/vip/score/set 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipScoreSetRequest : WechatApiRequest, IInferable<ChannelsECVipScoreSetRequest, ChannelsECVipScoreSetResponse>
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Config
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class GainRule
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class PayAmountRule
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置消费积分。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_value")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualNullableIntegerConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_value")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString | System.Text.Json.Serialization.JsonNumberHandling.WriteAsString)]
|
||||
public int? PayValue { get; set; }
|
||||
}
|
||||
|
||||
public class PayTimesRule
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置获得积分。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("gain_value")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualNullableIntegerConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("gain_value")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString | System.Text.Json.Serialization.JsonNumberHandling.WriteAsString)]
|
||||
public int? GainValue { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置消费金额规则信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_amount_rule")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_amount_rule")]
|
||||
public Types.PayAmountRule? PayAmountRule { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置消费次数规则信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_time_rule")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_time_rule")]
|
||||
public Types.PayTimesRule? PayTimesRule { get; set; }
|
||||
}
|
||||
|
||||
public class DeductRule
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("open_mgr")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("open_mgr")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
|
||||
public bool IsOpen { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置抵扣比例(单位:百分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ratio")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualNullableIntegerConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ratio")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString | System.Text.Json.Serialization.JsonNumberHandling.WriteAsString)]
|
||||
public int? Ratio { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置抵扣上限。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("limit")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualNullableIntegerConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("limit")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString | System.Text.Json.Serialization.JsonNumberHandling.WriteAsString)]
|
||||
public int? Limit { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置获取规则信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("gain_rule")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("gain_rule")]
|
||||
public Types.GainRule? GainRule { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置抵扣规则信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("deduct_rule")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("deduct_rule")]
|
||||
public Types.DeductRule? DeductRule { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置配置信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("conf")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("conf")]
|
||||
public Types.Config Config { get; set; } = new Types.Config();
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/vip/score/set 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipScoreSetResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,24 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/vip/user/experiencevalue/update 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipUserExperienceValueUpdateRequest : WechatApiRequest, IInferable<ChannelsECVipUserExperienceValueUpdateRequest, ChannelsECVipUserExperienceValueUpdateResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置用户的 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string OpenId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置经验值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("experience_value")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualIntegerConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("experience_value")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString | System.Text.Json.Serialization.JsonNumberHandling.WriteAsString)]
|
||||
public int ExperienceValue { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/vip/user/experiencevalue/update 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipUserExperienceValueUpdateResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/vip/user/grade/update 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipUserGradeUpdateRequest : WechatApiRequest, IInferable<ChannelsECVipUserGradeUpdateRequest, ChannelsECVipUserGradeUpdateResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置用户的 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string OpenId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员等级。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grade")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grade")]
|
||||
public int Grade { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/vip/user/grade/update 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipUserGradeUpdateResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/vip/user/info/get 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipUserInfoGetRequest : WechatApiRequest, IInferable<ChannelsECVipUserInfoGetRequest, ChannelsECVipUserInfoGetResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置用户的 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string OpenId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否需要获取手机号码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("need_phone_number")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("need_phone_number")]
|
||||
public bool? RequirePhoneNumber { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/vip/user/info/get 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipUserInfoGetResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class VipInfo : ChannelsECVipUserListGetResponse.Types.VipInfo
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("info")]
|
||||
public Types.VipInfo VipInfo { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,31 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/vip/user/list/get 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipUserListGetRequest : WechatApiRequest, IInferable<ChannelsECVipUserListGetRequest, ChannelsECVipUserListGetResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置是否需要获取手机号码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("need_phone_number")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("need_phone_number")]
|
||||
public bool? RequirePhoneNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页页数。
|
||||
/// <para>默认值:1</para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("page_num")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("page_num")]
|
||||
public int Page { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页每页数量。
|
||||
/// <para>默认值:10</para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("page_size")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
|
||||
public int Limit { get; set; } = 10;
|
||||
}
|
||||
}
|
@@ -0,0 +1,87 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/vip/user/list/get 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipUserListGetResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class VipInfo
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class UserInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置手机号码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("phone_number")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("phone_number")]
|
||||
public string PhoneNumber { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class UserGradeInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置会员等级。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grade")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grade")]
|
||||
public int Grade { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置经验值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("experience_value")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("experience_value")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public int ExperienceValue { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户的 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string OpenId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户的 UnionId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("unionid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("unionid")]
|
||||
public string? UnionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_info")]
|
||||
public Types.UserInfo? UserInfo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户等级信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_grade_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_grade_info")]
|
||||
public Types.UserGradeInfo? UserGradeInfo { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("list")]
|
||||
public Types.VipInfo[] VipList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置总数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_num")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_num")]
|
||||
public int TotalCount { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/vip/user/score/decrease 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipUserScoreDecreaseRequest : ChannelsECVipUserScoreIncreaseRequest, IInferable<ChannelsECVipUserScoreDecreaseRequest, ChannelsECVipUserScoreDecreaseResponse>
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/vip/user/score/decrease 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipUserScoreDecreaseResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,31 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/vip/user/score/flowrecord/get 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipUserScoreFlowRecordGetRequest : WechatApiRequest, IInferable<ChannelsECVipUserScoreFlowRecordGetRequest, ChannelsECVipUserScoreFlowRecordGetResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置用户的 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string OpenId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页页数。
|
||||
/// <para>默认值:1</para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("page_num")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("page_num")]
|
||||
public int Page { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页每页数量。
|
||||
/// <para>默认值:10</para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("page_size")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
|
||||
public int Limit { get; set; } = 10;
|
||||
}
|
||||
}
|
@@ -0,0 +1,50 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/vip/user/score/flowrecord/get 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipUserScoreFlowRecordGetResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class FlowRecord
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置用户积分。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("score")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("score")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public int Score { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置来源。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("source")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("source")]
|
||||
public int Source { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置备注。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("remark")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("remark")]
|
||||
public string? Remark { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置积分流水列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("list")]
|
||||
public Types.FlowRecord[] FlowRecordList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置总数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_num")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_num")]
|
||||
public int TotalCount { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/vip/user/score/get 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipUserScoreGetRequest : WechatApiRequest, IInferable<ChannelsECVipUserScoreGetRequest, ChannelsECVipUserScoreGetResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置用户的 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string OpenId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/vip/user/score/get 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipUserScoreGetResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class UserInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置用户积分。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("score")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("score")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public int Score { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("info")]
|
||||
public Types.UserInfo UserInfo { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,37 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/vip/user/score/increase 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipUserScoreIncreaseRequest : WechatApiRequest, IInferable<ChannelsECVipUserScoreIncreaseRequest, ChannelsECVipUserScoreIncreaseResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置用户的 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string OpenId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户积分。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("score")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("score")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString | System.Text.Json.Serialization.JsonNumberHandling.WriteAsString)]
|
||||
public int Score { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置请求唯一 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("request_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("request_id")]
|
||||
public string RequestId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置备注。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("remark")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("remark")]
|
||||
public string? Remark { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/vip/user/score/increase 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECVipUserScoreIncreaseResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user