SenparcWeixinSettingItem.Interfaces.cs 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Senparc.Weixin.Entities
  7. {
  8. /// <summary>
  9. /// SenparcWeixinSetting基础接口
  10. /// </summary>
  11. public interface ISenparcWeixinSettingBase
  12. {
  13. /// <summary>
  14. /// 唯一标识
  15. /// </summary>
  16. string ItemKey { get; set; }
  17. }
  18. /// <summary>
  19. /// 公众号
  20. /// </summary>
  21. public interface ISenparcWeixinSettingForMP : ISenparcWeixinSettingBase
  22. {
  23. /// <summary>
  24. /// 公众号Token
  25. /// </summary>
  26. string Token { get; set; }
  27. /// <summary>
  28. /// 公众号消息加密Key
  29. /// </summary>
  30. string EncodingAESKey { get; set; }
  31. /// <summary>
  32. /// 公众号AppId
  33. /// </summary>
  34. string WeixinAppId { get; set; }
  35. /// <summary>
  36. /// 公众号AppSecret
  37. /// </summary>
  38. string WeixinAppSecret { get; set; }
  39. }
  40. /// <summary>
  41. /// 小程序
  42. /// </summary>
  43. public interface ISenparcWeixinSettingForWxOpen : ISenparcWeixinSettingBase
  44. {
  45. /// <summary>
  46. /// 小程序AppId
  47. /// </summary>
  48. string WxOpenAppId { get; set; }
  49. /// <summary>
  50. /// 小程序AppSecret
  51. /// </summary>
  52. string WxOpenAppSecret { get; set; }
  53. /// <summary>
  54. /// 小程序 Token
  55. /// </summary>
  56. string WxOpenToken { get; set; }
  57. /// <summary>
  58. /// 小程序EncodingAESKey
  59. /// </summary>
  60. string WxOpenEncodingAESKey { get; set; }
  61. }
  62. /// <summary>
  63. /// 企业号
  64. /// </summary>
  65. public interface ISenparcWeixinSettingForWork : ISenparcWeixinSettingBase
  66. {
  67. /// <summary>
  68. /// 企业微信CorpId
  69. /// </summary>
  70. string WeixinCorpId { get; set; }
  71. /// <summary>
  72. /// 企业微信CorpSecret
  73. /// </summary>
  74. string WeixinCorpSecret { get; set; }
  75. }
  76. /// <summary>
  77. /// 微信支付(旧版)
  78. /// </summary>
  79. public interface ISenparcWeixinSettingForOldTenpay : ISenparcWeixinSettingBase
  80. {
  81. /// <summary>
  82. /// WeixinPay_PartnerId(微信支付V2)
  83. /// </summary>
  84. string WeixinPay_PartnerId { get; set; }
  85. /// <summary>
  86. /// WeixinPay_Key(微信支付V2)
  87. /// </summary>
  88. string WeixinPay_Key { get; set; }
  89. /// <summary>
  90. /// WeixinPay_AppId(微信支付V2)
  91. /// </summary>
  92. string WeixinPay_AppId { get; set; }
  93. /// <summary>
  94. /// WeixinPay_AppKey(微信支付V2)
  95. /// </summary>
  96. string WeixinPay_AppKey { get; set; }
  97. /// <summary>
  98. /// WeixinPay_TenpayNotify(微信支付V2)
  99. /// </summary>
  100. string WeixinPay_TenpayNotify { get; set; }
  101. }
  102. /// <summary>
  103. /// 微信支付V3
  104. /// </summary>
  105. public interface ISenparcWeixinSettingForTenpayV3 : ISenparcWeixinSettingBase
  106. {
  107. /// <summary>
  108. /// MchId(商户ID)
  109. /// </summary>
  110. string TenPayV3_MchId { get; set; }
  111. /// <summary>
  112. /// 子商户 MchId,没有可留空
  113. /// </summary>
  114. string TenPayV3_SubMchId { get; set; }
  115. /// <summary>
  116. /// MchKey
  117. /// </summary>
  118. string TenPayV3_Key { get; set; }
  119. /// <summary>
  120. /// 微信支付AppId
  121. /// </summary>
  122. string TenPayV3_AppId { get; set; }
  123. /// <summary>
  124. /// 微信支付AppKey
  125. /// </summary>
  126. string TenPayV3_AppSecret { get; set; }
  127. /// <summary>
  128. /// 微信支付TenpayNotify
  129. /// </summary>
  130. string TenPayV3_TenpayNotify { get; set; }
  131. /// <summary>
  132. /// 小程序微信支付WxOpenTenpayNotify
  133. /// </summary>
  134. string TenPayV3_WxOpenTenpayNotify { get; set; }
  135. }
  136. /// <summary>
  137. /// 开放平台
  138. /// </summary>
  139. public interface ISenparcWeixinSettingForOpen : ISenparcWeixinSettingBase
  140. {
  141. /// <summary>
  142. /// Component_Appid
  143. /// </summary>
  144. string Component_Appid { get; set; }
  145. /// <summary>
  146. /// Component_Secret
  147. /// </summary>
  148. string Component_Secret { get; set; }
  149. /// <summary>
  150. /// 全局统一的 Component_Token(非必须)
  151. /// </summary>
  152. string Component_Token { get; set; }
  153. /// <summary>
  154. /// 全局统一的 Component_EncodingAESKey(非必须)
  155. /// </summary>
  156. string Component_EncodingAESKey { get; set; }
  157. }
  158. /// <summary>
  159. /// 扩展
  160. /// </summary>
  161. public interface ISenparcWeixinSettingForExtension : ISenparcWeixinSettingBase
  162. {
  163. string AgentUrl { get; set; }
  164. string AgentToken { get; set; }
  165. string SenparcWechatAgentKey { get; set; }
  166. }
  167. }