Documentation
¶
Index ¶
- func TransChat(input *TransChatInput) (*model.ChatInfo, error)
- func TransChatTime(cTime time.Time) string
- func TransMsg(input *TransMsgInput) (*model.MsgInfo, error)
- func TransMsgTime(cTime time.Time) string
- func TransUser(input *TransUserInput) *model.UserInfo
- type TransChatInput
- type TransMsgInput
- type TransUserInput
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 TransMsgTime ¶
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 }
Click to show internal directories.
Click to hide internal directories.