Documentation
¶
Index ¶
- func AddComment(videoId int, token, commentText string) (vo.CommentVo, error)
- func AddFollowing(followingId string, userId int) error
- func AddVideo(userId int, title, fileName string) error
- func CheckIsLike(token string, videoId uint) bool
- func DownLike(userId, videoId int) error
- func FindLikeList(userId, token string, currentUserId int) []vo.VideoVo
- func GetAllVideo(token string) ([]vo.VideoVo, error)
- func GetCommentList(videoId int, token string) ([]vo.CommentVo, error)
- func GetFenshiListByUserId(userId int, token string) ([]vo.UserInfo, error)
- func GetFollowingListByUserId(userId int, token string) ([]vo.UserInfo, error)
- func GetUserAllVideo(id, token string) ([]vo.VideoVo, error)
- func GetUserInfoById(uId, userid int) (vo.UserInfo, error)
- func GetUserInfoByIds(ids []int, token string) ([]vo.UserInfo, error)
- func GetUsersByIds(ids []int, token string, userId int) ([]vo.UserInfo, error)
- func Like(userId, videoId int) error
- func RemoveCommentById(commentId, videoId int) error
- func RemoveFollowing(followingId string, userId int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddComment ¶
AddComment 添加视频评论
func GetCommentList ¶
GetCommentList 获取评论列表
func GetFenshiListByUserId ¶
GetFenshiListByUserId 根据用户id 获取 粉丝信息
func GetFollowingListByUserId ¶
GetFollowingListByUserId 根据用户id 获取 用户信息
func GetUserAllVideo ¶
根据单个id获取用户的全部Video(用于发布列表)
func GetUserInfoById ¶
根据单个id获取单个视频作者信息(用于发布列表)
func GetUserInfoByIds ¶
GetUserInfoByIds 根据用户的id集合获取用户的信息
func GetUsersByIds ¶
GetUsersByIds 获取用户信息
func RemoveCommentById ¶
RemoveCommentById 删除评论
func RemoveFollowing ¶
RemoveFollowing 取关
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.