Documentation ¶
Index ¶
- type AuthCode
- type AuthService
- type AuthSrv
- type AuthToken
- func (a *AuthToken) CheckToken(ctx context.Context, data dto.OpenIdTokenReq) (err error)
- func (a *AuthToken) CreateToken(ctx context.Context, data dto.ProduceAuthTokenReq) (authTokenSimple dto.AuthTokenSimple, err error)
- func (a *AuthToken) GetUserInfo(ctx context.Context, data dto.OpenIdTokenReq) (user dto.UserSimple, err error)
- func (a *AuthToken) RefreshAccessToken(ctx context.Context, data dto.RefreshAccessTokenReq) (authTokenSimple dto.AuthTokenSimple, err error)
- type Merchant
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthCode ¶
type AuthCode struct {
// contains filtered or unexported fields
}
func (*AuthCode) CreateCodeOpenId ¶
type AuthService ¶
type AuthSrv ¶
type AuthSrv interface { CreateCodeOpenId(ctx context.Context, req dto.AuthCodeReq) (string, error) CreateToken(ctx context.Context, data dto.ProduceAuthTokenReq) (authTokenSimple dto.AuthTokenSimple, err error) RefreshAccessToken(ctx context.Context, data dto.RefreshAccessTokenReq) (authTokenSimple dto.AuthTokenSimple, err error) GetUserInfo(ctx context.Context, data dto.OpenIdTokenReq) (user dto.UserSimple, err error) CheckToken(ctx context.Context, data dto.OpenIdTokenReq) (err error) }
func NewService ¶
func NewService(r *repository.Repository, a *aggregate.Factory) AuthSrv
type AuthToken ¶
type AuthToken struct {
// contains filtered or unexported fields
}
func (*AuthToken) CheckToken ¶
func (*AuthToken) CreateToken ¶
func (a *AuthToken) CreateToken(ctx context.Context, data dto.ProduceAuthTokenReq) (authTokenSimple dto.AuthTokenSimple, err error)
func (*AuthToken) GetUserInfo ¶
func (a *AuthToken) GetUserInfo(ctx context.Context, data dto.OpenIdTokenReq) (user dto.UserSimple, err error)
func (*AuthToken) RefreshAccessToken ¶
func (a *AuthToken) RefreshAccessToken(ctx context.Context, data dto.RefreshAccessTokenReq) (authTokenSimple dto.AuthTokenSimple, err error)
type Merchant ¶
type Merchant struct {
// contains filtered or unexported fields
}
func (*Merchant) CreateMerChant ¶
func (*Merchant) QueryMerChant ¶
Click to show internal directories.
Click to hide internal directories.