messagerpc

package
v0.0.0-...-eea11df Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MessageRpc_AddChatMessage_FullMethodName      = "/messagerpc.MessageRpc/AddChatMessage"
	MessageRpc_UpdateChatMessage_FullMethodName   = "/messagerpc.MessageRpc/UpdateChatMessage"
	MessageRpc_DeletesChatMessage_FullMethodName  = "/messagerpc.MessageRpc/DeletesChatMessage"
	MessageRpc_GetChatMessage_FullMethodName      = "/messagerpc.MessageRpc/GetChatMessage"
	MessageRpc_FindChatMessageList_FullMethodName = "/messagerpc.MessageRpc/FindChatMessageList"
	MessageRpc_AddRemark_FullMethodName           = "/messagerpc.MessageRpc/AddRemark"
	MessageRpc_UpdateRemark_FullMethodName        = "/messagerpc.MessageRpc/UpdateRemark"
	MessageRpc_DeletesRemark_FullMethodName       = "/messagerpc.MessageRpc/DeletesRemark"
	MessageRpc_GetRemark_FullMethodName           = "/messagerpc.MessageRpc/GetRemark"
	MessageRpc_FindRemarkList_FullMethodName      = "/messagerpc.MessageRpc/FindRemarkList"
)

Variables

View Source
var File_message_proto protoreflect.FileDescriptor
View Source
var MessageRpc_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "messagerpc.MessageRpc",
	HandlerType: (*MessageRpcServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddChatMessage",
			Handler:    _MessageRpc_AddChatMessage_Handler,
		},
		{
			MethodName: "UpdateChatMessage",
			Handler:    _MessageRpc_UpdateChatMessage_Handler,
		},
		{
			MethodName: "DeletesChatMessage",
			Handler:    _MessageRpc_DeletesChatMessage_Handler,
		},
		{
			MethodName: "GetChatMessage",
			Handler:    _MessageRpc_GetChatMessage_Handler,
		},
		{
			MethodName: "FindChatMessageList",
			Handler:    _MessageRpc_FindChatMessageList_Handler,
		},
		{
			MethodName: "AddRemark",
			Handler:    _MessageRpc_AddRemark_Handler,
		},
		{
			MethodName: "UpdateRemark",
			Handler:    _MessageRpc_UpdateRemark_Handler,
		},
		{
			MethodName: "DeletesRemark",
			Handler:    _MessageRpc_DeletesRemark_Handler,
		},
		{
			MethodName: "GetRemark",
			Handler:    _MessageRpc_GetRemark_Handler,
		},
		{
			MethodName: "FindRemarkList",
			Handler:    _MessageRpc_FindRemarkList_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "message.proto",
}

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

Functions

func RegisterMessageRpcServer

func RegisterMessageRpcServer(s grpc.ServiceRegistrar, srv MessageRpcServer)

Types

type BatchResp

type BatchResp struct {
	SuccessCount int64 `protobuf:"varint,1,opt,name=success_count,json=successCount,proto3" json:"success_count,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchResp) Descriptor deprecated

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

Deprecated: Use BatchResp.ProtoReflect.Descriptor instead.

func (*BatchResp) GetSuccessCount

func (x *BatchResp) GetSuccessCount() int64

func (*BatchResp) ProtoMessage

func (*BatchResp) ProtoMessage()

func (*BatchResp) ProtoReflect

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

func (*BatchResp) Reset

func (x *BatchResp) Reset()

func (*BatchResp) String

func (x *BatchResp) String() string

type ChatMessageDetails

type ChatMessageDetails struct {
	Id          int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                       // 主键
	UserId      string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`                  // 用户id
	DeviceId    string `protobuf:"bytes,3,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`            // 设备id
	TopicId     string `protobuf:"bytes,4,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"`               // 聊天id
	ReplyMsgId  string `protobuf:"bytes,5,opt,name=reply_msg_id,json=replyMsgId,proto3" json:"reply_msg_id,omitempty"`    // 回复消息id
	ReplyUserId string `protobuf:"bytes,6,opt,name=reply_user_id,json=replyUserId,proto3" json:"reply_user_id,omitempty"` // 回复用户列表
	ChatContent string `protobuf:"bytes,7,opt,name=chat_content,json=chatContent,proto3" json:"chat_content,omitempty"`   // 聊天内容
	IpAddress   string `protobuf:"bytes,8,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`         // ip地址 127.0.0.1
	IpSource    string `protobuf:"bytes,9,opt,name=ip_source,json=ipSource,proto3" json:"ip_source,omitempty"`            // ip来源
	Type        string `protobuf:"bytes,10,opt,name=type,proto3" json:"type,omitempty"`                                   // 类型
	Status      int64  `protobuf:"varint,11,opt,name=status,proto3" json:"status,omitempty"`                              // 状态:0正常 1编辑 2撤回 3删除
	CreatedAt   int64  `protobuf:"varint,12,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`       // 创建时间
	UpdatedAt   int64  `protobuf:"varint,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`       // 更新时间
	// contains filtered or unexported fields
}

