Documentation ¶
Index ¶
- func AddAlbum(updAlb Albums) (int64, error)
- func AddAlbumComment(upd AlbumsComment) error
- func AddAlbumLaud(upd AlbumsLaud) error
- func ChangeAlbumRelationNum(id int64, record string) error
- func CountAlbum(condArr map[string]string) int64
- func UpdateAlbum(id int64, updAlb Albums) error
- type Albums
- type AlbumsComment
- type AlbumsLaud
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAlbumComment ¶
func AddAlbumComment(upd AlbumsComment) error
func AddAlbumLaud ¶
func AddAlbumLaud(upd AlbumsLaud) error
func ChangeAlbumRelationNum ¶
func CountAlbum ¶
func UpdateAlbum ¶
Types ¶
type Albums ¶
type Albums struct { Id int64 `orm:"pk;column(albumid);"` Userid int64 Title string Picture string Keywords string Summary string Created int64 Viewnum int Comtnum int Laudnum int Status int }
type AlbumsComment ¶
type AlbumsComment struct { Id int64 `orm:"pk;column(comtid);"` Userid int64 Albumid int64 Content string Created int64 Status int }
func ListAlbumComment ¶
func ListAlbumComment(albumid int64, page, offset int) (ops []AlbumsComment)
func (*AlbumsComment) TableName ¶
func (this *AlbumsComment) TableName() string
type AlbumsLaud ¶
type AlbumsLaud struct { Id int64 `orm:"pk;column(laudid);"` Userid int64 Albumid int64 Created int64 Status int }
func GetAlbumLaud ¶
func GetAlbumLaud(id int64) (AlbumsLaud, error)
func ListAlbumLaud ¶
func ListAlbumLaud(albumid int64, page, offset int) (ops []AlbumsLaud)
func (*AlbumsLaud) TableName ¶
func (this *AlbumsLaud) TableName() string
Click to show internal directories.
Click to hide internal directories.