package svc import ( "applet/app/db" "applet/app/e" "github.com/gin-gonic/gin" "time" ) func Notice(c *gin.Context) { date := time.Now().Format("2006-01-02") data := db.GetNoticeByDate(db.Db, date) var res = make([]string, 0) if data != nil { res = append(res, data.Content) } e.OutSuc(c, res, nil) return }