func (*ChatMessageDetails) Descriptor deprecated

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

Deprecated: Use ChatMessageDetails.ProtoReflect.Descriptor instead.

func (*ChatMessageDetails) GetChatContent

func (x *ChatMessageDetails) GetChatContent() string

func (*ChatMessageDetails) GetCreatedAt

func (x *ChatMessageDetails) GetCreatedAt() int64

func (*ChatMessageDetails) GetDeviceId

func (x *ChatMessageDetails) GetDeviceId() string

func (*ChatMessageDetails) GetId

func (x *ChatMessageDetails) GetId() int64

func (*ChatMessageDetails) GetIpAddress

func (x *ChatMessageDetails) GetIpAddress() string

func (*ChatMessageDetails) GetIpSource

func (x *ChatMessageDetails) GetIpSource() string

func (*ChatMessageDetails) GetReplyMsgId

func (x *ChatMessageDetails) GetReplyMsgId() string

func (*ChatMessageDetails) GetReplyUserId

func (x *ChatMessageDetails) GetReplyUserId() string

func (*ChatMessageDetails) GetStatus

func (x *ChatMessageDetails) GetStatus() int64

func (*ChatMessageDetails) GetTopicId

func (x *ChatMessageDetails) GetTopicId() string

func (*ChatMessageDetails) GetType

func (x *ChatMessageDetails) GetType() string

func (*ChatMessageDetails) GetUpdatedAt

func (x *ChatMessageDetails) GetUpdatedAt() int64

func (*ChatMessageDetails) GetUserId

func (x *ChatMessageDetails) GetUserId() string

func (*ChatMessageDetails) ProtoMessage

func (*ChatMessageDetails) ProtoMessage()

func (*ChatMessageDetails) ProtoReflect

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

func (*ChatMessageDetails) Reset

func (x *ChatMessageDetails) Reset()

func (*ChatMessageDetails) String

func (x *ChatMessageDetails) String() string

type ChatMessageNewReq

type ChatMessageNewReq struct {
	Id          int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                       // 主键
	UserId      string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`                  // 用户id
	DeviceId    string `protobuf:"bytes,3,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`            // 设备id
	TopicId     string `protobuf:"bytes,4,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"`               // 聊天id
	ReplyMsgId  string `protobuf:"bytes,5,opt,name=reply_msg_id,json=replyMsgId,proto3" json:"reply_msg_id,omitempty"`    // 回复消息id
	ReplyUserId string `protobuf:"bytes,6,opt,name=reply_user_id,json=replyUserId,proto3" json:"reply_user_id,omitempty"` // 回复用户列表
	IpAddress   string `protobuf:"bytes,7,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`         // ip地址
	IpSource    string `protobuf:"bytes,8,opt,name=ip_source,json=ipSource,proto3" json:"ip_source,omitempty"`            // ip来源
	ChatContent string `protobuf:"bytes,9,opt,name=chat_content,json=chatContent,proto3" json:"chat_content,omitempty"`   // 聊天内容
	Type        string `protobuf:"bytes,10,opt,name=type,proto3" json:"type,omitempty"`                                   // 类型
	// contains filtered or unexported fields
}

func (*ChatMessageNewReq) Descriptor deprecated

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

Deprecated: Use ChatMessageNewReq.ProtoReflect.Descriptor instead.

