Documentation ¶
Index ¶
- type MiniProgram
- func (miniProgram *MiniProgram) GetAccessToken() (string, error)
- func (miniProgram *MiniProgram) GetBasic() *basic.Basic
- func (miniProgram *MiniProgram) GetComponent() *component.Component
- func (miniProgram *MiniProgram) GetURLLink() *urllink.URLLink
- func (miniProgram *MiniProgram) SetAuthorizerRefreshToken(authorizerRefreshToken string) *MiniProgram
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MiniProgram ¶
type MiniProgram struct { AppID string // contains filtered or unexported fields }
MiniProgram 代小程序实现业务
func NewMiniProgram ¶
func NewMiniProgram(opCtx *openContext.Context, appID string) *MiniProgram
NewMiniProgram 实例化
func (*MiniProgram) GetAccessToken ¶ added in v2.1.4
func (miniProgram *MiniProgram) GetAccessToken() (string, error)
GetAccessToken 获取ak
func (*MiniProgram) GetBasic ¶
func (miniProgram *MiniProgram) GetBasic() *basic.Basic
GetBasic 基础信息设置
func (*MiniProgram) GetComponent ¶
func (miniProgram *MiniProgram) GetComponent() *component.Component
GetComponent get component 快速注册小程序相关
func (*MiniProgram) GetURLLink ¶ added in v2.1.4
func (miniProgram *MiniProgram) GetURLLink() *urllink.URLLink
GetURLLink 小程序URL Link接口 调用前需确认已调用 SetAuthorizerRefreshToken 避免由于缓存中 authorizer_access_token 过期执行中断
func (*MiniProgram) SetAuthorizerRefreshToken ¶ added in v2.1.4
func (miniProgram *MiniProgram) SetAuthorizerRefreshToken(authorizerRefreshToken string) *MiniProgram
SetAuthorizerRefreshToken 设置代执操作业务授权账号authorizer_refresh_token
Click to show internal directories.
Click to hide internal directories.