面包店
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
323 B

  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. }