biz

package
v0.0.0-...-24968f5 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 3 Imported by: 0

README

Biz

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is biz providers.

Functions

This section is empty.

Types

type History

type History struct {
	ObjId     int64
	ObjType   string
	UserId    int64
	CreateAt  float64
	ObjDetail map[string]interface{}
	Username  string
}

type HistoryJobRepo

type HistoryJobRepo interface {
	PersistentSaveHistory(ctx context.Context, history *History) (*History, error)
}

type HistoryRepo

type HistoryRepo interface {
	SaveHistory(context.Context, *History) (*History, error)
	GetHistory(ctx context.Context, id int64) ([]*History, error)
}

type HistoryUseCase

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

func NewHistoryUseCase

func NewHistoryUseCase(repo HistoryRepo, logger log.Logger) *HistoryUseCase

func (*HistoryUseCase) Create

func (hc *HistoryUseCase) Create(ctx context.Context, h *History) (*History, error)

func (*HistoryUseCase) Get

func (hc *HistoryUseCase) Get(ctx context.Context, id int64) ([]*History, error)

Jump to

Keyboard shortcuts

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