Versions in this module Expand all Collapse all v1 v1.0.2 May 8, 2026 Changes in this version + var IdTypeModuleApiId = module_id.IdType("module_api:id") + func RegisterPlatform(platform *Platform) + type GetAccessTokenFunc = func(httpService httpx.IService, appId, appSecret string, extends map[string]any) (res *OauthInfo, err error) + type IGenId interface + GenId func() (res int64) + type IOauthAccessTokenCache interface + Add func(data *OauthAccessToken) + Get func(name string) (res *OauthAccessToken) + GetIfPresent func(name string) (res *OauthAccessToken) + type IOauthAccessTokenService interface + GetAccessToken func(name string) (res string, err error) + type IOauthAccessTokenStorage interface + DeleteByName func(name string) (res int64, err error) + GetByName func(name string) (res *OauthAccessToken, err error) + Insert func(in *OauthAccessToken) (res int64, err error) + Page func(in *OauthAccessToken, pageNo int64, pageSize int64) (res []*OauthAccessToken, err error) + Query func(in *OauthAccessToken) (res []*OauthAccessToken, err error) + Update func(in *OauthAccessToken) (res int64, err error) + UpdateAccessToken func(name string, accessToken string, expiresIn int64, expiresAt int64) (res int64, err error) + type OauthAccessToken struct + AccessToken string + AppId string + AppSecret string + CreatedAt int64 + ExpiresAt int64 + ExpiresIn int64 + Extends string + Name string + OauthUrl string + PlatformType string + Status int + UpdatedAt int64 + func (this_ *OauthAccessToken) GetPrimaryKey() []string + func (this_ *OauthAccessToken) GetTableName() string + type OauthInfo struct + AccessToken string + ExpiresIn int64 + func GetAccessToken(platformType string, httpService httpx.IService, info *OauthAccessToken) (res *OauthInfo, err error) + type Platform struct + Type string + func GetPlatform(platformType string) *Platform + func (this_ *Platform) SetGetAccessToken(getAccessToken GetAccessTokenFunc) *Platform