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

22 lines
351 B

  1. package hdl
  2. import (
  3. "applet/app/db"
  4. "applet/app/e"
  5. "github.com/gin-gonic/gin"
  6. )
  7. func NoticeList(c *gin.Context) {
  8. noticeDb := db.NoticeDb{}
  9. noticeDb.Set()
  10. notices, err := noticeDb.FindNotice(0, 0)
  11. if err != nil {
  12. e.OutErr(c, e.ERR_DB_ORM, err.Error())
  13. return
  14. }
  15. e.OutSuc(c, map[string]interface{}{
  16. "list": notices,
  17. }, nil)
  18. return
  19. }