controllers/restriction.go @@ -18,7 +18,7 @@ beego.Controller } func init() { func InitRestriction() { date := time.Now().Format("2006-01-02") var r models.Restriction err := r.SelectByDate(date)