idl

package
v0.0.0-...-db099c4 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TransChat

func TransChat(input *TransChatInput) (*model.ChatInfo, error)

TransChat 组装数据并输出 对外暴露的user结构,都应该经过此结构进行转换

func TransChatTime

func TransChatTime(cTime time.Time) string

func TransMsg

func TransMsg(input *TransMsgInput) (*model.MsgInfo, error)

func TransMsgTime

func TransMsgTime(cTime time.Time) string

func TransUser

func TransUser(input *TransUserInput) *model.UserInfo

组装数据并输出 对外暴露的user结构,都应该经过此结构进行转换

Types

type TransChatInput

type TransChatInput struct {
	CurUser   *model.UserBaseModel
	User      *model.UserBaseModel // 对方用户信息
	Msg       *model.MsgModel
	NewMsgNum int
}

TransChatInput trans chat input data

type TransMsgInput

type TransMsgInput struct {
	CurUser *model.UserBaseModel
	Msg     *model.MsgModel
}

type TransUserInput

type TransUserInput struct {
	CurUser       *model.UserBaseModel
	User          *model.UserBaseModel
	Point         int
	ActivityCount int
	IsFollow      int
	IsFollowed    int
	InviteStatus  int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