service

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2017 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PAGE_SIZE  = 10 //每页的博客树木
	PAGE_RANGE = 3  // 显示多少页
)

Variables

This section is empty.

Functions

func Init

func Init()

func StoreFile

func StoreFile(filename string, fsrc multipart.File) (string, int64, error)

StoreFile to store a file to local return filepaht, file size and error

Types

type BlogPager

type BlogPager struct {
	CurrentPage int
	TotalPage   int
	Pages       []int
}

func (*BlogPager) GetPager

func (b *BlogPager) GetPager(currentPage int) *BlogPager

GetPager . 获得一个页码实例

func (*BlogPager) GetTotalPagerCount

func (b *BlogPager) GetTotalPagerCount() int64

GetTotalPagerCount . 获取总页数

Jump to

Keyboard shortcuts

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