repository

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2022 License: Apache-2.0 Imports: 15 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(data interface{}) ([]byte, error)

func Unmarshal

func Unmarshal(data []byte, v interface{}) error

Types

type AuthCode

type AuthCode struct {
	// contains filtered or unexported fields
}

func (*AuthCode) Close

func (r *AuthCode) Close()

func (*AuthCode) CreateCode

func (a *AuthCode) CreateCode(ctx context.Context, data obj.CodeOpenId) error

func (*AuthCode) DelCode

func (*AuthCode) QueryCode

type AuthToken

type AuthToken struct {
	// contains filtered or unexported fields
}

func (*AuthToken) Close

func (r *AuthToken) Close()

func (*AuthToken) CreateAuthToken

func (a *AuthToken) CreateAuthToken(ctx context.Context, data obj.AuthToken) error

func (*AuthToken) QueryAuthToken

func (a *AuthToken) QueryAuthToken(ctx context.Context, repo repo.AuthTokenSpecificationRepo) (obj.AuthToken, error)

func (*AuthToken) UpdateAuthToken

func (a *AuthToken) UpdateAuthToken(ctx context.Context, data obj.AuthToken) error

type Merchant

type Merchant struct {
	// contains filtered or unexported fields
}

func (*Merchant) Close

func (r *Merchant) Close()

func (*Merchant) CreateMerChant

func (m *Merchant) CreateMerChant(ctx context.Context, data *entity.Merchant) error

func (*Merchant) QueryMerChant

func (m *Merchant) QueryMerChant(ctx context.Context, repo repo.MerChantSpecificationRepo) (data *entity.Merchant, err error)

func (*Merchant) QueryMerChants

func (m *Merchant) QueryMerChants(ctx context.Context, repo repo.MerChantSpecificationRepo) (data []*entity.Merchant, err error)

func (*Merchant) RemoveMerChant

func (m *Merchant) RemoveMerChant(ctx context.Context, data *entity.Merchant) error

func (*Merchant) UpdateMerChant

func (m *Merchant) UpdateMerChant(ctx context.Context, data *entity.Merchant) error

type Repository

type Repository struct {
	Merchant  *Merchant
	AuthCode  *AuthCode
	AuthToken *AuthToken
}

func NewRepository

func NewRepository(mgo *mongo.Client, r *redis.Client) *Repository

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL