domain

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFoundAsset = errors.New("your requested asset info is not found")
	ErrNoEnoughAsset = errors.New("your asset is not enough")

	ErrInnerNilPointer = errors.New("inner nil pointer")
)

Functions

This section is empty.

Types

type AssetChangeHandler

type AssetChangeHandler func(oldAssetCn int64) (newAssetCn int64)

type IUserAssetEventRepository

type IUserAssetEventRepository interface {
	ChangeUsersAssetTx(ctx context.Context, event *station.BizEventAssetChange) error
}

type IUserAssetEventUseCase

type IUserAssetEventUseCase interface {
	ChangeUsersAssetTx(ctx context.Context, event *station.BizEventAssetChange) error
}

type IUserAssetRecordRepository

type IUserAssetRecordRepository interface {
	GetRecordsByUserId(ctx context.Context, userId int64) (res []*model.UserAssetRecord, nextCursor string, err error)
	GetRecordsByUserChangeAssetEvent(ctx context.Context, event *station.BizEventAssetChange) (res []*model.UserAssetRecord, err error)
}

type IUserAssetRepository

type IUserAssetRepository interface {
	GetUserAssets(ctx context.Context, userIds []int64) ([]*model.UserAsset, error)
}

type UserAssetEvent

type UserAssetEvent struct {
	*station.BizEventAssetChange
}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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