func (*ChatMessageNewReq) GetChatContent

func (x *ChatMessageNewReq) GetChatContent() string

func (*ChatMessageNewReq) GetDeviceId

func (x *ChatMessageNewReq) GetDeviceId() string

func (*ChatMessageNewReq) GetId

func (x *ChatMessageNewReq) GetId() int64

func (*ChatMessageNewReq) GetIpAddress

func (x *ChatMessageNewReq) GetIpAddress() string

func (*ChatMessageNewReq) GetIpSource

func (x *ChatMessageNewReq) GetIpSource() string

func (*ChatMessageNewReq) GetReplyMsgId

func (x *ChatMessageNewReq) GetReplyMsgId() string

func (*ChatMessageNewReq) GetReplyUserId

func (x *ChatMessageNewReq) GetReplyUserId() string

func (*ChatMessageNewReq) GetTopicId

func (x *ChatMessageNewReq) GetTopicId() string

func (*ChatMessageNewReq) GetType

func (x *ChatMessageNewReq) GetType() string

func (*ChatMessageNewReq) GetUserId

func (x *ChatMessageNewReq) GetUserId() string

func (*ChatMessageNewReq) ProtoMessage

func (*ChatMessageNewReq) ProtoMessage()

func (*ChatMessageNewReq) ProtoReflect

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

func (*ChatMessageNewReq) Reset

func (x *ChatMessageNewReq) Reset()

func (*ChatMessageNewReq) String

func (x *ChatMessageNewReq) String() string

type EmptyReq

type EmptyReq struct {
	// contains filtered or unexported fields
}

func (*EmptyReq) Descriptor deprecated

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

Deprecated: Use EmptyReq.ProtoReflect.Descriptor instead.

func (*EmptyReq) ProtoMessage

func (*EmptyReq) ProtoMessage()

func (*EmptyReq) ProtoReflect

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

func (*EmptyReq) Reset

func (x *EmptyReq) Reset()

func (*EmptyReq) String

func (x *EmptyReq) String() string

type EmptyResp

type EmptyResp struct {
	// contains filtered or unexported fields
}

func (*EmptyResp) Descriptor deprecated

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

Deprecated: Use EmptyResp.ProtoReflect.Descriptor instead.

func (*EmptyResp) ProtoMessage

func (*EmptyResp) ProtoMessage()

func (*EmptyResp) ProtoReflect

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

func (*EmptyResp) Reset

func (x *EmptyResp) Reset()

func (*EmptyResp) String

func (x *EmptyResp) String() string

type FindChatMessageListReq

type FindChatMessageListReq struct {
	After       int64  `protobuf:"varint,101,opt,name=after,proto3" json:"after,omitempty"`
	Before      int64  `protobuf:"varint,102,opt,name=before,proto3" json:"before,omitempty"`
	Limit       int64  `protobuf:"varint,103,opt,name=limit,proto3" json:"limit,omitempty"`
	UserId      string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`                // 用户id
	TopicId     string `protobuf:"bytes,3,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"`             // 聊天id
	ChatContent string `protobuf:"bytes,8,opt,name=chat_content,json=chatContent,proto3" json:"chat_content,omitempty"` // 聊天内容
	Type        string `protobuf:"bytes,9,opt,name=type,proto3" json:"type,omitempty"`                                  // 类型
	// contains filtered or unexported fields
}

func (*FindChatMessageListReq) Descriptor deprecated

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

Deprecated: Use FindChatMessageListReq.ProtoReflect.Descriptor instead.

func (*FindChatMessageListReq) GetAfter

func (x *FindChatMessageListReq) GetAfter() int64

func (*FindChatMessageListReq) GetBefore

func (x *FindChatMessageListReq) GetBefore() int64

func (*FindChatMessageListReq) GetChatContent

func (x *FindChatMessageListReq) GetChatContent() string

func (*FindChatMessageListReq) GetLimit

func (x *FindChatMessageListReq) GetLimit() int64

func (*FindChatMessageListReq) GetTopicId

func (x *FindChatMessageListReq) GetTopicId() string

func (*FindChatMessageListReq) GetType

func (x *FindChatMessageListReq) GetType() string

func (*FindChatMessageListReq) GetUserId

func (x *FindChatMessageListReq) GetUserId() string

func (*FindChatMessageListReq) ProtoMessage

func (*FindChatMessageListReq) ProtoMessage()

func (*FindChatMessageListReq) ProtoReflect

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

func (*FindChatMessageListReq) Reset

func (x *FindChatMessageListReq) Reset()

func (*FindChatMessageListReq) String

func (x *FindChatMessageListReq) String() string

type FindChatMessageListResp

type FindChatMessageListResp struct {
	List  []*ChatMessageDetails `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	Total int64                 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*FindChatMessageListResp) Descriptor deprecated

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

