bonus

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinAmount = 0.001
)

Variables

View Source
var (
	ErrDeadLoop            = errors.New(`推荐人关系异常,同一推荐人多次出现,已经构成死循环`)
	ErrAgentLevelNotExists = errors.New(`代理等级不存在`)
)

Functions

This section is empty.

Types

type Bonus

type Bonus struct {
	// contains filtered or unexported fields
}

func New

func New(ctx echo.Context) *Bonus

func (*Bonus) Confirm

func (*Bonus) Reset

func (b *Bonus) Reset() *Bonus

func (*Bonus) SalesCommissionRatio

func (b *Bonus) SalesCommissionRatio(l *dbschema.OfficialCustomerAgentLevel, i int) float64

func (*Bonus) SetDebug

func (b *Bonus) SetDebug(on bool) *Bonus

Jump to

Keyboard shortcuts

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