board_chat_api

package
v0.0.0-...-c756e77 Latest Latest
Warning

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

Go to latest
Published: May 10, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BoardChatApi_Send_FullMethodName           = "/board_chat_api.BoardChatApi/send"
	BoardChatApi_ListAfter_FullMethodName      = "/board_chat_api.BoardChatApi/listAfter"
	BoardChatApi_ListBefore_FullMethodName     = "/board_chat_api.BoardChatApi/listBefore"
	BoardChatApi_GetUnreadCount_FullMethodName = "/board_chat_api.BoardChatApi/getUnreadCount"
	BoardChatApi_ClearUnread_FullMethodName    = "/board_chat_api.BoardChatApi/clearUnread"
)

Variables

View Source
var (
	SendResponse_CODE_name = map[int32]string{
		0: "CODE_OK",
		1: "CODE_WRONG_SESSION",
		2: "CODE_NO_PERMISSION",
		4: "CODE_NO_BOARD",
		5: "CODE_NO_DRAW",
	}
	SendResponse_CODE_value = map[string]int32{
		"CODE_OK":            0,
		"CODE_WRONG_SESSION": 1,
		"CODE_NO_PERMISSION": 2,
		"CODE_NO_BOARD":      4,
		"CODE_NO_DRAW":       5,
	}
)

Enum value maps for SendResponse_CODE.

View Source
var (
	ListAfterResponse_CODE_name = map[int32]string{
		0: "CODE_OK",
		1: "CODE_WRONG_SESSION",
		2: "CODE_NO_PERMISSION",
		4: "CODE_NO_BOARD",
		5: "CODE_NO_DRAW",
		6: "CODE_NO_MSG",
	}
	ListAfterResponse_CODE_value = map[string]int32{
		"CODE_OK":            0,
		"CODE_WRONG_SESSION": 1,
		"CODE_NO_PERMISSION": 2,
		"CODE_NO_BOARD":      4,
		"CODE_NO_DRAW":       5,
		"CODE_NO_MSG":        6,
	}
)

Enum value maps for ListAfterResponse_CODE.

View Source
var (
	ListBeforeResponse_CODE_name = map[int32]string{
		0: "CODE_OK",
		1: "CODE_WRONG_SESSION",
		2: "CODE_NO_PERMISSION",
		4: "CODE_NO_BOARD",
		5: "CODE_NO_DRAW",
		6: "CODE_NO_MSG",
	}
	ListBeforeResponse_CODE_value = map[string]int32{
		"CODE_OK":            0,
		"CODE_WRONG_SESSION": 1,
		"CODE_NO_PERMISSION": 2,
		"CODE_NO_BOARD":      4,
		"CODE_NO_DRAW":       5,
		"CODE_NO_MSG":        6,
	}
)

Enum value maps for ListBeforeResponse_CODE.

View Source
var (
	GetUnreadCountResponse_CODE_name = map[int32]string{
		0: "CODE_OK",
		1: "CODE_WRONG_SESSION",
		2: "CODE_NO_PERMISSION",
		4: "CODE_NO_BOARD",
		5: "CODE_NO_DRAW",
	}
	GetUnreadCountResponse_CODE_value = map[string]int32{
		"CODE_OK":            0,
		"CODE_WRONG_SESSION": 1,
		"CODE_NO_PERMISSION": 2,
		"CODE_NO_BOARD":      4,
		"CODE_NO_DRAW":       5,
	}
)

Enum value maps for GetUnreadCountResponse_CODE.

View Source
var (
	ClearUnreadResponse_CODE_name = map[int32]string{
		0: "CODE_OK",
		1: "CODE_WRONG_SESSION",
		2: "CODE_NO_PERMISSION",
		4: "CODE_NO_BOARD",
		5: "CODE_NO_DRAW",
	}
	ClearUnreadResponse_CODE_value = map[string]int32{
		"CODE_OK":            0,
		"CODE_WRONG_SESSION": 1,
		"CODE_NO_PERMISSION": 2,
		"CODE_NO_BOARD":      4,
		"CODE_NO_DRAW":       5,
	}
)

