mysql

package
v0.0.0-...-2b0c82f Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserAssetEventRepository

func NewUserAssetEventRepository(db *gorm.DB) domain.IUserAssetEventRepository

func NewUserAssetRecordRepository

func NewUserAssetRecordRepository(db *gorm.DB) domain.IUserAssetRecordRepository

func NewUserAssetRepository

func NewUserAssetRepository(db *gorm.DB) domain.IUserAssetRepository

Types

type UserAssetEventRepository

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

func (*UserAssetEventRepository) ChangeUsersAssetTx

func (m *UserAssetEventRepository) ChangeUsersAssetTx(ctx context.Context, event *station.BizEventAssetChange) (err error)

type UserAssetRecordRepository

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

func (*UserAssetRecordRepository) GetRecordsByUserChangeAssetEvent

func (m *UserAssetRecordRepository) GetRecordsByUserChangeAssetEvent(ctx context.Context, event *station.BizEventAssetChange) (res []*model.UserAssetRecord, err error)

func (*UserAssetRecordRepository) GetRecordsByUserId

func (m *UserAssetRecordRepository) GetRecordsByUserId(ctx context.Context, userId int64) (res []*model.UserAssetRecord, nextCursor string, err error)

type UserAssetRepository

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

func (*UserAssetRepository) GetUserAssets

func (m *UserAssetRepository) GetUserAssets(ctx context.Context, userIds []int64) ([]*model.UserAsset, error)

Jump to

Keyboard shortcuts

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