pack

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCommentActionResp

func BuildCommentActionResp(err error) *comment.DouyinCommentActionResponse

BuildCommentActionResp build CommentActionResp from error

func BuildCommentListResp

func BuildCommentListResp(err error) *comment.DouyinCommentListResponse

BuildCommentListResp build CommentListResp from error

func BuildFavoriteActionResp

func BuildFavoriteActionResp(err error) *favorite.DouyinFavoriteActionResponse

BuildFavoriteActionResp build FavoriteActionResp from error

func BuildFavoriteListResp

func BuildFavoriteListResp(err error) *favorite.DouyinFavoriteListResponse

BuildFavoriteListResp build FavoriteListResp from error

func BuildFollowerListResp

func BuildFollowerListResp(err error) *relation.DouyinRelationFollowerListResponse

BuildFollowerListResp build FollowerListResp from error

func BuildFollowingListResp

func BuildFollowingListResp(err error) *relation.DouyinRelationFollowListResponse

BuildFollowingListResp build FollowingListResp from error

func BuildPublishListResp

func BuildPublishListResp(err error) *publish.DouyinPublishListResponse

BuildPublishResp build PublishResp from error

func BuildPublishResp

func BuildPublishResp(err error) *publish.DouyinPublishActionResponse

BuildPublishResp build PublishResp from error

func BuildRelationActionResp

func BuildRelationActionResp(err error) *relation.DouyinRelationActionResponse

BuildRelationActionResp build RelationActionResp from error

func BuildVideoResp

func BuildVideoResp(err error) *feed.DouyinFeedResponse

BuildVideoResp build VideoResp from error

func BuilduserRegisterResp

func BuilduserRegisterResp(err error) *user.DouyinUserRegisterResponse

BuilduserRegisterResp build userRegisterResp from error

func BuilduserUserResp

func BuilduserUserResp(err error) *user.DouyinUserResponse

BuilduserResp build userResp from error

func Comments

func Comments(ctx context.Context, vs []*db.Comment, fromID int64) ([]*comment.Comment, error)

Comment pack Comments info.

func FavoriteVideos

func FavoriteVideos(ctx context.Context, vs []db.Video, uid *int64) ([]*feed.Video, error)

FavoriteVideos pack favoriteVideos info.

func FollowerList

func FollowerList(ctx context.Context, vs []*db.Relation, fromID int64) ([]*user.User, error)

FollowerList pack lists of follower info.

func FollowingList

func FollowingList(ctx context.Context, vs []*db.Relation, fromID int64) ([]*user.User, error)

FollowingList pack lists of following info.

func User

func User(ctx context.Context, u *db.User, fromID int64) (*user.User, error)

User pack user info

func Users

func Users(ctx context.Context, us []*db.User, fromID int64) ([]*user.User, error)

Users pack list of user info

func Video

func Video(ctx context.Context, v *db.Video, fromID int64) (*feed.Video, error)

Video pack feed info

func Videos

func Videos(ctx context.Context, vs []*db.Video, fromID *int64) ([]*feed.Video, error)

Videos pack list of video info

Types

This section is empty.

Jump to

Keyboard shortcuts

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