pack

package
v0.0.0-...-cb3206a Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuilCommentBaseResp

func BuilCommentBaseResp(err error) *comment.BaseResp

BuildCommentBaseResp build comment baseResp from error

func BuilRelationBaseResp

func BuilRelationBaseResp(err error) *relation.BaseResp

BuildRelationBaseResp build relation baseResp from error

func BuildFavoriteBaseResp

func BuildFavoriteBaseResp(err error) *favorite.BaseResp

BuildFavoriteBaseResp build favorite baseResp from error

func BuildFeedBaseResp

func BuildFeedBaseResp(err error) *feed.BaseResp

BuildFeedBaseResp build feed baseResp from error

func BuildPublishBaseResp

func BuildPublishBaseResp(err error) *publish.BaseResp

BuildPublishBaseResp build publish baseResp from error

func BuildUserBaseResp

func BuildUserBaseResp(err error) *user.BaseResp

BuildUserBaseResp build user baseResp from error

func CommentInfo

func CommentInfo(commentRaw *db.CommentRaw, user *db.UserRaw) *comment.Comment

打包成可以直接返回的评论信息

func CommentList

func CommentList(currentId int64, comments []*db.CommentRaw, userMap map[int64]*db.UserRaw, relationMap map[int64]*db.RelationRaw) []*comment.Comment

func PublishInfo

func PublishInfo(currentId int64, videoData []*db.VideoRaw, userMap map[int64]*db.UserRaw, favoriteMap map[int64]*db.FavoriteRaw, relationMap map[int64]*db.RelationRaw) []*publish.Video

VideoInfo pack video list info

func UserInfo

func UserInfo(userRaw *db.UserRaw, isFollow bool) *user.User

func UserList

func UserList(currentId int64, users []*db.UserRaw, relationMap map[int64]*db.RelationRaw) []*relation.User

func VideoInfo

func VideoInfo(currentId int64, videoData []*db.VideoRaw, userMap map[int64]*db.UserRaw, favoriteMap map[int64]*db.FavoriteRaw, relationMap map[int64]*db.RelationRaw) ([]*feed.Video, int64)

VideoInfo pack video list info

func VideoList

func VideoList(currentId int64, videoData []*db.VideoRaw, userMap map[int64]*db.UserRaw, favoriteMap map[int64]*db.FavoriteRaw, relationMap map[int64]*db.RelationRaw) []*favorite.Video

VideoList pack video list info

Types

This section is empty.

Jump to

Keyboard shortcuts

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