account

package
v0.0.0-...-54421ad Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: BSD-3-Clause Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
}

func (*Handler) CalcTax

func (this *Handler) CalcTax(
	uid int,
	trade_type int,
	stock_code,
	stock_name string,
	stock_price float64,
	stock_count int,
) (float64, float64, float64, float64, error)

计算 总金额, 印花税, 過戶費, 交易佣金

func (*Handler) CheckIdentity

func (this *Handler) CheckIdentity(uid, req_time_stamp, sign string) (bool, error)

确认身份:

uid+req_time_stamp  的MD5值等於sign的值

func (*Handler) DeductUserContestTax

func (this *Handler) DeductUserContestTax(userid int,
	amount, stamp_tax, transfer_tax, brokerage float64) (err error)

扣算 金額: 比赛扣算规则.

func (*Handler) DeductUserTax

func (this *Handler) DeductUserTax(userid int,
	amount, stamp_tax, transfer_tax, brokerage float64) (err error)

扣算 金額, 印花税: 卖方出, 每笔交易体现 -- 不在这里计算 modified 2018年10月24日22:20:24 by BedeWong 过户费:单次交易计算, 后续不在扣除, 撤单不在退回。 总金额: 卖出0 卖出时,逐笔结算; 买入时统一冻结

Jump to

Keyboard shortcuts

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