Documentation ¶
Index ¶
- func Marshal(data interface{}) ([]byte, error)
- func Unmarshal(data []byte, v interface{}) error
- type AuthCode
- func (r *AuthCode) Close()
- 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)
- type AuthToken
- func (r *AuthToken) Close()
- 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
- type Merchant
- func (r *Merchant) Close()
- 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
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthCode ¶
type AuthCode struct {
// contains filtered or unexported fields
}
func (*AuthCode) CreateCode ¶
func (*AuthCode) QueryCode ¶
func (a *AuthCode) QueryCode(ctx context.Context, repo repo.AuthCodeSpecificationRepo) (obj.CodeOpenId, error)
type AuthToken ¶
type AuthToken struct {
// contains filtered or unexported fields
}
func (*AuthToken) CreateAuthToken ¶
func (*AuthToken) QueryAuthToken ¶
type Merchant ¶
type Merchant struct {
// contains filtered or unexported fields
}
func (*Merchant) CreateMerChant ¶
func (*Merchant) QueryMerChant ¶
func (*Merchant) QueryMerChants ¶
func (*Merchant) RemoveMerChant ¶
type Repository ¶
func NewRepository ¶
func NewRepository(mgo *mongo.Client, r *redis.Client) *Repository
Click to show internal directories.
Click to hide internal directories.