dao

package
v0.0.0-...-867eee7 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FeedbackDao = &feedbackDao{}
View Source
var FileShareDao = &fileShareDao{}
View Source
var UserDao = &userDao{}
View Source
var Vip = &vipDao{}
View Source
var VipSaveFileDao = &vipSaveFileDao{}

Functions

This section is empty.

Types

type FeedbackModel

type FeedbackModel struct {
	Uk        string `json:"uk" bson:"uk"` // 百度 uk
	Timestamp int64
	Content   string
}

type FileShareModel

type FileShareModel struct {
	Id       bson.ObjectId `bson:"_id,omitempty"`
	Uk       string
	Title    string
	Md5      string
	SliceMd5 string `bson:"slice_md5"`
	FileSize int64  `bson:"file_size"`
	ShareAt  int64  `bson:"share_at"`
	ExpireAt int64  `bson:"expire_at"`
	Official bool
	HotIndex int64 `bson:"hot_index"` // 热度指数
}

type UserModel

type UserModel struct {
	Uk           string `json:"uk" bson:"uk"`                       // 百度 uk
	MarkUsername string `json:"mark_username" bson:"mark_username"` // 脱敏 用户名
	Username     string `json:"username" bson:"username,omitempty"` // 用户名
	Avatar       string `json:"avatar" bson:"avatar"`
	IsVip        bool   `json:"is_vip" bson:"is_vip"`
	IsSuperVip   bool   `json:"is_super_vip" bson:"is_super_vip"`
}

type VipModel

type VipModel struct {
	Username string
	Cookie   string
	Enabled  bool
}

type VipSaveFileModel

type VipSaveFileModel struct {
	Id        bson.ObjectId `bson:"_id,omitempty"`
	Username  string        `bson:"username,omitempty"` // vip 用户名
	Md5       string        `bson:"md5,omitempty"`
	SliceMd5  string        `bson:"slice_md5,omitempty"`
	FileSize  int64         `bson:"file_size,omitempty"`
	Fid       string        `bson:"fid,omitempty"`
	AddAt     int64         `bson:"add_at,omitempty"` // 转存时间
	HitAt     int64         `bson:"hit_at,omitempty"` // 重复转存命中时间
	DeletedAt int64         `bson:"deleted_at"`       // 删除时间
}

func (*VipSaveFileModel) GetSavePath

func (f *VipSaveFileModel) GetSavePath() string

Jump to

Keyboard shortcuts

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