prize

package
v0.0.0-...-593c55d Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnOpenedIssue = errors.New("该彩种还未开奖")
)

Functions

This section is empty.

Types

type Attr

type Attr []string

type Bonus

type Bonus interface {
	//GetBonus 获取奖金
	GetBonus() (money float64, err error)
	//获取中奖内容
	GetWinList() (list []string)
}

func NewPk10Bonus

func NewPk10Bonus(rcd Record, plays Plays) Bonus

func NewSscBonus

func NewSscBonus(rcd Record, plays Plays, plugin Plugin) Bonus

type Nature

type Nature int

type NatureSource

type NatureSource interface {
	GetInstance() (err error)
}

type Pk10

type Pk10 struct {
	RecordObj Record
	PlaysObj  Plays

	//单注金额
	SingleMoney int64
	//中奖的玩法内容列表
	BonusList []string
	// contains filtered or unexported fields
}

func (*Pk10) GetBonus

func (p *Pk10) GetBonus() (money float64, err error)

func (*Pk10) GetWinList

func (p *Pk10) GetWinList() (list []string)

type Pk10Source

type Pk10Source struct {
	OpenNumberString string              `json:"-"`
	OpenNumberList   []string            `json:"-"`
	CompareGyh       []string            `json:"compare_gyh"`
	CompareDefault   map[string][]string `json:"compare_default"`
	// contains filtered or unexported fields
}

func (*Pk10Source) GetInstance

func (p *Pk10Source) GetInstance() (err error)

type Plays

type Plays interface {
	//GetOdds 获取玩法内容赔率
	GetOdds(name string) float64
}

type Plugin

type Plugin interface {
	//设定时时彩,开和是否杀龙虎,true=>杀
	SscLH1() bool
}

type Record

type Record interface {
	//GetOpenNumber 获取注单开奖号码
	GetOpenNumber() string
	//GetPlayName 获取注单玩法
	GetPlayName() string
	//GetContent 获取当前注单,投注内容,形如"1,2,大",','号分割
	GetContent() string
	//GetBetMoney 获取当前注单投注总额,根据当前注单投注内容个数,计算单注金额
	GetBetMoney() int64
}

type Ssc

type Ssc struct {
	RecordObj Record
	PlaysObj  Plays

	//单注金额
	SingleMoney int64
	//中奖的玩法内容列表
	BonusList []string
	// contains filtered or unexported fields
}

func (*Ssc) GetBonus

func (p *Ssc) GetBonus() (money float64, err error)

func (*Ssc) GetWinList

func (p *Ssc) GetWinList() (list []string)

type SscSource

type SscSource struct {
	OpenNumberString string              `json:"-"`
	OpenNumberList   []string            `json:"-"`
	CompareSum       []string            `json:"compare_sum"`
	CompareQ         []string            `json:"compare_q"`
	CompareZ         []string            `json:"compare_z"`
	CompareH         []string            `json:"compare_h"`
	CompareDefault   map[string][]string `json:"compare_default"`
	// contains filtered or unexported fields
}

func (*SscSource) GetInstance

func (p *SscSource) GetInstance() (err error)

Jump to

Keyboard shortcuts

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