Deprecated: Use FindChatMessageListResp.ProtoReflect.Descriptor instead.

func (*FindChatMessageListResp) GetList

func (*FindChatMessageListResp) GetTotal

func (x *FindChatMessageListResp) GetTotal() int64

func (*FindChatMessageListResp) ProtoMessage

func (*FindChatMessageListResp) ProtoMessage()

func (*FindChatMessageListResp) ProtoReflect

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

func (*FindChatMessageListResp) Reset

func (x *FindChatMessageListResp) Reset()

func (*FindChatMessageListResp) String

func (x *FindChatMessageListResp) String() string

type FindRemarkListReq

type FindRemarkListReq struct {
	Page     int64    `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int64    `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Sorts    []string `protobuf:"bytes,3,rep,name=sorts,proto3" json:"sorts,omitempty"`                        // 排序
	Nickname string   `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname,omitempty"`                  // 昵称
	IsReview int64    `protobuf:"varint,8,opt,name=is_review,json=isReview,proto3" json:"is_review,omitempty"` // 是否审核
	// contains filtered or unexported fields
}

func (*FindRemarkListReq) Descriptor deprecated

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

Deprecated: Use FindRemarkListReq.ProtoReflect.Descriptor instead.

func (*FindRemarkListReq) GetIsReview

func (x *FindRemarkListReq) GetIsReview() int64

func (*FindRemarkListReq) GetNickname

func (x *FindRemarkListReq) GetNickname() string

func (*FindRemarkListReq) GetPage

func (x *FindRemarkListReq) GetPage() int64

func (*FindRemarkListReq) GetPageSize

func (x *FindRemarkListReq) GetPageSize() int64

func (*FindRemarkListReq) GetSorts

func (x *FindRemarkListReq) GetSorts() []string

func (*FindRemarkListReq) ProtoMessage

func (*FindRemarkListReq) ProtoMessage()

func (*FindRemarkListReq) ProtoReflect

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

func (*FindRemarkListReq) Reset

func (x *FindRemarkListReq) Reset()

func (*FindRemarkListReq) String

func (x *FindRemarkListReq) String() string

type FindRemarkListResp

type FindRemarkListResp struct {
	List  []*RemarkDetails `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	Total int64            `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*FindRemarkListResp) Descriptor deprecated

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

Deprecated: Use FindRemarkListResp.ProtoReflect.Descriptor instead.

func (*FindRemarkListResp) GetList

func (x *FindRemarkListResp) GetList() []*RemarkDetails

func (*FindRemarkListResp) GetTotal

func (x *FindRemarkListResp) GetTotal() int64

func (*FindRemarkListResp) ProtoMessage

func (*FindRemarkListResp) ProtoMessage()

func (*FindRemarkListResp) ProtoReflect

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

func (*FindRemarkListResp) Reset

func (x *FindRemarkListResp) Reset()

func (*FindRemarkListResp) String

func (x *FindRemarkListResp) String() string

type IdReq

type IdReq struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*IdReq) Descriptor deprecated

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

Deprecated: Use IdReq.ProtoReflect.Descriptor instead.

func (*IdReq) GetId

func (x *IdReq) GetId() int64

func (*IdReq) ProtoMessage

func (*IdReq) ProtoMessage()

func (*IdReq) ProtoReflect

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

func (*IdReq) Reset

func (x *IdReq) Reset()

func (*IdReq) String

func (x *IdReq) String() string

type IdsReq

type IdsReq struct {
	Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*IdsReq) Descriptor deprecated

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

Deprecated: Use IdsReq.ProtoReflect.Descriptor instead.

