Also locks the tools versions and launches them from the packages installed by the go mod. Otherwise, they would have to be manually installed beforehand.
13 lines
399 B
Go
13 lines
399 B
Go
package dal
|
|
|
|
import "git.rosemyrtle.work/personal-finance/server/internal/entity"
|
|
|
|
type DAL interface {
|
|
Transaction(transactionId int64) (*entity.Transaction, error)
|
|
Transactions() (entity.Transactions, error)
|
|
Bank(bankId string) (*entity.Bank, error)
|
|
Banks() (entity.Banks, error)
|
|
}
|
|
|
|
//go:generate go run go.uber.org/mock/mockgen@latest -destination=../mock/mock_dal.gen.go -package=mock . DAL
|