domain

package
v0.0.0-...-341372b Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 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 AmountByYearMonth

type AmountByYearMonth struct {
	Year   int
	Month  time.Month
	Amount int
}

type AmountByYearMonthCategory

type AmountByYearMonthCategory struct {
	Year       int
	Month      time.Month
	CategoryID string
	Amount     int
}

type Category

type Category struct {
	// ID
	ID string

	// Name
	Name string

	// 階層
	Level CategoryLevel

	// 表示順
	DisplayOrder int

	// 親CategoryID
	ParentID string
}

Category represents 項目 and its 階層

type CategoryLevel

type CategoryLevel int

CategoryLevel represents category hierarchy level.

const (
	// CategoryLevel1 is the top level category.
	CategoryLevel1 CategoryLevel = iota + 1
	// CategoryLevel2 is the second level category.
	CategoryLevel2
)

type MoneyForwardRecord

type MoneyForwardRecord struct {
	// ID
	ID string

	// 計算対象
	IsCalculationTarget bool

	// 日付
	RecordedOn time.Time

	// 内容
	Title string

	// 金額(円)
	Amount int

	// 保有金融機関
	SourceName string

	// 保有金融機関ID
	SourceID string

	// 大項目
	Category1Name string

	// 大項目ID
	Category1ID string

	// 中項目
	Category2Name string

	// 中項目ID
	Category2ID string

	// メモ
	Memo string

	// 振替
	IsTransfer bool
}

func (*MoneyForwardRecord) IsRecordToSave

func (r *MoneyForwardRecord) IsRecordToSave() bool

IsRecordToSave returns true if it is a record to save.

type Source

type Source struct {
	// ID
	ID string

	// Name
	Name string

	// 表示順
	DisplayOrder int
}

Source represents 保有金融機関

Jump to

Keyboard shortcuts

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