func (*IdsReq) GetIds

func (x *IdsReq) GetIds() []int64

func (*IdsReq) ProtoMessage

func (*IdsReq) ProtoMessage()

func (*IdsReq) ProtoReflect

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

func (*IdsReq) Reset

func (x *IdsReq) Reset()

func (*IdsReq) String

func (x *IdsReq) String() string

type MessageRpcClient

type MessageRpcClient interface {
	// 创建聊天记录
	AddChatMessage(ctx context.Context, in *ChatMessageNewReq, opts ...grpc.CallOption) (*ChatMessageDetails, error)
	// 更新聊天记录
	UpdateChatMessage(ctx context.Context, in *ChatMessageNewReq, opts ...grpc.CallOption) (*ChatMessageDetails, error)
	// 删除聊天记录
	DeletesChatMessage(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*BatchResp, error)
	// 查询聊天记录
	GetChatMessage(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*ChatMessageDetails, error)
	// 查询聊天记录列表
	FindChatMessageList(ctx context.Context, in *FindChatMessageListReq, opts ...grpc.CallOption) (*FindChatMessageListResp, error)
	// 创建留言
	AddRemark(ctx context.Context, in *RemarkNewReq, opts ...grpc.CallOption) (*RemarkDetails, error)
	// 更新留言
	UpdateRemark(ctx context.Context, in *RemarkUpdateReq, opts ...grpc.CallOption) (*RemarkDetails, error)
	// 删除留言
	DeletesRemark(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*BatchResp, error)
	// 查询留言
	GetRemark(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*RemarkDetails, error)
	// 查询留言列表
	FindRemarkList(ctx context.Context, in *FindRemarkListReq, opts ...grpc.CallOption) (*FindRemarkListResp, error)
}

MessageRpcClient is the client API for MessageRpc 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 NewMessageRpcClient

func NewMessageRpcClient(cc grpc.ClientConnInterface) MessageRpcClient

type MessageRpcServer

type MessageRpcServer interface {
	// 创建聊天记录
	AddChatMessage(context.Context, *ChatMessageNewReq) (*ChatMessageDetails, error)
	// 更新聊天记录
	UpdateChatMessage(context.Context, *ChatMessageNewReq) (*ChatMessageDetails, error)
	// 删除聊天记录
	DeletesChatMessage(context.Context, *IdsReq) (*BatchResp, error)
	// 查询聊天记录
	GetChatMessage(context.Context, *IdReq) (*ChatMessageDetails, error)
	// 查询聊天记录列表
	FindChatMessageList(context.Context, *FindChatMessageListReq) (*FindChatMessageListResp, error)
	// 创建留言
	AddRemark(context.Context, *RemarkNewReq) (*RemarkDetails, error)
	// 更新留言
	UpdateRemark(context.Context, *RemarkUpdateReq) (*RemarkDetails, error)
	// 删除留言
	DeletesRemark(context.Context, *IdsReq) (*BatchResp, error)
	// 查询留言
	GetRemark(context.Context, *IdReq) (*RemarkDetails, error)
	// 查询留言列表
	FindRemarkList(context.Context, *FindRemarkListReq) (*FindRemarkListResp, error)
	// contains filtered or unexported methods
}

MessageRpcServer is the server API for MessageRpc service. All implementations must embed UnimplementedMessageRpcServer for forward compatibility

type RemarkDetails

type RemarkDetails struct {
	Id             int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                              // 主键id
	UserId         string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`                         // 用户id
	MessageContent string `protobuf:"bytes,4,opt,name=message_content,json=messageContent,proto3" json:"message_content,omitempty"` // 留言内容
	IpAddress      string `protobuf:"bytes,5,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`                // 用户ip
	IpSource       string `protobuf:"bytes,6,opt,name=ip_source,json=ipSource,proto3" json:"ip_source,omitempty"`                   // 用户地址
	IsReview       int64  `protobuf:"varint,8,opt,name=is_review,json=isReview,proto3" json:"is_review,omitempty"`                  // 是否审核
	CreatedAt      int64  `protobuf:"varint,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`               // 发布时间
	UpdatedAt      int64  `protobuf:"varint,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`              // 更新时间
	// contains filtered or unexported fields
}

