Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FeedbackDao = &feedbackDao{}
View Source
var UserDao = &userDao{}
View Source
var Vip = &vipDao{}
View Source
var VipSaveFileDao = &vipSaveFileDao{}
Functions ¶
This section is empty.
Types ¶
type FeedbackModel ¶
type FileShareModel ¶
type FileShareModel struct {
}
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 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
Click to show internal directories.
Click to hide internal directories.