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
Click to show internal directories.
Click to hide internal directories.