using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Senparc.Weixin.Entities
{
///
/// SenparcWeixinSetting基础接口
///
public interface ISenparcWeixinSettingBase
{
///
/// 唯一标识
///
string ItemKey { get; set; }
}
///
/// 公众号
///
public interface ISenparcWeixinSettingForMP : ISenparcWeixinSettingBase
{
///
/// 公众号Token
///
string Token { get; set; }
///
/// 公众号消息加密Key
///
string EncodingAESKey { get; set; }
///
/// 公众号AppId
///
string WeixinAppId { get; set; }
///
/// 公众号AppSecret
///
string WeixinAppSecret { get; set; }
}
///
/// 小程序
///
public interface ISenparcWeixinSettingForWxOpen : ISenparcWeixinSettingBase
{
///
/// 小程序AppId
///
string WxOpenAppId { get; set; }
///
/// 小程序AppSecret
///
string WxOpenAppSecret { get; set; }
///
/// 小程序 Token
///
string WxOpenToken { get; set; }
///
/// 小程序EncodingAESKey
///
string WxOpenEncodingAESKey { get; set; }
}
///
/// 企业号
///
public interface ISenparcWeixinSettingForWork : ISenparcWeixinSettingBase
{
///
/// 企业微信CorpId
///
string WeixinCorpId { get; set; }
///
/// 企业微信CorpSecret
///
string WeixinCorpSecret { get; set; }
}
///
/// 微信支付(旧版)
///
public interface ISenparcWeixinSettingForOldTenpay : ISenparcWeixinSettingBase
{
///
/// WeixinPay_PartnerId(微信支付V2)
///
string WeixinPay_PartnerId { get; set; }
///
/// WeixinPay_Key(微信支付V2)
///
string WeixinPay_Key { get; set; }
///
/// WeixinPay_AppId(微信支付V2)
///
string WeixinPay_AppId { get; set; }
///
/// WeixinPay_AppKey(微信支付V2)
///
string WeixinPay_AppKey { get; set; }
///
/// WeixinPay_TenpayNotify(微信支付V2)
///
string WeixinPay_TenpayNotify { get; set; }
}
///
/// 微信支付V3
///
public interface ISenparcWeixinSettingForTenpayV3 : ISenparcWeixinSettingBase
{
///
/// MchId(商户ID)
///
string TenPayV3_MchId { get; set; }
///
/// 子商户 MchId,没有可留空
///
string TenPayV3_SubMchId { get; set; }
///
/// MchKey
///
string TenPayV3_Key { get; set; }
///
/// 微信支付AppId
///
string TenPayV3_AppId { get; set; }
///
/// 微信支付AppKey
///
string TenPayV3_AppSecret { get; set; }
///
/// 微信支付TenpayNotify
///
string TenPayV3_TenpayNotify { get; set; }
///
/// 小程序微信支付WxOpenTenpayNotify
///
string TenPayV3_WxOpenTenpayNotify { get; set; }
}
///
/// 开放平台
///
public interface ISenparcWeixinSettingForOpen : ISenparcWeixinSettingBase
{
///
/// Component_Appid
///
string Component_Appid { get; set; }
///
/// Component_Secret
///
string Component_Secret { get; set; }
///
/// 全局统一的 Component_Token(非必须)
///
string Component_Token { get; set; }
///
/// 全局统一的 Component_EncodingAESKey(非必须)
///
string Component_EncodingAESKey { get; set; }
}
///
/// 扩展
///
public interface ISenparcWeixinSettingForExtension : ISenparcWeixinSettingBase
{
string AgentUrl { get; set; }
string AgentToken { get; set; }
string SenparcWechatAgentKey { get; set; }
}
}