namespace Zncy.CloudCar.WeChat.Service.Models
{
/// 接收加密信息统一基类(同时也支持非加密信息)
public abstract class EncryptPostModel : IEncryptPostModel
{
/// 指定当前服务账号的唯一领域定义(主要为 APM 服务),例如 AppId
public abstract string DomainId { get; set; }
/// Signature
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“Signature”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
public string Signature { get; set; }
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“Signature”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
/// Msg_Signature
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“Msg_Signature”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
public string Msg_Signature { get; set; }
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“Msg_Signature”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
/// Timestamp
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“Timestamp”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
public string Timestamp { get; set; }
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“Timestamp”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
/// Nonce
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“Nonce”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
public string Nonce { get; set; }
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“Nonce”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
/// Token
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“Token”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
public string Token { get; set; }
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“Token”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
/// EncodingAESKey
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“EncodingAESKey”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
public string EncodingAESKey { get; set; }
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“EncodingAESKey”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
/// 设置服务器内部保密信息
///
///
public virtual void SetSecretInfo(string token, string encodingAESKey)
{
Token = token;
EncodingAESKey = encodingAESKey;
}
}
}