service

package
v0.0.0-...-c335ce4 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddComment

func AddComment(videoId int, token, commentText string) (vo.CommentVo, error)

AddComment 添加视频评论

func AddFollowing

func AddFollowing(followingId string, userId int) error

AddFollowing 关注

func AddVideo

func AddVideo(userId int, title, fileName string) error

AddVideo 添加视频

func CheckIsLike

func CheckIsLike(token string, videoId uint) bool

CheckIsLike 是否点赞

func DownLike

func DownLike(userId, videoId int) error

func FindLikeList

func FindLikeList(userId, token string, currentUserId int) []vo.VideoVo

func GetAllVideo

func GetAllVideo(token string) ([]vo.VideoVo, error)

GetAllVideo 获取所有视频(最前发布20个)

func GetCommentList

func GetCommentList(videoId int, token string) ([]vo.CommentVo, error)

GetCommentList 获取评论列表

func GetFenshiListByUserId

func GetFenshiListByUserId(userId int, token string) ([]vo.UserInfo, error)

GetFenshiListByUserId 根据用户id 获取 粉丝信息

func GetFollowingListByUserId

func GetFollowingListByUserId(userId int, token string) ([]vo.UserInfo, error)

GetFollowingListByUserId 根据用户id 获取 用户信息

func GetUserAllVideo

func GetUserAllVideo(id, token string) ([]vo.VideoVo, error)

根据单个id获取用户的全部Video(用于发布列表)

func GetUserInfoById

func GetUserInfoById(uId, userid int) (vo.UserInfo, error)

根据单个id获取单个视频作者信息(用于发布列表)

func GetUserInfoByIds

func GetUserInfoByIds(ids []int, token string) ([]vo.UserInfo, error)

GetUserInfoByIds 根据用户的id集合获取用户的信息

func GetUsersByIds

func GetUsersByIds(ids []int, token string, userId int) ([]vo.UserInfo, error)

GetUsersByIds 获取用户信息

func Like

func Like(userId, videoId int) error

func RemoveCommentById

func RemoveCommentById(commentId, videoId int) error

RemoveCommentById 删除评论

func RemoveFollowing

func RemoveFollowing(followingId string, userId int) error

RemoveFollowing 取关

Types

This section is empty.

Jump to

Keyboard shortcuts

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