Documentation ¶ Index ¶ type Account func NewAccount(ctx *context.Context) *Account func (account *Account) Bind(appID string) error func (account *Account) Create(appID string) (string, error) func (account *Account) Get(appID string) (string, error) func (account *Account) Unbind(appID string, openAppID string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Account ¶ type Account struct { *context.Context } Account 开放平台张哈管理 TODO 实现方法 func NewAccount ¶ func NewAccount(ctx *context.Context) *Account NewAccount new func (*Account) Bind ¶ func (account *Account) Bind(appID string) error Bind 将公众号/小程序绑定到开放平台帐号下 func (*Account) Create ¶ func (account *Account) Create(appID string) (string, error) Create 创建开放平台帐号并绑定公众号/小程序 func (*Account) Get ¶ func (account *Account) Get(appID string) (string, error) Get 获取公众号/小程序所绑定的开放平台帐号 func (*Account) Unbind ¶ func (account *Account) Unbind(appID string, openAppID string) error Unbind 将公众号/小程序从开放平台帐号下解绑 Source Files ¶ View all Source files account.go Click to show internal directories. Click to hide internal directories.