models

package
v0.0.0-...-08303f1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SmPhoto

type SmPhoto struct {
	Id         int64
	Name       string
	Type       string
	Size       int32
	Ext        string `xorm:"size(100)"`
	Md5        string `xorm:"size(100)"`
	Sha1       string `xorm:"size(100)"`
	Savename   string `xorm:"size(200)"`
	Savepath   string `xorm:"size(100)"`
	Url        string
	UserKey    string
	CreateTime time.Time `xorm:"created"`
	From       string    `xorm:"size(50)"`
}

func (*SmPhoto) GetAllPhotos

func (p *SmPhoto) GetAllPhotos(pageOffset int, pageSize int) (err error, s []SmPhoto)

@Title GetAllPhotos @Description 获取分页图片 @param pageOffset int 起始位置 @param pageSize int 每页的数量

func (*SmPhoto) GetPhotoCount

func (p *SmPhoto) GetPhotoCount() (err error, count int64)

@Title GetPhotoCount @Description 获取数量 @param err error 错误信息 @param count int64 数量

func (*SmPhoto) InsertOnPhoto

func (p *SmPhoto) InsertOnPhoto() error

Jump to

Keyboard shortcuts

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