utils

package
v0.0.0-...-9bdafd8 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildMessage

func BuildMessage(msg *mdb.Message, mid int64) *social.Message

BuildMessage 打包单个Message

func BuildMessages

func BuildMessages(msgs []*mdb.Message) []*social.Message

BuildMessages 打包Message列表

func BuildStatus

func BuildStatus(err error) (int32, string)

BuildStatus 将error转换为StatusCode和StatusMsg

func BuildUsers

func BuildUsers(ids []int64, myID int64, ctx context.Context) []*user.User

Types

This section is empty.

Jump to

Keyboard shortcuts

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