MCPcopy Create free account
hub / github.com/TruthHun/BookStack / Banner

Struct Banner

models/banner.go:11–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9)
10
11type Banner struct {
12 Id int `json:"id"`
13 Type string `orm:"size(30);index" json:"type" description:"横幅类型,如 wechat(小程序),pc(PC端),mobi(移动端)等"`
14 Title string `json:"title" orm:"size(100)"`
15 Link string `json:"link"`
16 Image string `json:"image"`
17 Sort int `json:"sort"`
18 Status bool `json:"status"`
19 CreatedAt time.Time `json:"created_at"`
20}
21
22func NewBanner() *Banner {
23 return &Banner{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected