Documentation ¶
Index ¶
- func ActVerify(actStr string) *errors.Error
- func CodeVerify(codeStr string) *errors.Error
- func CtxToData(c Ctx) ([]byte, *errors.Error)
- func CurrencyVerify(str string) *errors.Error
- func TitleVerify(tilStr string) *errors.Error
- type Act
- type Code
- type Ctx
- type Currency
- type Expense
- type ExpenseItem
- type Ref
- type Tag
- type Title
- type What
- type When
- type Who
- type YID
- type Yin
- func (y *Yin) Digest() string
- func (y *Yin) GetSP() sp.ID
- func (y *Yin) GetType() string
- func (y *Yin) GetVN() vn.ID
- func (y *Yin) Summary() string
- func (y *Yin) Verify() *errors.Error
- func (y *Yin) WithAct(actStr string) *errors.Error
- func (y *Yin) WithCtx(codeStr string, valStr string) *errors.Error
- func (y *Yin) WithExpense(currencyStr string, amount int64) *errors.Error
- func (y *Yin) WithTag(tagStrArr ...string) *errors.Error
- func (y *Yin) WithTitle(tilStr string) *errors.Error
- func (y *Yin) WithWhat(codeStr string, refStr string) *errors.Error
- func (y *Yin) WithWho(whoStr string, refCode string, refRef string) *errors.Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CodeVerify ¶ added in v1.0.3
func CurrencyVerify ¶
func TitleVerify ¶
Types ¶
type Expense ¶
type Expense struct { Amount int64 `bson:"amount" json:"amount"` Currency Currency `bson:"currency" json:"currency"` Ex map[string]*ExpenseItem `bson:"ex,omitempty" json:"ex,omitempty"` }
func (*Expense) PutEx ¶
func (exp *Expense) PutEx(code string, exExp *ExpenseItem)
type ExpenseItem ¶
type Yin ¶
type Yin struct { Yin Code `bson:"yin" json:"yin"` Vn vn.ID `bson:"vn" json:"vn" cbor:"vn"` Sp sp.ID `bson:"sp" json:"sp" cbor:"sp"` Who *Who `bson:"who" json:"who"` When When `bson:"when" json:"when"` Act Act `bson:"act" json:"act"` What *What `bson:"what" json:"what"` Exp *Expense `bson:"exp" json:"exp"` Title Title `bson:"title" json:"title"` Tag []Tag `bson:"tag" json:"tag"` Ctx Ctx `bson:"ctx" json:"ctx"` }
Click to show internal directories.
Click to hide internal directories.