func (*RemarkDetails) Descriptor deprecated

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

Deprecated: Use RemarkDetails.ProtoReflect.Descriptor instead.

func (*RemarkDetails) GetCreatedAt

func (x *RemarkDetails) GetCreatedAt() int64

func (*RemarkDetails) GetId

func (x *RemarkDetails) GetId() int64

func (*RemarkDetails) GetIpAddress

func (x *RemarkDetails) GetIpAddress() string

func (*RemarkDetails) GetIpSource

func (x *RemarkDetails) GetIpSource() string

func (*RemarkDetails) GetIsReview

func (x *RemarkDetails) GetIsReview() int64

func (*RemarkDetails) GetMessageContent

func (x *RemarkDetails) GetMessageContent() string

func (*RemarkDetails) GetUpdatedAt

func (x *RemarkDetails) GetUpdatedAt() int64

func (*RemarkDetails) GetUserId

func (x *RemarkDetails) GetUserId() string

func (*RemarkDetails) ProtoMessage

func (*RemarkDetails) ProtoMessage()

func (*RemarkDetails) ProtoReflect

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

func (*RemarkDetails) Reset

func (x *RemarkDetails) Reset()

func (*RemarkDetails) String

func (x *RemarkDetails) String() string

type RemarkNewReq

type RemarkNewReq struct {
	UserId         string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`                         // 用户id
	MessageContent string `protobuf:"bytes,4,opt,name=message_content,json=messageContent,proto3" json:"message_content,omitempty"` // 留言内容
	// contains filtered or unexported fields
}

************* blog 留言 *************

func (*RemarkNewReq) Descriptor deprecated

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

Deprecated: Use RemarkNewReq.ProtoReflect.Descriptor instead.

func (*RemarkNewReq) GetMessageContent

func (x *RemarkNewReq) GetMessageContent() string

func (*RemarkNewReq) GetUserId

func (x *RemarkNewReq) GetUserId() string

func (*RemarkNewReq) ProtoMessage

func (*RemarkNewReq) ProtoMessage()

func (*RemarkNewReq) ProtoReflect

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

func (*RemarkNewReq) Reset

func (x *RemarkNewReq) Reset()

func (*RemarkNewReq) String

func (x *RemarkNewReq) String() string

type RemarkUpdateReq

type RemarkUpdateReq struct {
	Id       int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                             // 主键id
	IsReview int64 `protobuf:"varint,8,opt,name=is_review,json=isReview,proto3" json:"is_review,omitempty"` // 是否审核
	// contains filtered or unexported fields
}

func (*RemarkUpdateReq) Descriptor deprecated

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

Deprecated: Use RemarkUpdateReq.ProtoReflect.Descriptor instead.

func (*RemarkUpdateReq) GetId

func (x *RemarkUpdateReq) GetId() int64

func (*RemarkUpdateReq) GetIsReview

func (x *RemarkUpdateReq) GetIsReview() int64

func (*RemarkUpdateReq) ProtoMessage

func (*RemarkUpdateReq) ProtoMessage()

func (*RemarkUpdateReq) ProtoReflect

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

func (*RemarkUpdateReq) Reset

func (x *RemarkUpdateReq) Reset()

func (*RemarkUpdateReq) String

func (x *RemarkUpdateReq) String() string

type UnimplementedMessageRpcServer

type UnimplementedMessageRpcServer struct {
}

UnimplementedMessageRpcServer must be embedded to have forward compatible implementations.

func (UnimplementedMessageRpcServer) AddChatMessage

func (UnimplementedMessageRpcServer) AddRemark

func (UnimplementedMessageRpcServer) DeletesChatMessage

func (UnimplementedMessageRpcServer) DeletesRemark

func (UnimplementedMessageRpcServer) FindChatMessageList

func (UnimplementedMessageRpcServer) FindRemarkList

func (UnimplementedMessageRpcServer) GetChatMessage

func (UnimplementedMessageRpcServer) GetRemark

func (UnimplementedMessageRpcServer) UpdateChatMessage

func (UnimplementedMessageRpcServer) UpdateRemark

type UnsafeMessageRpcServer

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

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

Jump to

Keyboard shortcuts

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