Documentation ¶
Index ¶
- func MapUserConfig(userConfig *UserConfig) (*object.HashMap, error)
- type Http
- type Log
- type OAuth
- type OpenWork
- func (app *OpenWork) GetAccessToken() *kernel.AccessToken
- func (app *OpenWork) GetComponent(name string) interface{}
- func (app *OpenWork) GetConfig() *kernel.Config
- func (app *OpenWork) GetContainer() *kernel.ServiceContainer
- func (app *OpenWork) ProviderClient(corpID string, permanentCode string, externConfig *work.UserConfig) (*work.Work, error)
- func (app *OpenWork) ThirdpartyClient(corpID string, permanentCode string, externConfig *work.UserConfig) (*work.Work, error)
- type OpenWorkProvider
- type UserConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapUserConfig ¶
func MapUserConfig(userConfig *UserConfig) (*object.HashMap, error)
Types ¶
type OpenWork ¶
type OpenWork struct { *kernel.ServiceContainer Base *base.Client Server *server.Guard User *user.Client ExternalContact *externalcontact.Client Suite *suit.Client SuiteAccessToken *suit.AccessToken SuiteTicket *suit.SuiteTicket Encryptor *kernel.Encryptor Config *kernel.Config Logger *logger.Logger }
func NewOpenWork ¶
func NewOpenWork(config *UserConfig) (*OpenWork, error)
func (*OpenWork) GetAccessToken ¶
func (app *OpenWork) GetAccessToken() *kernel.AccessToken
func (*OpenWork) GetComponent ¶
func (*OpenWork) GetContainer ¶
func (app *OpenWork) GetContainer() *kernel.ServiceContainer
func (*OpenWork) ProviderClient ¶ added in v3.2.7
func (app *OpenWork) ProviderClient(corpID string, permanentCode string, externConfig *work.UserConfig) (*work.Work, error)
ProviderWork 服务商代开发用
func (*OpenWork) ThirdpartyClient ¶ added in v3.2.7
func (app *OpenWork) ThirdpartyClient(corpID string, permanentCode string, externConfig *work.UserConfig) (*work.Work, error)
ThirdpartyWork 第三方应用
type OpenWorkProvider ¶ added in v3.2.7
type OpenWorkProvider struct { *kernel.ServiceContainer Base *base.Client Config *kernel.Config Logger *logger.Logger AccessToken *provider.AccessToken Client *provider.Client License *license.Client }
func NewOpenWorkProvider ¶ added in v3.2.7
func NewOpenWorkProvider(config *UserConfig) (*OpenWorkProvider, error)
func (*OpenWorkProvider) GetAccessToken ¶ added in v3.2.7
func (app *OpenWorkProvider) GetAccessToken() *kernel.AccessToken
func (*OpenWorkProvider) GetComponent ¶ added in v3.2.7
func (app *OpenWorkProvider) GetComponent(name string) interface{}
func (*OpenWorkProvider) GetConfig ¶ added in v3.2.7
func (app *OpenWorkProvider) GetConfig() *kernel.Config
func (*OpenWorkProvider) GetContainer ¶ added in v3.2.7
func (app *OpenWorkProvider) GetContainer() *kernel.ServiceContainer
type UserConfig ¶
Click to show internal directories.
Click to hide internal directories.