Enum value maps for ClearUnreadResponse_CODE.

View Source
var BoardChatApi_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "board_chat_api.BoardChatApi",
	HandlerType: (*BoardChatApiServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "send",
			Handler:    _BoardChatApi_Send_Handler,
		},
		{
			MethodName: "listAfter",
			Handler:    _BoardChatApi_ListAfter_Handler,
		},
		{
			MethodName: "listBefore",
			Handler:    _BoardChatApi_ListBefore_Handler,
		},
		{
			MethodName: "getUnreadCount",
			Handler:    _BoardChatApi_GetUnreadCount_Handler,
		},
		{
			MethodName: "clearUnread",
			Handler:    _BoardChatApi_ClearUnread_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "board_chat_api.proto",
}

BoardChatApi_ServiceDesc is the grpc.ServiceDesc for BoardChatApi service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_board_chat_api_proto protoreflect.FileDescriptor

Functions

func RegisterBoardChatApiServer

func RegisterBoardChatApiServer(s grpc.ServiceRegistrar, srv BoardChatApiServer)

Types

type BoardChatApiClient

type BoardChatApiClient interface {
	// 发送消息
	Send(ctx context.Context, in *SendRequest, opts ...grpc.CallOption) (*SendResponse, error)
	// 列出后续消息
	ListAfter(ctx context.Context, in *ListAfterRequest, opts ...grpc.CallOption) (*ListAfterResponse, error)
	// 列出前置消息
	ListBefore(ctx context.Context, in *ListBeforeRequest, opts ...grpc.CallOption) (*ListBeforeResponse, error)
	// 获取未读消息数量
	GetUnreadCount(ctx context.Context, in *GetUnreadCountRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error)
	// 清除未读消息数量
	ClearUnread(ctx context.Context, in *ClearUnreadRequest, opts ...grpc.CallOption) (*ClearUnreadResponse, error)
}

BoardChatApiClient is the client API for BoardChatApi service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewBoardChatApiClient

func NewBoardChatApiClient(cc grpc.ClientConnInterface) BoardChatApiClient

type BoardChatApiServer

type BoardChatApiServer interface {
	// 发送消息
	Send(context.Context, *SendRequest) (*SendResponse, error)
	// 列出后续消息
	ListAfter(context.Context, *ListAfterRequest) (*ListAfterResponse, error)
	// 列出前置消息
	ListBefore(context.Context, *ListBeforeRequest) (*ListBeforeResponse, error)
	// 获取未读消息数量
	GetUnreadCount(context.Context, *GetUnreadCountRequest) (*GetUnreadCountResponse, error)
	// 清除未读消息数量
	ClearUnread(context.Context, *ClearUnreadRequest) (*ClearUnreadResponse, error)
	// contains filtered or unexported methods
}

BoardChatApiServer is the server API for BoardChatApi service. All implementations must embed UnimplementedBoardChatApiServer for forward compatibility

type ClearUnreadRequest

type ClearUnreadRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"`
	// string teamId = 2;
	BoardId string `protobuf:"bytes,3,opt,name=boardId,proto3" json:"boardId,omitempty"`
	DrawId  string `protobuf:"bytes,4,opt,name=drawId,proto3" json:"drawId,omitempty"`
	// contains filtered or unexported fields
}

func (*ClearUnreadRequest) Descriptor deprecated

func (*ClearUnreadRequest) Descriptor() ([]byte, []int)

Deprecated: Use ClearUnreadRequest.ProtoReflect.Descriptor instead.

func (*ClearUnreadRequest) GetBoardId

func (x *ClearUnreadRequest) GetBoardId() string

func (*ClearUnreadRequest) GetDrawId

func (x *ClearUnreadRequest) GetDrawId() string

func (*ClearUnreadRequest) GetSessionId

func (x *ClearUnreadRequest) GetSessionId() string

func (*ClearUnreadRequest) ProtoMessage

func (*ClearUnreadRequest) ProtoMessage()

func (*ClearUnreadRequest) ProtoReflect

func (x *ClearUnreadRequest) ProtoReflect() protoreflect.Message

func (*ClearUnreadRequest) Reset

