albums

package
v0.0.0-...-288c4e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2017 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAlbum

func AddAlbum(updAlb Albums) (int64, error)

func AddAlbumComment

func AddAlbumComment(upd AlbumsComment) error

func AddAlbumLaud

func AddAlbumLaud(upd AlbumsLaud) error

func ChangeAlbumRelationNum

func ChangeAlbumRelationNum(id int64, record string) error

func CountAlbum

func CountAlbum(condArr map[string]string) int64

func DeleteAlbum

func DeleteAlbum(id int64, userid int64) error

func UpdateAlbum

func UpdateAlbum(id int64, updAlb Albums) error

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
}

func GetAlbum

func GetAlbum(id int64) (Albums, error)

* 获取相册详情

func ListAlbum

func ListAlbum(condArr map[string]string, page int, offset int) (num int64, err error, alb []Albums)

func (*Albums) TableName

func (this *Albums) TableName() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL