chat

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: GPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DbToPbAttribute

func DbToPbAttribute(attribute *chat.Attribute) *common.UserPublicInfo

func DbToPbAttributes

func DbToPbAttributes(attributes []*chat.Attribute) []*common.UserPublicInfo

func DbToPbLogInfo added in v1.3.0

func DbToPbLogInfo(log *chat.Log) *common.LogInfo

func DbToPbLogInfos added in v1.3.0

func DbToPbLogInfos(logs []*chat.Log) []*common.LogInfo

func DbToPbUserFullInfo

func DbToPbUserFullInfo(attribute *chat.Attribute) *common.UserFullInfo

func DbToPbUserFullInfos

func DbToPbUserFullInfos(attributes []*chat.Attribute) []*common.UserFullInfo

func Start

func ToDBAttributeUpdate

func ToDBAttributeUpdate(req *chat.UpdateUserInfoReq) (map[string]any, error)

Types

type CallbackBeforeAddFriendReq added in v1.1.1

type CallbackBeforeAddFriendReq struct {
	CallbackCommand `json:"callbackCommand"`
	FromUserID      string `json:"fromUserID" `
	ToUserID        string `json:"toUserID"`
	ReqMsg          string `json:"reqMsg"`
	OperationID     string `json:"operationID"`
}

type CallbackCommand added in v1.1.1

type CallbackCommand string

func (CallbackCommand) GetCallbackCommand added in v1.1.1

func (c CallbackCommand) GetCallbackCommand() string

Jump to

Keyboard shortcuts

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