models

package
v0.0.0-...-0eaedd4 Latest Latest
Warning

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

Go to latest
Published: May 9, 2017 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HistoryDB *buntdb.DB
	SuggestDB *buntdb.DB
)

定义全局的DB变量

Functions

func InitHistoryDB

func InitHistoryDB(filename string)

InitHistoryDB 初始化下载历史DB

func InitSuggestDB

func InitSuggestDB(filename string)

InitSuggestDB 初始化建议DB

Types

type History

type History struct {
	ID         string // 唯一ID
	AccessIP   string // 访问IP
	FileLink   string // 下载链接
	FileName   string // 文件名
	FileSize   int    // 文件大小
	FileType   int    // 文件类型(0:普通文件,1:视频文件)
	CreateTime string // 创建时间
}

History 下载历史

func (*History) Create

func (h *History) Create() (err error)

Create 增加下载历史

type Suggest

type Suggest struct {
	ID         string // 唯一ID
	AccessIP   string // 访问IP
	Email      string // 电子邮箱
	Comment    string // 意见
	CreateTime string // 创建时间
}

Suggest 反馈建议

func (*Suggest) Create

func (s *Suggest) Create() (err error)

Create 增加反馈建议

Jump to

Keyboard shortcuts

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