Documentation ¶
Index ¶
- func BuilCommentBaseResp(err error) *comment.BaseResp
- func BuilRelationBaseResp(err error) *relation.BaseResp
- func BuildFavoriteBaseResp(err error) *favorite.BaseResp
- func BuildFeedBaseResp(err error) *feed.BaseResp
- func BuildPublishBaseResp(err error) *publish.BaseResp
- func BuildUserBaseResp(err error) *user.BaseResp
- func CommentInfo(commentRaw *db.CommentRaw, user *db.UserRaw) *comment.Comment
- func CommentList(currentId int64, comments []*db.CommentRaw, userMap map[int64]*db.UserRaw, ...) []*comment.Comment
- func PublishInfo(currentId int64, videoData []*db.VideoRaw, userMap map[int64]*db.UserRaw, ...) []*publish.Video
- func UserInfo(userRaw *db.UserRaw, isFollow bool) *user.User
- func UserList(currentId int64, users []*db.UserRaw, relationMap map[int64]*db.RelationRaw) []*relation.User
- func VideoInfo(currentId int64, videoData []*db.VideoRaw, userMap map[int64]*db.UserRaw, ...) ([]*feed.Video, int64)
- func VideoList(currentId int64, videoData []*db.VideoRaw, userMap map[int64]*db.UserRaw, ...) []*favorite.Video
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuilCommentBaseResp ¶
BuildCommentBaseResp build comment baseResp from error
func BuilRelationBaseResp ¶
BuildRelationBaseResp build relation baseResp from error
func BuildFavoriteBaseResp ¶
BuildFavoriteBaseResp build favorite baseResp from error
func BuildFeedBaseResp ¶
BuildFeedBaseResp build feed baseResp from error
func BuildPublishBaseResp ¶
BuildPublishBaseResp build publish baseResp from error
func BuildUserBaseResp ¶
BuildUserBaseResp build user baseResp from error
func CommentInfo ¶
打包成可以直接返回的评论信息
func CommentList ¶
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.