Documentation
¶
Index ¶
- func NewEmail(req *entity.OAuthChannel) repository.OAuthor
- func NewWXOfficialAccount(req *entity.OAuthChannel) repository.OAuthor
- func NewYiBan(req *entity.OAuthChannel) repository.OAuthor
- type Email
- func (e *Email) GetOAuthInfo(_ core.Context, req *types.GetOAuthInfoRequest) (*types.GetOAuthInfoReply, error)
- func (e *Email) GetOAuthToken(ctx core.Context, req *types.GetOAuthTokenRequest) (*types.GetOAuthTokenReply, error)
- func (e *Email) OAuthHandler(ctx core.Context, req *types.OAuthHandlerRequest) (*types.OAuthHandlerReply, error)
- func (e *Email) Send(ctx core.Context, email string, req *captcha.GetCaptchaResponse) error
- type OAuth
- func (oa OAuth) CreateOAuth(ctx core.Context, oauth *entity.OAuth) (uint32, error)
- func (r OAuth) CreateOAuthChannel(ctx core.Context, channel *entity.OAuthChannel) (uint32, error)
- func (oa OAuth) DeleteOAuth(ctx core.Context, userId uint32, channelId uint32) error
- func (r OAuth) DeleteOAuthChannel(ctx core.Context, id uint32) error
- func (oa OAuth) GetOAuthByCO(ctx core.Context, cid uint32, oid string) (*entity.OAuth, error)
- func (r OAuth) GetOAuthChannel(ctx core.Context, id uint32) (*entity.OAuthChannel, error)
- func (r OAuth) GetOAuthChannelByKeyword(ctx core.Context, keyword string) (*entity.OAuthChannel, error)
- func (oa OAuth) GetOAuthor(req *entity.OAuthChannel) (repository.OAuthor, error)
- func (oa OAuth) GetTokenByUUID(ctx core.Context, s string) (*types.GetOAuthTokenReply, error)
- func (oa OAuth) IsBindOAuth(ctx core.Context, cid uint32, oid string) bool
- func (oa OAuth) ListOAuth(ctx core.Context, req *types.ListOAuthRequest) ([]*entity.OAuth, uint32, error)
- func (r OAuth) ListOAuthChannel(ctx core.Context, req *types.ListOAuthChannelRequest) ([]*entity.OAuthChannel, uint32, error)
- func (oa OAuth) ListOAuthor() []types.OAuthor
- func (oa OAuth) SetTokenByUUID(ctx core.Context, s string, reply *types.GetOAuthTokenReply) error
- func (oa OAuth) UpdateOAuth(ctx core.Context, oauth *entity.OAuth) error
- func (r OAuth) UpdateOAuthChannel(ctx core.Context, channel *entity.OAuthChannel) error
- type OAuthorInitFunc
- type WXOfficialAccount
- func (woa WXOfficialAccount) GetOAuthInfo(ctx core.Context, req *types.GetOAuthInfoRequest) (*types.GetOAuthInfoReply, error)
- func (woa WXOfficialAccount) GetOAuthToken(ctx core.Context, req *types.GetOAuthTokenRequest) (*types.GetOAuthTokenReply, error)
- func (woa WXOfficialAccount) OAuthHandler(_ core.Context, req *types.OAuthHandlerRequest) (*types.OAuthHandlerReply, error)
- type YiBan
- func (y YiBan) GetOAuthInfo(ctx core.Context, req *types.GetOAuthInfoRequest) (*types.GetOAuthInfoReply, error)
- func (y YiBan) GetOAuthToken(_ core.Context, req *types.GetOAuthTokenRequest) (*types.GetOAuthTokenReply, error)
- func (y YiBan) OAuthHandler(_ core.Context, req *types.OAuthHandlerRequest) (*types.OAuthHandlerReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEmail ¶
func NewEmail(req *entity.OAuthChannel) repository.OAuthor
func NewWXOfficialAccount ¶
func NewWXOfficialAccount(req *entity.OAuthChannel) repository.OAuthor
func NewYiBan ¶
func NewYiBan(req *entity.OAuthChannel) repository.OAuthor
Types ¶
type Email ¶
type Email struct {
// contains filtered or unexported fields
}
func (*Email) GetOAuthInfo ¶
func (e *Email) GetOAuthInfo(_ core.Context, req *types.GetOAuthInfoRequest) (*types.GetOAuthInfoReply, error)
func (*Email) GetOAuthToken ¶
func (e *Email) GetOAuthToken(ctx core.Context, req *types.GetOAuthTokenRequest) (*types.GetOAuthTokenReply, error)
func (*Email) OAuthHandler ¶
func (e *Email) OAuthHandler(ctx core.Context, req *types.OAuthHandlerRequest) (*types.OAuthHandlerReply, error)
OAuthHandler 前置处理
type OAuth ¶
type OAuth struct{}
func (OAuth) CreateOAuth ¶
func (OAuth) CreateOAuthChannel ¶
CreateOAuthChannel 创建数据
func (OAuth) DeleteOAuth ¶
func (OAuth) DeleteOAuthChannel ¶
DeleteOAuthChannel 删除数据
func (OAuth) GetOAuthByCO ¶
GetOAuthByCO 通过channel_id 和 oid获取 授权信息
func (OAuth) GetOAuthChannel ¶
GetOAuthChannel 获取指定的数据
func (OAuth) GetOAuthChannelByKeyword ¶
func (r OAuth) GetOAuthChannelByKeyword(ctx core.Context, keyword string) (*entity.OAuthChannel, error)
GetOAuthChannelByKeyword 获取指定数据
func (OAuth) GetOAuthor ¶
func (oa OAuth) GetOAuthor(req *entity.OAuthChannel) (repository.OAuthor, error)
GetOAuthor 获取指定的授权器
func (OAuth) GetTokenByUUID ¶
GetTokenByUUID 通过uuid获取token
func (OAuth) IsBindOAuth ¶
func (OAuth) ListOAuthChannel ¶
func (r OAuth) ListOAuthChannel(ctx core.Context, req *types.ListOAuthChannelRequest) ([]*entity.OAuthChannel, uint32, error)
ListOAuthChannel 获取列表
func (OAuth) SetTokenByUUID ¶
SetTokenByUUID 通过uuid设置token
func (OAuth) UpdateOAuthChannel ¶
UpdateOAuthChannel 更新数据
type OAuthorInitFunc ¶
type OAuthorInitFunc func(req *entity.OAuthChannel) repository.OAuthor
type WXOfficialAccount ¶
type WXOfficialAccount struct {
// contains filtered or unexported fields
}
func (WXOfficialAccount) GetOAuthInfo ¶
func (woa WXOfficialAccount) GetOAuthInfo(ctx core.Context, req *types.GetOAuthInfoRequest) (*types.GetOAuthInfoReply, error)
func (WXOfficialAccount) GetOAuthToken ¶
func (woa WXOfficialAccount) GetOAuthToken(ctx core.Context, req *types.GetOAuthTokenRequest) (*types.GetOAuthTokenReply, error)
func (WXOfficialAccount) OAuthHandler ¶
func (woa WXOfficialAccount) OAuthHandler(_ core.Context, req *types.OAuthHandlerRequest) (*types.OAuthHandlerReply, error)
type YiBan ¶
type YiBan struct {
// contains filtered or unexported fields
}
func (YiBan) GetOAuthInfo ¶
func (y YiBan) GetOAuthInfo(ctx core.Context, req *types.GetOAuthInfoRequest) (*types.GetOAuthInfoReply, error)
func (YiBan) GetOAuthToken ¶
func (y YiBan) GetOAuthToken(_ core.Context, req *types.GetOAuthTokenRequest) (*types.GetOAuthTokenReply, error)
func (YiBan) OAuthHandler ¶
func (y YiBan) OAuthHandler(_ core.Context, req *types.OAuthHandlerRequest) (*types.OAuthHandlerReply, error)
OAuthHandler 获取鉴权方式
Click to show internal directories.
Click to hide internal directories.