|
123456789101112131415161718192021 |
- package hdl
-
- import (
- "applet/app/db"
- "applet/app/e"
- "github.com/gin-gonic/gin"
- )
-
- func NoticeList(c *gin.Context) {
- noticeDb := db.NoticeDb{}
- noticeDb.Set()
- notices, err := noticeDb.FindNotice(0, 0)
- if err != nil {
- e.OutErr(c, e.ERR_DB_ORM, err.Error())
- return
- }
- e.OutSuc(c, map[string]interface{}{
- "list": notices,
- }, nil)
- return
- }
|