Documentation
¶
Index ¶
- Variables
- type ChallengeDto
- type Controller
- type OAuthDto
- type Service
- func (x *Service) Decrypt(encrypt string, key string) (string, error)
- func (x *Service) GetTenantAccessToken(ctx context.Context) (token string, err error)
- func (x *Service) GetUserAccessToken(ctx context.Context, code string) (_ model.FeishuUserData, err error)
- func (x *Service) Link(ctx context.Context, userId string, data model.FeishuUserData) (_ *mongo.UpdateResult, err error)
- func (x *Service) Login(ctx context.Context, openId string, metadata *model.LoginMetadata) (ts string, err error)
- type StateDto
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ChallengeDto ¶
type ChallengeDto struct {
Encrypt string `json:"encrypt,required"`
}
type Controller ¶
type Controller struct {
IndexService *index.Service
FeishuService *Service
Values *common.Values
Passport *passport.Passport
}
func (*Controller) Challenge ¶
func (x *Controller) Challenge(ctx context.Context, c *app.RequestContext)
Challenge 事件订阅
func (*Controller) OAuth ¶
func (x *Controller) OAuth(ctx context.Context, c *app.RequestContext)
OAuth 第三方登录与关联
type Service ¶
type Service struct {
*common.Inject
SessionsService *sessions.Service
Locker *locker.Locker
Passport *passport.Passport
}
func (*Service) GetTenantAccessToken ¶
GetTenantAccessToken 获取 TenantAccessToken
func (*Service) GetUserAccessToken ¶
func (x *Service) GetUserAccessToken(ctx context.Context, code string) (_ model.FeishuUserData, err error)
GetUserAccessToken 获取 AccessToken
Click to show internal directories.
Click to hide internal directories.