finance

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: May 30, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Index

Constants

This section is empty.

Variables

View Source
var GetHistory = router.Handler(func(c router.Context) {
	c.ResponseFunc(nil, func() schema.Response {
		return schema.Response{}
	})
})

Functions

func GetTableName

func GetTableName(currency string) string

Types

type Log

type Log struct {
	Id       string `json:"id"`       // 流水ID
	Currency string `json:"currency"` // 对应的币种流水
	OrderId  string `json:"order_id"` // 对应的订单id, 系统产生的流水可能不会orderId
	Uid      string `json:"uid"`      // 对应的用户

	BeforeBalance   float64 `json:"before_balance"`   // 这条流水前的余额
	BalanceMutation float64 `json:"balance_mutation"` // 可用余额的变动,正数则为加,负数为减
	AfterBalance    float64 `json:"after_balance"`    // 这条流水后的余额

	BeforeFrozen   float64 `json:"before_frozen"`   // 这条流水前的冻结余额
	FrozenMutation float64 `json:"frozen_mutation"` // 冻结余额的变动,正数则为加,负数为减
	AfterFrozen    float64 `json:"after_frozen"`    // 这条流水后的冻结余额

	Type model.FinanceType `json:"type"` // 流水类型

	Note      *string `json:"note"` // 流水备注
	CreatedAt string  `json:"created_at"`
	UpdatedAt string  `json:"updated_at"`
}

Jump to

Keyboard shortcuts

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