Documentation ¶
Index ¶
- func DeleteComment(ctx context.Context, commentId int64, videoId int64, userId int64) (err error)
- func FavoriteAction(ctx context.Context, userId int64, videoId int64, isFavorite bool) (err error)
- func FollowAction(ctx context.Context, userId int64, toUserId int64) (err error)
- func GetFavoriteCount(ctx context.Context, userId int64) (count int64, err error)
- func GetWorkCount(ctx context.Context, userId int64) (count int64, err error)
- func IsFavorite(ctx context.Context, userId int64, videoId int64) (res bool, err error)
- func IsFollow(ctx context.Context, userId int64, followerId int64) (res bool, err error)
- func PublishVideo(ctx context.Context, info *TVideoInfo, data []byte, objName string) (err error)
- func SendMessage(ctx context.Context, userId int64, toUserId int64, context string, ...) (err error)
- func UnfollowAction(ctx context.Context, userId int64, toUserId int64) (err error)
- func WriteUserInfo(ctx context.Context, info *TUserInfo) (userId int64, err error)
- type PublicAttr
- type TComment
- type TFollowList
- type TLikedVideo
- type TMessage
- type TUserInfo
- type TVideoInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteComment ¶
func FavoriteAction ¶
func FollowAction ¶
func GetFavoriteCount ¶
func IsFavorite ¶
func PublishVideo ¶
func SendMessage ¶
func UnfollowAction ¶
Types ¶
type PublicAttr ¶
type TComment ¶
func GetCommentList ¶
type TFollowList ¶
type TFollowList struct { UserId int64 FollowerId int64 Status bool PublicAttr }
func GetFollowList ¶
func GetFollowList(ctx context.Context, userId int64) (list []TFollowList, err error)
func GetFollowerList ¶
func GetFollowerList(ctx context.Context, userId int64) (list []TFollowList, err error)
func GetFriendList ¶
func GetFriendList(ctx context.Context, userId int64) (list []TFollowList, err error)
type TLikedVideo ¶
type TLikedVideo struct { UserId int64 VideoId int64 PublicAttr }
type TUserInfo ¶
type TUserInfo struct { Username string Password string FollowCount int64 FollowerCount int64 PublicAttr }
type TVideoInfo ¶
type TVideoInfo struct { AuthorId int64 PublishTime time.Time CoverUrl string PlayUrl string FavoriteCount int64 CommentCount int64 Title string PublicAttr }
func GetFavoriteList ¶
func GetFavoriteList(ctx context.Context, userId int64) (list []TVideoInfo, err error)
func GetVideoById ¶
func GetVideoById(ctx context.Context, id int64) (list []TVideoInfo, err error)
func GetVideoList ¶
func GetVideoList(ctx context.Context, latestTime int64) (list []TVideoInfo, err error)
Click to show internal directories.
Click to hide internal directories.