面包店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

svc_notice.go 323 B

7 months ago
12345678910111213141516171819
  1. package svc
  2. import (
  3. "applet/app/db"
  4. "applet/app/e"
  5. "github.com/gin-gonic/gin"
  6. "time"
  7. )
  8. func Notice(c *gin.Context) {
  9. date := time.Now().Format("2006-01-02")
  10. data := db.GetNoticeByDate(db.Db, date)
  11. var res = make([]string, 0)
  12. if data != nil {
  13. res = append(res, data.Content)
  14. }
  15. e.OutSuc(c, res, nil)
  16. return
  17. }