Documentation ¶
Overview ¶
*需求:根据金数据表单的提交数据建立一份名单(每行一个人名,可以手动建立) *然后编写一个程序用于抽奖。 *功能: *1.基于WEB,便于演示; *2.有启停按钮,点击启动按钮则开始极速循环遍历名单(人名或序号) *3.需要实时列有中奖名单 *4.选出10人(可配置)后启停按钮不可用,抽奖结束 *5.程序需纯go开发,放在github里 *@author xialingsc *@data 2015-06-04
Index ¶
Constants ¶
View Source
const (
LUCK_PERSON_NUMBER = 10
)
Variables ¶
This section is empty.
Functions ¶
func DisplayList ¶
func DisplayList(list []Person)
Types ¶
type MainController ¶
type MainController struct {
beego.Controller
}
func (*MainController) Get ¶
func (c *MainController) Get()
func (*MainController) Push ¶
func (this *MainController) Push()
type Person ¶
type ScrollTempResult ¶
type ScrollTempResult struct { TQueuePersonList []Person //放参与抽奖人数列表 LPersonList []Person //放中奖人数列表 }
用于通过json返回web页面
Click to show internal directories.
Click to hide internal directories.