Versions in this module Expand all Collapse all v1 v1.0.1 Sep 21, 2022 v1.0.0 Sep 21, 2022 Changes in this version + func Marshal(data interface{}) ([]byte, error) + func Unmarshal(data []byte, v interface{}) error + type AuthCode struct + func (a *AuthCode) CreateCode(ctx context.Context, data obj.CodeOpenId) error + func (a *AuthCode) DelCode(ctx context.Context, repo repo.AuthCodeSpecificationRepo) error + func (a *AuthCode) QueryCode(ctx context.Context, repo repo.AuthCodeSpecificationRepo) (obj.CodeOpenId, error) + func (r *AuthCode) Close() + type AuthToken struct + func (a *AuthToken) CreateAuthToken(ctx context.Context, data obj.AuthToken) error + func (a *AuthToken) QueryAuthToken(ctx context.Context, repo repo.AuthTokenSpecificationRepo) (obj.AuthToken, error) + func (a *AuthToken) UpdateAuthToken(ctx context.Context, data obj.AuthToken) error + func (r *AuthToken) Close() + 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) + func (m *Merchant) QueryMerChants(ctx context.Context, repo repo.MerChantSpecificationRepo) (data []*entity.Merchant, err error) + func (m *Merchant) RemoveMerChant(ctx context.Context, data *entity.Merchant) error + func (m *Merchant) UpdateMerChant(ctx context.Context, data *entity.Merchant) error + func (r *Merchant) Close() + type Repository struct + AuthCode *AuthCode + AuthToken *AuthToken + Merchant *Merchant + func NewRepository(mgo *mongo.Client, r *redis.Client) *Repository