智慧食堂
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.

1 年之前
123456789101112131415161718192021
  1. package hdl
  2. import (
  3. "applet/app/db"
  4. "applet/app/e"
  5. "github.com/gin-gonic/gin"
  6. )
  7. func BannerList(c *gin.Context) {
  8. bannerDb := db.BannerDb{}
  9. bannerDb.Set()
  10. banners, err := bannerDb.FindBanner(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": banners,
  17. }, nil)
  18. return
  19. }