Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BroadCastMsg ¶
type BroadCastMsg struct { CMD string `json:"cmd"` Info []interface{} `json:"info"` }
BroadCastMsg 广播信息
func (*BroadCastMsg) DatatoString ¶
func (b *BroadCastMsg) DatatoString(s *SendMsg) string
DatatoString 数据处理转换为json
type DMService ¶
type DMService struct {
// contains filtered or unexported fields
}
DMService struct
func (*DMService) GetHistory ¶
func (s *DMService) GetHistory(ctx context.Context, req *v1pb.HistoryReq) (resp *v1pb.HistoryResp, err error)
GetHistory implementation
func (*DMService) SendMsg ¶
func (s *DMService) SendMsg(ctx context.Context, req *v1pb.SendMsgReq) (resp *v1pb.SendMsgResp, err error)
SendMsg implementation
type History ¶
type History struct { Text string `json:"text"` UID int64 `json:"uid"` NickName string `json:"nickname"` UnameColor string `json:"uname_color"` TimeLine string `json:"timeline"` Isadmin int32 `json:"isadmin"` Vip int `json:"vip"` SVip int `json:"svip"` Medal []interface{} `json:"medal"` Title []interface{} `json:"title"` //内容格式待定 UserLevel []interface{} `json:"user_level"` Rank int32 `json:"rank"` Teamid int64 `json:"teamid"` RND string `json:"rnd"` UserTitle string `json:"user_title"` GuardLevel int `json:"guard_level"` Bubble int64 `json:"bubble"` }
History 存档信息
func (*History) DatatoString ¶
DatatoString 数据处理转换为json
type SendMsg ¶
type SendMsg struct { SendMsgReq *v1pb.SendMsgReq Dmservice *DMService SendMsgResp *v1pb.SendMsgResp UserInfo *dao.UserInfo RoomConf *dao.RoomConf UserBindInfo *dao.UserBindInfo DMconf *dao.DMConf TitleConf *dao.CommentTitle UserScore *dao.UserScore LimitConf *dao.LimitConf }
SendMsg 发送弹幕逻辑参数
Click to show internal directories.
Click to hide internal directories.