model

package
v0.0.0-...-441fd9a Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CostDir

type CostDir int
const (
	CostDirInGroup CostDir = iota + 1
	CostDirIn
	CostDirOut
)

type DeletedGroupBill

type DeletedGroupBill struct {
	GroupBill `json:",inline"`
	DeletedAt time.Time `json:"deletedAt"`
}

type Group

type Group struct {
	ID              uint64   `json:"id"`
	Name            string   `json:"name"`
	MemberPersonIDs []uint64 `json:"memberPersonIDs"`
	AdminPersonIDs  []uint64 `json:"adminPersonIDs"`
}

type GroupBill

type GroupBill struct {
	ID                string   `json:"id"`
	FromSubWalletID   uint64   `json:"fromSubWalletID"`
	ToSubWalletID     uint64   `json:"toSubWalletID"`
	CostDir           CostDir  `json:"coastDir"`
	Amount            int      `json:"amount"`
	LabelIDs          []uint64 `json:"labelIDs"`
	Remark            string   `json:"remark"`
	LossAmount        int      `json:"lossAmount"`
	LossWalletID      uint64   `json:"lossWalletID"`
	At                int64    `json:"at"`
	OperationPersonID uint64   `json:"operationPersonID"`
}

func (*GroupBill) Valid

func (gb *GroupBill) Valid() bool

type Label

type Label struct {
	ID   uint64 `json:"id"`
	Name string `json:"name"`
}

type Person

type Person struct {
	ID           uint64   `json:"id"`
	Name         string   `json:"name"`
	Groups       []uint64 `json:"groups"`
	SubWalletIDs []uint64 `json:"subWalletIDs"`
}

type Wallet

type Wallet struct {
	ID       uint64 `json:"id"`
	Name     string `json:"name"`
	PersonID uint64 `json:"personID"`
}

Jump to

Keyboard shortcuts

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