usecase

package
v0.0.0-...-64045c7 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BillUseCase

type BillUseCase interface {
	Save(appToken, tableToken string, bill *domain.Bill) error
	GetCategory(appToken, tableToken, remark string) []string
	CurMonthTotal(appToken, tableToken string, expenses common.Expenses, amount float64) float64
	ListCategory(appToken, tableToken string) []string
}

func NewBillUseCase

func NewBillUseCase(billRepository domain.BillRepository) BillUseCase

type LedgerUseCase

type LedgerUseCase interface {
	Allocated(creator domain.User) (*domain.Ledger, error)
	PreparedAllocated() []*domain.Ledger
	Generate() (*domain.Ledger, error)
	QueryByUID(UID string) (*domain.Ledger, bool)
}

func NewLedgerUseCase

func NewLedgerUseCase(cfg *config.Config, ledgerRepository domain.LedgerRepository, cli *lark.Client) LedgerUseCase

type UserUseCase

type UserUseCase interface {
	GetByID(UID string) (*domain.User, bool)
	Save(user domain.User) error
}

func NewUserUseCase

func NewUserUseCase(userRepository domain.UserRepository) UserUseCase

Jump to

Keyboard shortcuts

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