vote

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vote

type Vote struct {
	Name    string            // 投票名称
	User    string            // 发起人
	Choices map[string]int    // 投票选项
	Players map[string]string // 参与人数
	// contains filtered or unexported fields
}

Vote 投票

func (*Vote) New

func (v *Vote) New(name string, opt string) []*rboot.Message

New 新建一个投票

func (*Vote) Result

func (v *Vote) Result() []*rboot.Message

Result 返回投票结果

func (*Vote) Stop

func (v *Vote) Stop() []*rboot.Message

Stop 停止正在进行中的投票

func (*Vote) Voting

func (v *Vote) Voting(user string, opt string) []*rboot.Message

Voting 对正在进行中的投票活动进行投票

Jump to

Keyboard shortcuts

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