You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-library/service/wechatopen/get.go

61 lines
1.7 KiB

package wechatopen
import (
"context"
"github.com/dtapps/go-library/utils/golog"
)
2 years ago
// GetComponentAppId 获取第三方平台appid
func (c *Client) GetComponentAppId(ctx context.Context) string {
return c.config.componentAppId
}
2 years ago
// GetComponentAppSecret 获取第三方平台app_secret
func (c *Client) GetComponentAppSecret(ctx context.Context) string {
return c.config.componentAppSecret
}
2 years ago
// GetMessageToken 获取第三方平台消息令牌
func (c *Client) GetMessageToken(ctx context.Context) string {
return c.config.messageToken
}
2 years ago
// GetMessageKey 获取第三方平台消息密钥
func (c *Client) GetMessageKey(ctx context.Context) string {
return c.config.messageKey
}
2 years ago
// GetComponentAccessToken 获取第三方平台access_token
func (c *Client) GetComponentAccessToken(ctx context.Context) string {
return c.config.componentAccessToken
2 years ago
}
// GetComponentVerifyTicket 获取第三方平台推送ticket
func (c *Client) GetComponentVerifyTicket(ctx context.Context) string {
return c.config.componentVerifyTicket
2 years ago
}
// GetPreAuthCode 获取第三方平台预授权码
func (c *Client) GetPreAuthCode(ctx context.Context) string {
return c.config.preAuthCode
2 years ago
}
// GetAuthorizerAppid 获取授权方appid
func (c *Client) GetAuthorizerAppid(ctx context.Context) string {
return c.config.authorizerAppid
2 years ago
}
// GetAuthorizerAccessToken 获取授权方access_token
func (c *Client) GetAuthorizerAccessToken(ctx context.Context) string {
return c.config.authorizerAccessToken
2 years ago
}
// GetAuthorizerRefreshToken 获取授权方refresh_token
func (c *Client) GetAuthorizerRefreshToken(ctx context.Context) string {
return c.config.authorizerRefreshToken
2 years ago
}
func (c *Client) GetLog(ctx context.Context) *golog.ApiClient {
2 years ago
return c.log.client
}