MCPcopy Index your code
hub / github.com/TruthHun/DocHub / Get

Method Get

controllers/AdminControllers/BannerController.go:24–31  ·  view source on GitHub ↗

横幅列表

()

Source from the content-addressed store, hash-verified

22
23//横幅列表
24func (this *BannerController) Get() {
25 var err error
26 if this.Data["Banners"], _, err = models.NewBanner().List(1, 100); err != nil && err != orm.ErrNoRows {
27 helper.Logger.Error(err.Error())
28 }
29 this.Data["IsBanner"] = true
30 this.TplName = "index.html"
31}
32
33//新增横幅
34func (this *BannerController) Add() {

Callers

nothing calls this directly

Calls 1

ListMethod · 0.45

Tested by

no test coverage detected