Documentation ¶
Index ¶
- type IIntegration
- type Integration
- func (i Integration) GetAppAccessToken(ctx context.Context, apiName string) (*structs.AppAccessToken, error)
- func (i Integration) GetDefaultAppAccessToken(ctx context.Context) (*structs.AppAccessToken, error)
- func (i Integration) GetDefaultTenantAccessToken(ctx context.Context) (*structs.TenantAccessToken, error)
- func (i Integration) GetTenantAccessToken(ctx context.Context, apiName string) (*structs.TenantAccessToken, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IIntegration ¶
type IIntegration interface { // GetTenantAccessToken 获取飞书集成 tenant access token // @param apiName 飞书集成的 API Name GetTenantAccessToken(ctx context.Context, apiName string) (*structs.TenantAccessToken, error) // GetAppAccessToken 获取飞书集成 app access token // @param apiName 飞书集成的 API Name GetAppAccessToken(ctx context.Context, apiName string) (*structs.AppAccessToken, error) // GetDefaultTenantAccessToken 获取默认飞书集成 tenant access token GetDefaultTenantAccessToken(ctx context.Context) (*structs.TenantAccessToken, error) // GetDefaultAppAccessToken 获取默认飞书集成 app access token GetDefaultAppAccessToken(ctx context.Context) (*structs.AppAccessToken, error) }
func NewIntegration ¶
func NewIntegration(s *structs.AppCtx) IIntegration
type Integration ¶
type Integration struct {
// contains filtered or unexported fields
}
func (Integration) GetAppAccessToken ¶
func (i Integration) GetAppAccessToken(ctx context.Context, apiName string) (*structs.AppAccessToken, error)
func (Integration) GetDefaultAppAccessToken ¶
func (i Integration) GetDefaultAppAccessToken(ctx context.Context) (*structs.AppAccessToken, error)
func (Integration) GetDefaultTenantAccessToken ¶
func (i Integration) GetDefaultTenantAccessToken(ctx context.Context) (*structs.TenantAccessToken, error)
func (Integration) GetTenantAccessToken ¶
func (i Integration) GetTenantAccessToken(ctx context.Context, apiName string) (*structs.TenantAccessToken, error)
Click to show internal directories.
Click to hide internal directories.