pack

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildBaseResp

func BuildBaseResp(err error) *user.BaseResponse

BuildBaseResp build baseResp from error

func Comment

func Comment(c *dao.Comment, u *user.User) *video.Comment

Comment pack comment info

func Comments

func Comments(cs []*dao.Comment, users map[uint64]*user.User) []*video.Comment

Comments pack list of comment info

func Video

func Video(v *dao.Video, u *user.User) *video.Video

User pack video info

func Videos

func Videos(vs []*dao.Video, users map[uint64]*user.User) []*video.Video

Videos pack list of video info

func VideosOfSameUser

func VideosOfSameUser(vs []*dao.Video, user *user.User) []*video.Video

Types

This section is empty.

Jump to

Keyboard shortcuts

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