Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmb ¶
type Cmb struct {
Statistics Statistics `json:"statistics,omitempty"`
LineNum int `json:"line_num,omitempty"`
Mode CardMode `json:"mode,omitempty"`
DebitOrders []DebitOrder `json:"debit_orders,omitempty"`
CreditOrders []CreditOrder `json:"credit_orders,omitempty"`
DebitRealHeaders []string `json:"debit_real_headers,omitempty"`
CreditBillYear string `json:"credit_bill_year,omitempty"`
CreditBillMonth string `json:"credit_bill_month,omitempty"`
}
type Config ¶
type Config struct {
Rules []Rule `mapstructure:"rules,omitempty"`
}
Config is the configuration for Cmb.
type CreditOrder ¶
type DebitOrder ¶
type Rule ¶
type Rule struct {
Peer *string `mapstructure:"peer,omitempty"` // 交易对手
Item *string `mapstructure:"item,omitempty"` // 商品描述
Type *string `mapstructure:"type,omitempty"` // 类型
TxType *string `mapstructure:"txType,omitempty"`
Separator *string `mapstructure:"sep,omitempty"` // default: ,
MethodAccount *string `mapstructure:"methodAccount,omitempty"`
TargetAccount *string `mapstructure:"targetAccount,omitempty"`
FullMatch bool `mapstructure:"fullMatch,omitempty"` // default: false
Tag *string `mapstructure:"tag,omitempty"`
Ignore bool `mapstructure:"ignore,omitempty"` // default: false
}
Rule is the type for match rules.
type Statistics ¶
type Statistics struct {
UserID string `json:"user_id,omitempty"`
Username string `json:"username,omitempty"`
ParsedItems int `json:"parsed_items,omitempty"`
Start time.Time `json:"start,omitempty"`
End time.Time `json:"end,omitempty"`
TotalInRecords int `json:"total_in_records,omitempty"`
TotalInMoney float64 `json:"total_in_money,omitempty"`
TotalOutRecords int `json:"total_out_records,omitempty"`
TotalOutMoney float64 `json:"total_out_money,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.