billservice

package
v0.0.0-...-894796f Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBill

func AddBill(bill *models.Bill) error

func DeleteBill

func DeleteBill(billID, userID uint) (err error)

func GetBill

func GetBill(billID uint, userID uint) (models.Bill, error)

func GetBillList

func GetBillList(
	userID uint,
	startTime string,
	endTime string,
	page int,
	pageSize int,
	category uint,
	income string,
	sortKey string,
	asc string,
) ([]models.Bill, error)

func GetBillOverview

func GetBillOverview() (map[string]decimal.Decimal, error)

func GetRecentBillList

func GetRecentBillList() ([]models.Bill, error)

func UpdateBill

func UpdateBill(billID, userID uint, data map[string]interface{}) (models.Bill, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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