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

91 lines
2.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
// NewGetComponentAppId 获取第三方平台appid
func (c *Client) NewGetComponentAppId(ctx context.Context) string {
return c.config.componentAppId
}
// GetComponentAppSecret 获取第三方平台app_secret
func (c *Client) GetComponentAppSecret(ctx context.Context) string {
return c.config.componentAppSecret
}
2 years ago
// NewGetComponentAppSecret 获取第三方平台app_secret
func (c *Client) NewGetComponentAppSecret(ctx context.Context) string {
return c.config.componentAppSecret
}
// GetMessageToken 获取第三方平台消息令牌
func (c *Client) GetMessageToken(ctx context.Context) string {
return c.config.messageToken
}
2 years ago
// NewGetMessageToken 获取第三方平台消息令牌
func (c *Client) NewGetMessageToken(ctx context.Context) string {
return c.config.messageToken
}
// GetMessageKey 获取第三方平台消息密钥
func (c *Client) GetMessageKey(ctx context.Context) string {
return c.config.messageKey
}
2 years ago
// NewGetMessageKey 获取第三方平台消息密钥
func (c *Client) NewGetMessageKey(ctx context.Context) string {
return c.config.messageKey
}
// NewGetComponentAccessToken 获取第三方平台access_token
func (c *Client) NewGetComponentAccessToken(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
}
// NewGetComponentVerifyTicket 获取第三方平台推送ticket
func (c *Client) NewGetComponentVerifyTicket(ctx context.Context) string {
return c.config.componentVerifyTicket
}
// NewGetPreAuthCode 获取第三方平台预授权码
func (c *Client) NewGetPreAuthCode(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
}
// NewGetAuthorizerAppid 获取授权方appid
func (c *Client) NewGetAuthorizerAppid(ctx context.Context) string {
return c.config.authorizerAppid
}
// NewGetAuthorizerAccessToken 获取授权方access_token
func (c *Client) NewGetAuthorizerAccessToken(ctx context.Context) string {
return c.config.authorizerAccessToken
2 years ago
}
// NewGetAuthorizerRefreshToken 获取授权方refresh_token
func (c *Client) NewGetAuthorizerRefreshToken(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
}