Documentation ¶
Index ¶
- func AddComment(data map[string]interface{}) (*defs.Comment, error)
- func AddSession(data map[string]interface{}) error
- func AddUser(data map[string]interface{}) error
- func AddVideoInfo(data map[string]interface{}) (*defs.Videoinfo, error)
- func CheckUser(uname string) (bool, error)
- func CloseDB()
- func DelUserInfo(data map[string]interface{}) error
- func DeleteSession(sid string) error
- func DeleteVideoInfo(vid string) error
- func ExistVideoInfoByVID(maps interface{}) (bool, error)
- func ForTestSetUp()
- func GetComment(vid string) (*defs.Comment, error)
- func GetCommentTotal(maps interface{}) (int, error)
- func GetComments(vid string, from, to int64) ([]defs.Comment, error)
- func GetCommentsByPage(pageNum int, pageSize int, maps interface{}) ([]defs.Comment, error)
- func GetSession(sid string) (*defs.Session, error)
- func GetSessions() ([]defs.Session, error)
- func GetUserInfo(uname string) (*defs.User, error)
- func GetVideoInfo(vid string) (*defs.Videoinfo, error)
- func GetVideoInfoTotal(maps interface{}) (int, error)
- func GetVideoInfos(uname string, from, to int) ([]defs.Videoinfo, error)
- func GetVideoInfosByPage(pageNum int, pageSize int, maps interface{}) ([]defs.Videoinfo, error)
- func SetUp()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddComment ¶
AddComment 添加评论
func AddVideoInfo ¶
AddVideoInfo 新增视频信息
func ExistVideoInfoByVID ¶
ExistVideoInfoByVID 查看视频信息是否存在
func ForTestSetUp ¶
func ForTestSetUp()
func GetCommentTotal ¶
GetCommentTotal 获取此用户的所有视频数
func GetComments ¶
GetComments 获取指定时间段的评论
func GetCommentsByPage ¶
GetCommentsByPage 获取指定页的评论
func GetVideoInfoTotal ¶
GetVideoInfoTotal 获取此用户的所有视频数
func GetVideoInfos ¶
GetVideoInfos 获取某段时间内用户的视频
func GetVideoInfosByPage ¶
GetVideoInfosByPage 按照分页获取视频信息
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.