package chat import ( "go_dreamfactory/comm" "go_dreamfactory/pb" "google.golang.org/protobuf/proto" ) //参数校验 func (this *apiComp) SpanSendCheck(session comm.IUserSession, req *pb.ChatSpanSendReq) (code pb.ErrorCode) { return } ///跨越服务消息请求 func (this *apiComp) SpanSend(session comm.IUserSession, req *pb.ChatSpanSendReq) (code pb.ErrorCode, data proto.Message) { defer func() { if code == pb.ErrorCode_Success { session.SendMsg(string(this.module.GetType()), "send", &pb.ChatSendResp{}) } }() return }