account.go 827 B

12345678910111213141516171819202122232425262728293031323334
  1. package account
  2. import "github.com/silenceper/wechat/v2/openplatform/context"
  3. //Account 开放平台张哈管理
  4. //TODO 实现方法
  5. type Account struct {
  6. *context.Context
  7. }
  8. //NewAccount new
  9. func NewAccount(ctx *context.Context) *Account {
  10. return &Account{ctx}
  11. }
  12. //Create 创建开放平台帐号并绑定公众号/小程序
  13. func (account *Account) Create(appID string) (string, error) {
  14. return "", nil
  15. }
  16. //Bind 将公众号/小程序绑定到开放平台帐号下
  17. func (account *Account) Bind(appID string) error {
  18. return nil
  19. }
  20. //Unbind 将公众号/小程序从开放平台帐号下解绑
  21. func (account *Account) Unbind(appID string, openAppID string) error {
  22. return nil
  23. }
  24. //Get 获取公众号/小程序所绑定的开放平台帐号
  25. func (account *Account) Get(appID string) (string, error) {
  26. return "", nil
  27. }