convert

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommentConverterAPI

func CommentConverterAPI(comment *rpcmodel.Comment) *api.Comment

CommentConverterAPI convert *rpcmodel.Comment to *api.Comment, can only be called by api servers

func CommentConverterORM

func CommentConverterORM(ctx context.Context, q *query.Query, comment *model.Comment, userViewId int64) (res *rpcmodel.Comment, err error)

CommentConverterORM convert *model.Comment to *rpcmodel.Comment, can only be called by rpc servers

func UserConverterAPI

func UserConverterAPI(user *rpcmodel.User) *api.User

UserConverterAPI convert *rpcmodel.User to *api.User, can only be called by api servers

func UserConverterORM

func UserConverterORM(ctx context.Context, q *query.Query, user *model.User, userViewId int64) (res *rpcmodel.User, err error)

UserConverterORM convert *model.User to *rpcmodel.User, can only be called by rpc servers

func VideoConverterAPI

func VideoConverterAPI(video *rpcmodel.Video) *api.Video

VideoConverterAPI convert *rpcmodel.Video to *api.Video, can only be called by api servers

func VideoConverterORM

func VideoConverterORM(ctx context.Context, q *query.Query, video *model.Video, userViewId int64) (res *rpcmodel.Video, err error)

VideoConverterORM convert *model.Videos to *rpcmodel.Videos, can only be called by rpc servers

Types

This section is empty.

Jump to

Keyboard shortcuts

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