Exemplo n.º 1
0
func (this *EventController) Attend() {
	t := models.Event{}
	timenow := time.Now().Unix()
	attend := t.GetAttendByTime(int(timenow))
	for i, _ := range attend {
		attend[i].Club = ""
		attend[i].Description = ""
		attend[i].Title = ""
	}
	b, _ := json.Marshal(&attend)
	this.Data["json"] = string(b)
	this.ServeJson()
}