Versions in this module Expand all Collapse all v1 v1.0.0 Jan 5, 2022 Changes in this version + type AuthCode struct + func (a *AuthCode) CreateCodeOpenId(ctx context.Context, req dto.AuthCodeReq) (string, error) + type AuthService struct + type AuthSrv interface + CheckToken func(ctx context.Context, data dto.OpenIdTokenReq) (err error) + CreateCodeOpenId func(ctx context.Context, req dto.AuthCodeReq) (string, error) + CreateToken func(ctx context.Context, data dto.ProduceAuthTokenReq) (authTokenSimple dto.AuthTokenSimple, err error) + GetUserInfo func(ctx context.Context, data dto.OpenIdTokenReq) (user dto.UserSimple, err error) + RefreshAccessToken func(ctx context.Context, data dto.RefreshAccessTokenReq) (authTokenSimple dto.AuthTokenSimple, err error) + func NewService(r *repository.Repository, a *aggregate.Factory) AuthSrv + type AuthToken struct + 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 struct + func (m *Merchant) CreateMerChant(ctx context.Context, data *entity.Merchant) error + func (m *Merchant) QueryMerChant(ctx context.Context, repo repo.MerChantSpecificationRepo) (data *entity.Merchant, err error)