Documentation
¶
Index ¶
- func AdminSetDeleted(db *gorp.DbMap, id int64) error
- func AdminSetPublished(db *gorp.DbMap, id int64, published bool) error
- func UpdateNew(db *gorp.DbMap, n New) error
- type New
- func AdminGetNews(db *gorp.DbMap, offset, count int64) ([]New, error)
- func CreateNew(db *gorp.DbMap, title, description string, body []byte, imgid int64, ...) (New, error)
- func GetAllNews(db *gorp.DbMap, offset, count int64) ([]New, error)
- func GetNew(db *gorp.DbMap, id int64) (New, error)
- func GetNewBySlug(db *gorp.DbMap, id string) (New, error)
- func GetNews(db *gorp.DbMap, offset, count int64) ([]New, error)
- type NewImages
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type New ¶
type New struct { Id int64 Title string Slug string Description string Body []byte ImgId int64 Views int64 OwnerId int64 Published bool Source string Deleted int64 Created int64 Updated int64 Version int64 ImgUrl string `db:"-"` Tags []tags.Tag `db:"-"` Images []int64 `db:"-"` Rate rate.Rate `db:"-"` }
Click to show internal directories.
Click to hide internal directories.