func (x *ClearUnreadRequest) Reset()

func (*ClearUnreadRequest) String

func (x *ClearUnreadRequest) String() string

type ClearUnreadResponse

type ClearUnreadResponse struct {
	Code   ClearUnreadResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=board_chat_api.ClearUnreadResponse_CODE" json:"code,omitempty"`
	ErrMsg string                   `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	// contains filtered or unexported fields
}

func (*ClearUnreadResponse) Descriptor deprecated

func (*ClearUnreadResponse) Descriptor() ([]byte, []int)

Deprecated: Use ClearUnreadResponse.ProtoReflect.Descriptor instead.

func (*ClearUnreadResponse) GetCode

func (*ClearUnreadResponse) GetErrMsg

func (x *ClearUnreadResponse) GetErrMsg() string

func (*ClearUnreadResponse) ProtoMessage

func (*ClearUnreadResponse) ProtoMessage()

func (*ClearUnreadResponse) ProtoReflect

func (x *ClearUnreadResponse) ProtoReflect() protoreflect.Message

func (*ClearUnreadResponse) Reset

func (x *ClearUnreadResponse) Reset()

func (*ClearUnreadResponse) String

func (x *ClearUnreadResponse) String() string

type ClearUnreadResponse_CODE

type ClearUnreadResponse_CODE int32
const (
	ClearUnreadResponse_CODE_OK            ClearUnreadResponse_CODE = 0
	ClearUnreadResponse_CODE_WRONG_SESSION ClearUnreadResponse_CODE = 1
	ClearUnreadResponse_CODE_NO_PERMISSION ClearUnreadResponse_CODE = 2
	// CODE_NO_TEAM = 3;
	ClearUnreadResponse_CODE_NO_BOARD ClearUnreadResponse_CODE = 4
	ClearUnreadResponse_CODE_NO_DRAW  ClearUnreadResponse_CODE = 5
)

func (ClearUnreadResponse_CODE) Descriptor

func (ClearUnreadResponse_CODE) Enum

func (ClearUnreadResponse_CODE) EnumDescriptor deprecated

func (ClearUnreadResponse_CODE) EnumDescriptor() ([]byte, []int)

Deprecated: Use ClearUnreadResponse_CODE.Descriptor instead.

func (ClearUnreadResponse_CODE) Number

func (ClearUnreadResponse_CODE) String

func (x ClearUnreadResponse_CODE) String() string

func (ClearUnreadResponse_CODE) Type

type GetUnreadCountRequest

type GetUnreadCountRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"`
	// string teamId = 2;
	BoardId string `protobuf:"bytes,3,opt,name=boardId,proto3" json:"boardId,omitempty"`
	DrawId  string `protobuf:"bytes,4,opt,name=drawId,proto3" json:"drawId,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUnreadCountRequest) Descriptor deprecated

func (*GetUnreadCountRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUnreadCountRequest.ProtoReflect.Descriptor instead.

func (*GetUnreadCountRequest) GetBoardId

func (x *GetUnreadCountRequest) GetBoardId() string

func (*GetUnreadCountRequest) GetDrawId

func (x *GetUnreadCountRequest) GetDrawId() string

func (*GetUnreadCountRequest) GetSessionId

func (x *GetUnreadCountRequest) GetSessionId() string

func (*GetUnreadCountRequest) ProtoMessage

func (*GetUnreadCountRequest) ProtoMessage()

func (*GetUnreadCountRequest) ProtoReflect

func (x *GetUnreadCountRequest) ProtoReflect() protoreflect.Message

func (*GetUnreadCountRequest) Reset

func (x *GetUnreadCountRequest) Reset()

func (*GetUnreadCountRequest) String

func (x *GetUnreadCountRequest) String() string

type GetUnreadCountResponse

type GetUnreadCountResponse struct {
	Code        GetUnreadCountResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=board_chat_api.GetUnreadCountResponse_CODE" json:"code,omitempty"`
	ErrMsg      string                      `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	UnreadCount uint32                      `protobuf:"varint,3,opt,name=unreadCount,proto3" json:"unreadCount,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUnreadCountResponse) Descriptor deprecated

func (*GetUnreadCountResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetUnreadCountResponse.ProtoReflect.Descriptor instead.

func (*GetUnreadCountResponse) GetCode

func (*GetUnreadCountResponse) GetErrMsg

func (x *GetUnreadCountResponse) GetErrMsg() string

func (*GetUnreadCountResponse) GetUnreadCount

func (x *GetUnreadCountResponse) GetUnreadCount() uint32

func (*GetUnreadCountResponse) ProtoMessage

func (*GetUnreadCountResponse) ProtoMessage()

func (*GetUnreadCountResponse) ProtoReflect

func (x *GetUnreadCountResponse) ProtoReflect() protoreflect.Message

func (*GetUnreadCountResponse) Reset

func (x *GetUnreadCountResponse) Reset()

func (*GetUnreadCountResponse) String

func (x *GetUnreadCountResponse) String() string

type GetUnreadCountResponse_CODE

type GetUnreadCountResponse_CODE int32
const (
	GetUnreadCountResponse_CODE_OK            GetUnreadCountResponse_CODE = 0
	GetUnreadCountResponse_CODE_WRONG_SESSION GetUnreadCountResponse_CODE = 1
	GetUnreadCountResponse_CODE_NO_PERMISSION GetUnreadCountResponse_CODE = 2
	// CODE_NO_TEAM = 3;
	GetUnreadCountResponse_CODE_NO_BOARD GetUnreadCountResponse_CODE = 4
	GetUnreadCountResponse_CODE_NO_DRAW  GetUnreadCountResponse_CODE = 5
)

func (GetUnreadCountResponse_CODE) Descriptor

func (GetUnreadCountResponse_CODE) Enum

func (GetUnreadCountResponse_CODE) EnumDescriptor deprecated

func (GetUnreadCountResponse_CODE) EnumDescriptor() ([]byte, []int)

Deprecated: Use GetUnreadCountResponse_CODE.Descriptor instead.

func (GetUnreadCountResponse_CODE) Number

func (GetUnreadCountResponse_CODE) String

func (GetUnreadCountResponse_CODE) Type

type ListAfterRequest

type ListAfterRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"`
	// string teamId = 2;
	BoardId string `protobuf:"bytes,3,opt,name=boardId,proto3" json:"boardId,omitempty"`
	DrawId  string `protobuf:"bytes,4,opt,name=drawId,proto3" json:"drawId,omitempty"`
	MsgId   string `protobuf:"bytes,5,opt,name=msgId,proto3" json:"msgId,omitempty"`
	Limit   uint32 `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAfterRequest) Descriptor deprecated

func (*ListAfterRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListAfterRequest.ProtoReflect.Descriptor instead.

func (*ListAfterRequest) GetBoardId

func (x *ListAfterRequest) GetBoardId() string

func (*ListAfterRequest) GetDrawId

func (x *ListAfterRequest) GetDrawId() string

func (*ListAfterRequest) GetLimit

func (x *ListAfterRequest) GetLimit() uint32

func (*ListAfterRequest) GetMsgId

func (x *ListAfterRequest) GetMsgId() string

func (*ListAfterRequest) GetSessionId

func (x *ListAfterRequest) GetSessionId() string

func (*ListAfterRequest) ProtoMessage

func (*ListAfterRequest) ProtoMessage()

func (*ListAfterRequest) ProtoReflect

func (x *ListAfterRequest) ProtoReflect() protoreflect.Message

func (*ListAfterRequest) Reset

func (x *ListAfterRequest) Reset()

func (*ListAfterRequest) String

func (x *ListAfterRequest) String() string

type ListAfterResponse

type ListAfterResponse struct {
	Code      ListAfterResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=board_chat_api.ListAfterResponse_CODE" json:"code,omitempty"`
	ErrMsg    string                 `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	MsgList   []*MsgInfo             `protobuf:"bytes,3,rep,name=msgList,proto3" json:"msgList,omitempty"`
	LastMsgId string                 `protobuf:"bytes,4,opt,name=lastMsgId,proto3" json:"lastMsgId,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAfterResponse) Descriptor deprecated

func (*ListAfterResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListAfterResponse.ProtoReflect.Descriptor instead.

func (*ListAfterResponse) GetCode

func (*ListAfterResponse) GetErrMsg

func (x *ListAfterResponse) GetErrMsg() string

func (*ListAfterResponse) GetLastMsgId

func (x *ListAfterResponse) GetLastMsgId() string

func (*ListAfterResponse) GetMsgList

func (x *ListAfterResponse) GetMsgList() []*MsgInfo

func (*ListAfterResponse) ProtoMessage

func (*ListAfterResponse) ProtoMessage()

func (*ListAfterResponse) ProtoReflect

func (x *ListAfterResponse) ProtoReflect() protoreflect.Message

func (*ListAfterResponse) Reset

func (x *ListAfterResponse) Reset()

func (*ListAfterResponse) String

func (x *ListAfterResponse) String() string

type ListAfterResponse_CODE

type ListAfterResponse_CODE int32
const (
	ListAfterResponse_CODE_OK            ListAfterResponse_CODE = 0
	ListAfterResponse_CODE_WRONG_SESSION ListAfterResponse_CODE = 1
	ListAfterResponse_CODE_NO_PERMISSION ListAfterResponse_CODE = 2
	// CODE_NO_TEAM = 3;
	ListAfterResponse_CODE_NO_BOARD ListAfterResponse_CODE = 4
	ListAfterResponse_CODE_NO_DRAW  ListAfterResponse_CODE = 5
	ListAfterResponse_CODE_NO_MSG   ListAfterResponse_CODE = 6
)

func (ListAfterResponse_CODE) Descriptor

func (ListAfterResponse_CODE) Enum

func (ListAfterResponse_CODE) EnumDescriptor deprecated

func (ListAfterResponse_CODE) EnumDescriptor() ([]byte, []int)

Deprecated: Use ListAfterResponse_CODE.Descriptor instead.

func (ListAfterResponse_CODE) Number

func (ListAfterResponse_CODE) String

func (x ListAfterResponse_CODE) String() string

func (ListAfterResponse_CODE) Type

type ListBeforeRequest

type ListBeforeRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"`
	// string teamId = 2;
	BoardId string `protobuf:"bytes,3,opt,name=boardId,proto3" json:"boardId,omitempty"`
	DrawId  string `protobuf:"bytes,4,opt,name=drawId,proto3" json:"drawId,omitempty"`
	MsgId   string `protobuf:"bytes,5,opt,name=msgId,proto3" json:"msgId,omitempty"`
	Limit   uint32 `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBeforeRequest) Descriptor deprecated

func (*ListBeforeRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListBeforeRequest.ProtoReflect.Descriptor instead.

func (*ListBeforeRequest) GetBoardId

func (x *ListBeforeRequest) GetBoardId() string

func (*ListBeforeRequest) GetDrawId

func (x *ListBeforeRequest) GetDrawId() string

func (*ListBeforeRequest) GetLimit

func (x *ListBeforeRequest) GetLimit() uint32

func (*ListBeforeRequest) GetMsgId

func (x *ListBeforeRequest) GetMsgId() string

func (*ListBeforeRequest) GetSessionId

func (x *ListBeforeRequest) GetSessionId() string

func (*ListBeforeRequest) ProtoMessage

func (*ListBeforeRequest) ProtoMessage()

func (*ListBeforeRequest) ProtoReflect

func (x *ListBeforeRequest) ProtoReflect() protoreflect.Message

func (*ListBeforeRequest) Reset

func (x *ListBeforeRequest) Reset()

func (*ListBeforeRequest) String

func (x *ListBeforeRequest) String() string

type ListBeforeResponse

type ListBeforeResponse struct {
	Code      ListBeforeResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=board_chat_api.ListBeforeResponse_CODE" json:"code,omitempty"`
	ErrMsg    string                  `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	MsgList   []*MsgInfo              `protobuf:"bytes,3,rep,name=msgList,proto3" json:"msgList,omitempty"`
	LastMsgId string                  `protobuf:"bytes,4,opt,name=lastMsgId,proto3" json:"lastMsgId,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBeforeResponse) Descriptor deprecated

func (*ListBeforeResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListBeforeResponse.ProtoReflect.Descriptor instead.

func (*ListBeforeResponse) GetCode

func (*ListBeforeResponse) GetErrMsg

func (x *ListBeforeResponse) GetErrMsg() string

func (*ListBeforeResponse) GetLastMsgId

func (x *ListBeforeResponse) GetLastMsgId() string

func (*ListBeforeResponse) GetMsgList

func (x *ListBeforeResponse) GetMsgList() []*MsgInfo

func (*ListBeforeResponse) ProtoMessage

func (*ListBeforeResponse) ProtoMessage()

func (*ListBeforeResponse) ProtoReflect

func (x *ListBeforeResponse) ProtoReflect() protoreflect.Message

func (*ListBeforeResponse) Reset

func (x *ListBeforeResponse) Reset()

func (*ListBeforeResponse) String

func (x *ListBeforeResponse) String() string

type ListBeforeResponse_CODE

type ListBeforeResponse_CODE int32
const (
	ListBeforeResponse_CODE_OK            ListBeforeResponse_CODE = 0
	ListBeforeResponse_CODE_WRONG_SESSION ListBeforeResponse_CODE = 1
	ListBeforeResponse_CODE_NO_PERMISSION ListBeforeResponse_CODE = 2
	// CODE_NO_TEAM = 3;
	ListBeforeResponse_CODE_NO_BOARD ListBeforeResponse_CODE = 4
	ListBeforeResponse_CODE_NO_DRAW  ListBeforeResponse_CODE = 5
	ListBeforeResponse_CODE_NO_MSG   ListBeforeResponse_CODE = 6
)

func (ListBeforeResponse_CODE) Descriptor

func (ListBeforeResponse_CODE) Enum

func (ListBeforeResponse_CODE) EnumDescriptor deprecated

func (ListBeforeResponse_CODE) EnumDescriptor() ([]byte, []int)

Deprecated: Use ListBeforeResponse_CODE.Descriptor instead.

func (ListBeforeResponse_CODE) Number

func (ListBeforeResponse_CODE) String

func (x ListBeforeResponse_CODE) String() string

func (ListBeforeResponse_CODE) Type

type MsgInfo

type MsgInfo struct {
	MsgId           string `protobuf:"bytes,1,opt,name=msgId,proto3" json:"msgId,omitempty"`
	Content         string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	SendUserId      string `protobuf:"bytes,10,opt,name=sendUserId,proto3" json:"sendUserId,omitempty"`
	SendDisplayName string `protobuf:"bytes,11,opt,name=sendDisplayName,proto3" json:"sendDisplayName,omitempty"`
	SendLogoUri     string `protobuf:"bytes,12,opt,name=sendLogoUri,proto3" json:"sendLogoUri,omitempty"`
	SendTime        int64  `protobuf:"varint,13,opt,name=sendTime,proto3" json:"sendTime,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgInfo) Descriptor deprecated

func (*MsgInfo) Descriptor() ([]byte, []int)

Deprecated: Use MsgInfo.ProtoReflect.Descriptor instead.

func (*MsgInfo) GetContent

func (x *MsgInfo) GetContent() string

func (*MsgInfo) GetMsgId

func (x *MsgInfo) GetMsgId() string

func (*MsgInfo) GetSendDisplayName

func (x *MsgInfo) GetSendDisplayName() string

func (*MsgInfo) GetSendLogoUri

func (x *MsgInfo) GetSendLogoUri() string

func (*MsgInfo) GetSendTime

func (x *MsgInfo) GetSendTime() int64

func (*MsgInfo) GetSendUserId

func (x *MsgInfo) GetSendUserId() string

func (*MsgInfo) ProtoMessage

func (*MsgInfo) ProtoMessage()

func (*MsgInfo) ProtoReflect

func (x *MsgInfo) ProtoReflect() protoreflect.Message

func (*MsgInfo) Reset

func (x *MsgInfo) Reset()

func (*MsgInfo) String

func (x *MsgInfo) String() string

type SendRequest

type SendRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"`
	// string teamId = 2;
	BoardId string `protobuf:"bytes,3,opt,name=boardId,proto3" json:"boardId,omitempty"`
	DrawId  string `protobuf:"bytes,4,opt,name=drawId,proto3" json:"drawId,omitempty"`
	Content string `protobuf:"bytes,10,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*SendRequest) Descriptor deprecated

func (*SendRequest) Descriptor() ([]byte, []int)

Deprecated: Use SendRequest.ProtoReflect.Descriptor instead.

func (*SendRequest) GetBoardId

func (x *SendRequest) GetBoardId() string

func (*SendRequest) GetContent

func (x *SendRequest) GetContent() string

func (*SendRequest) GetDrawId

func (x *SendRequest) GetDrawId() string

func (*SendRequest) GetSessionId

func (x *SendRequest) GetSessionId() string

func (*SendRequest) ProtoMessage

func (*SendRequest) ProtoMessage()

func (*SendRequest) ProtoReflect

func (x *SendRequest) ProtoReflect() protoreflect.Message

func (*SendRequest) Reset

func (x *SendRequest) Reset()

func (*SendRequest) String

func (x *SendRequest) String() string

type SendResponse

type SendResponse struct {
	Code   SendResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=board_chat_api.SendResponse_CODE" json:"code,omitempty"`
	ErrMsg string            `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	MsgId  string            `protobuf:"bytes,3,opt,name=msgId,proto3" json:"msgId,omitempty"`
	// contains filtered or unexported fields
}

func (*SendResponse) Descriptor deprecated

func (*SendResponse) Descriptor() ([]byte, []int)

Deprecated: Use SendResponse.ProtoReflect.Descriptor instead.

func (*SendResponse) GetCode

func (x *SendResponse) GetCode() SendResponse_CODE

func (*SendResponse) GetErrMsg

func (x *SendResponse) GetErrMsg() string

func (*SendResponse) GetMsgId

func (x *SendResponse) GetMsgId() string

func (*SendResponse) ProtoMessage

func (*SendResponse) ProtoMessage()

func (*SendResponse) ProtoReflect

func (x *SendResponse) ProtoReflect() protoreflect.Message

func (*SendResponse) Reset

func (x *SendResponse) Reset()

func (*SendResponse) String

func (x *SendResponse) String() string

type SendResponse_CODE

type SendResponse_CODE int32
const (
	SendResponse_CODE_OK            SendResponse_CODE = 0
	SendResponse_CODE_WRONG_SESSION SendResponse_CODE = 1
	SendResponse_CODE_NO_PERMISSION SendResponse_CODE = 2
	// CODE_NO_TEAM = 3;
	SendResponse_CODE_NO_BOARD SendResponse_CODE = 4
	SendResponse_CODE_NO_DRAW  SendResponse_CODE = 5
)

func (SendResponse_CODE) Descriptor

func (SendResponse_CODE) Enum

func (SendResponse_CODE) EnumDescriptor deprecated

func (SendResponse_CODE) EnumDescriptor() ([]byte, []int)

Deprecated: Use SendResponse_CODE.Descriptor instead.

func (SendResponse_CODE) Number

func (SendResponse_CODE) String

func (x SendResponse_CODE) String() string

func (SendResponse_CODE) Type

type UnimplementedBoardChatApiServer

type UnimplementedBoardChatApiServer struct {
}

UnimplementedBoardChatApiServer must be embedded to have forward compatible implementations.

func (UnimplementedBoardChatApiServer) ClearUnread

func (UnimplementedBoardChatApiServer) GetUnreadCount

func (UnimplementedBoardChatApiServer) ListAfter

func (UnimplementedBoardChatApiServer) ListBefore

func (UnimplementedBoardChatApiServer) Send

type UnsafeBoardChatApiServer

type UnsafeBoardChatApiServer interface {
	// contains filtered or unexported methods
}

UnsafeBoardChatApiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BoardChatApiServer will result in compilation errors.

Source Files

  • board_chat_api.pb.go
  • board_chat_api_grpc.pb.go

Jump to

Keyboard shortcuts

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