Documentation ¶
Index ¶
- func CommentConverterAPI(comment *rpcmodel.Comment) *api.Comment
- func CommentConverterORM(ctx context.Context, q *query.Query, comment *model.Comment, userViewId int64) (res *rpcmodel.Comment, err error)
- func UserConverterAPI(user *rpcmodel.User) *api.User
- func UserConverterORM(ctx context.Context, q *query.Query, user *model.User, userViewId int64) (res *rpcmodel.User, err error)
- func VideoConverterAPI(video *rpcmodel.Video) *api.Video
- func VideoConverterORM(ctx context.Context, q *query.Query, video *model.Video, userViewId int64) (res *rpcmodel.Video, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommentConverterAPI ¶
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 ¶
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 ¶
VideoConverterAPI convert *rpcmodel.Video to *api.Video, can only be called by api servers
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.