v1

package
v0.0.0-...-3db2725 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthComment        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowComment          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupComment = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthLike        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLike          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupLike = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPost        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPost          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPost = fmt.Errorf("proto: unexpected end of group")
)
View Source
var CommentService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.micro.moment.v1.CommentService",
	HandlerType: (*CommentServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateComment",
			Handler:    _CommentService_CreateComment_Handler,
		},
		{
			MethodName: "DeleteComment",
			Handler:    _CommentService_DeleteComment_Handler,
		},
		{
			MethodName: "ListHotComment",
			Handler:    _CommentService_ListHotComment_Handler,
		},
		{
			MethodName: "ListLatestComment",
			Handler:    _CommentService_ListLatestComment_Handler,
		},
		{
			MethodName: "ReplyComment",
			Handler:    _CommentService_ReplyComment_Handler,
		},
		{
			MethodName: "ListReply",
			Handler:    _CommentService_ListReply_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/micro/moment/v1/comment.proto",
}

CommentService_ServiceDesc is the grpc.ServiceDesc for CommentService 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 LikeService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.micro.moment.v1.LikeService",
	HandlerType: (*LikeServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreatePostLike",
			Handler:    _LikeService_CreatePostLike_Handler,
		},
		{
			MethodName: "DeletePostLike",
			Handler:    _LikeService_DeletePostLike_Handler,
		},
		{
			MethodName: "ListPostLike",
			Handler:    _LikeService_ListPostLike_Handler,
		},
		{
			MethodName: "CreateCommentLike",
			Handler:    _LikeService_CreateCommentLike_Handler,
		},
		{
			MethodName: "DeleteCommentLike",
			Handler:    _LikeService_DeleteCommentLike_Handler,
		},
		{
			MethodName: "ListCommentLike",
			Handler:    _LikeService_ListCommentLike_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/micro/moment/v1/like.proto",
}

LikeService_ServiceDesc is the grpc.ServiceDesc for LikeService 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 PostService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.micro.moment.v1.PostService",
	HandlerType: (*PostServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreatePost",
			Handler:    _PostService_CreatePost_Handler,
		},
		{
			MethodName: "UpdatePost",
			Handler:    _PostService_UpdatePost_Handler,
		},
		{
			MethodName: "DeletePost",
			Handler:    _PostService_DeletePost_Handler,
		},
		{
			MethodName: "GetPost",
			Handler:    _PostService_GetPost_Handler,
		},
		{
			MethodName: "ListHotPost",
			Handler:    _PostService_ListHotPost_Handler,
		},
		{
			MethodName: "ListLatestPost",
			Handler:    _PostService_ListLatestPost_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/micro/moment/v1/post.proto",
}

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

Functions

func RegisterCommentServiceHTTPServer

func RegisterCommentServiceHTTPServer(r gin.IRouter, srv CommentServiceHTTPServer)

func RegisterCommentServiceServer

func RegisterCommentServiceServer(s grpc.ServiceRegistrar, srv CommentServiceServer)

func RegisterLikeServiceHTTPServer

func RegisterLikeServiceHTTPServer(r gin.IRouter, srv LikeServiceHTTPServer)

func RegisterLikeServiceServer

func RegisterLikeServiceServer(s grpc.ServiceRegistrar, srv LikeServiceServer)

func RegisterPostServiceHTTPServer

func RegisterPostServiceHTTPServer(r gin.IRouter, srv PostServiceHTTPServer)

func RegisterPostServiceServer

func RegisterPostServiceServer(s grpc.ServiceRegistrar, srv PostServiceServer)

Types

type Comment

type Comment struct {
	// 评论id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`
	// 帖子id
	PostId int64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id"`
	// 用户信息
	User *v1.User `protobuf:"bytes,3,opt,name=user,proto3" json:"user"`
	// 评论内容
	Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content"`
	// 根评论id
	RootId int64 `protobuf:"varint,5,opt,name=root_id,json=rootId,proto3" json:"root_id"`
	// 父评论id
	ParentId int64 `protobuf:"varint,6,opt,name=parent_id,json=parentId,proto3" json:"parent_id"`
	// 点赞数
	LikeCount int32 `protobuf:"varint,7,opt,name=like_count,json=likeCount,proto3" json:"like_count"`
	// 回复数
	ReplyCount int32 `protobuf:"varint,8,opt,name=reply_count,json=replyCount,proto3" json:"reply_count"`
	// 分数
	Score int64 `protobuf:"varint,9,opt,name=score,proto3" json:"score"`
	// 删除标记
	DelFlag int32 `protobuf:"varint,10,opt,name=del_flag,json=delFlag,proto3" json:"del_flag"`
	// 创建时间
	CreatedAt int64 `protobuf:"varint,11,opt,name=created_at,json=createdAt,proto3" json:"created_at"`
	// 更新时间
	UpdatedAt int64 `protobuf:"varint,12,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at"`
	// 设备类型 iOS/Android
	DeviceType string `protobuf:"bytes,13,opt,name=device_type,json=deviceType,proto3" json:"device_type"`
	// 用户id
	Ip string `protobuf:"bytes,14,opt,name=ip,proto3" json:"ip"`
}

评论结构

func (*Comment) Descriptor

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

func (*Comment) GetContent

func (m *Comment) GetContent() string

func (*Comment) GetCreatedAt

func (m *Comment) GetCreatedAt() int64

func (*Comment) GetDelFlag

func (m *Comment) GetDelFlag() int32

func (*Comment) GetDeviceType

func (m *Comment) GetDeviceType() string

func (*Comment) GetId

func (m *Comment) GetId() string

func (*Comment) GetIp

func (m *Comment) GetIp() string

func (*Comment) GetLikeCount

func (m *Comment) GetLikeCount() int32

func (*Comment) GetParentId

func (m *Comment) GetParentId() int64

func (*Comment) GetPostId

func (m *Comment) GetPostId() int64

func (*Comment) GetReplyCount

func (m *Comment) GetReplyCount() int32

func (*Comment) GetRootId

func (m *Comment) GetRootId() int64

func (*Comment) GetScore

func (m *Comment) GetScore() int64

func (*Comment) GetUpdatedAt

func (m *Comment) GetUpdatedAt() int64

func (*Comment) GetUser

func (m *Comment) GetUser() *v1.User

func (*Comment) Marshal

func (m *Comment) Marshal() (dAtA []byte, err error)

func (*Comment) MarshalTo

func (m *Comment) MarshalTo(dAtA []byte) (int, error)

func (*Comment) MarshalToSizedBuffer

func (m *Comment) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Comment) ProtoMessage

func (*Comment) ProtoMessage()

func (*Comment) Reset

func (m *Comment) Reset()

func (*Comment) Size

func (m *Comment) Size() (n int)

func (*Comment) String

func (m *Comment) String() string

func (*Comment) Unmarshal

func (m *Comment) Unmarshal(dAtA []byte) error

func (*Comment) XXX_DiscardUnknown

func (m *Comment) XXX_DiscardUnknown()

func (*Comment) XXX_Marshal

func (m *Comment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Comment) XXX_Merge

func (m *Comment) XXX_Merge(src proto.Message)

func (*Comment) XXX_Size

func (m *Comment) XXX_Size() int

func (*Comment) XXX_Unmarshal

func (m *Comment) XXX_Unmarshal(b []byte) error

type CommentService

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

func (*CommentService) CreateComment_0

func (s *CommentService) CreateComment_0(ctx *gin.Context)

func (*CommentService) DeleteComment_0

func (s *CommentService) DeleteComment_0(ctx *gin.Context)

func (*CommentService) ListHotComment_0

func (s *CommentService) ListHotComment_0(ctx *gin.Context)

func (*CommentService) ListLatestComment_0

func (s *CommentService) ListLatestComment_0(ctx *gin.Context)

func (*CommentService) ListReply_0

func (s *CommentService) ListReply_0(ctx *gin.Context)

func (*CommentService) RegisterService

func (s *CommentService) RegisterService()

func (*CommentService) ReplyComment_0

func (s *CommentService) ReplyComment_0(ctx *gin.Context)

type CommentServiceClient

type CommentServiceClient interface {
	// 创建评论
	CreateComment(ctx context.Context, in *CreateCommentRequest, opts ...grpc.CallOption) (*CreateCommentReply, error)
	// 删除评论
	DeleteComment(ctx context.Context, in *DeleteCommentRequest, opts ...grpc.CallOption) (*DeleteCommentReply, error)
	// 查看评论
	//
	//	rpc GetComment (GetCommentRequest) returns (GetCommentReply) {
	//		option (google.api.http) = {
	//			get: "/v1/comments/{id}"
	//		};
	//	};
	//
	// 热门评论列表
	ListHotComment(ctx context.Context, in *ListCommentRequest, opts ...grpc.CallOption) (*ListCommentReply, error)
	// 最新评论列表
	ListLatestComment(ctx context.Context, in *ListCommentRequest, opts ...grpc.CallOption) (*ListCommentReply, error)
	// 回复评论
	ReplyComment(ctx context.Context, in *ReplyCommentRequest, opts ...grpc.CallOption) (*ReplyCommentReply, error)
	// 回复列表
	ListReply(ctx context.Context, in *ListReplyRequest, opts ...grpc.CallOption) (*ListReplyReply, error)
}

CommentServiceClient is the client API for CommentService 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.

type CommentServiceServer

type CommentServiceServer interface {
	// 创建评论
	CreateComment(context.Context, *CreateCommentRequest) (*CreateCommentReply, error)
	// 删除评论
	DeleteComment(context.Context, *DeleteCommentRequest) (*DeleteCommentReply, error)
	// 查看评论
	//
	//	rpc GetComment (GetCommentRequest) returns (GetCommentReply) {
	//		option (google.api.http) = {
	//			get: "/v1/comments/{id}"
	//		};
	//	};
	//
	// 热门评论列表
	ListHotComment(context.Context, *ListCommentRequest) (*ListCommentReply, error)
	// 最新评论列表
	ListLatestComment(context.Context, *ListCommentRequest) (*ListCommentReply, error)
	// 回复评论
	ReplyComment(context.Context, *ReplyCommentRequest) (*ReplyCommentReply, error)
	// 回复列表
	ListReply(context.Context, *ListReplyRequest) (*ListReplyReply, error)
	// contains filtered or unexported methods
}

CommentServiceServer is the server API for CommentService service. All implementations must embed UnimplementedCommentServiceServer for forward compatibility

type Content

type Content struct {
	Text   string       `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	Images []*PostImage `protobuf:"bytes,2,rep,name=images,proto3" json:"images,omitempty"`
	Video  *Video       `protobuf:"bytes,3,opt,name=video,proto3" json:"video,omitempty"`
}

func (*Content) Descriptor

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

func (*Content) GetImages

func (m *Content) GetImages() []*PostImage

func (*Content) GetText

func (m *Content) GetText() string

func (*Content) GetVideo

func (m *Content) GetVideo() *Video

func (*Content) Marshal

func (m *Content) Marshal() (dAtA []byte, err error)

func (*Content) MarshalTo

func (m *Content) MarshalTo(dAtA []byte) (int, error)

func (*Content) MarshalToSizedBuffer

func (m *Content) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Content) ProtoMessage

func (*Content) ProtoMessage()

func (*Content) Reset

func (m *Content) Reset()

func (*Content) Size

func (m *Content) Size() (n int)

func (*Content) String

func (m *Content) String() string

func (*Content) Unmarshal

func (m *Content) Unmarshal(dAtA []byte) error

func (*Content) XXX_DiscardUnknown

func (m *Content) XXX_DiscardUnknown()

func (*Content) XXX_Marshal

func (m *Content) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Content) XXX_Merge

func (m *Content) XXX_Merge(src proto.Message)

func (*Content) XXX_Size

func (m *Content) XXX_Size() int

func (*Content) XXX_Unmarshal

func (m *Content) XXX_Unmarshal(b []byte) error

type CreateCommentLikeReply

type CreateCommentLikeReply struct {
}

func (*CreateCommentLikeReply) Descriptor

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

func (*CreateCommentLikeReply) Marshal

func (m *CreateCommentLikeReply) Marshal() (dAtA []byte, err error)

func (*CreateCommentLikeReply) MarshalTo

func (m *CreateCommentLikeReply) MarshalTo(dAtA []byte) (int, error)

func (*CreateCommentLikeReply) MarshalToSizedBuffer

func (m *CreateCommentLikeReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CreateCommentLikeReply) ProtoMessage

func (*CreateCommentLikeReply) ProtoMessage()

func (*CreateCommentLikeReply) Reset

func (m *CreateCommentLikeReply) Reset()

func (*CreateCommentLikeReply) Size

func (m *CreateCommentLikeReply) Size() (n int)

func (*CreateCommentLikeReply) String

func (m *CreateCommentLikeReply) String() string

func (*CreateCommentLikeReply) Unmarshal

func (m *CreateCommentLikeReply) Unmarshal(dAtA []byte) error

func (*CreateCommentLikeReply) XXX_DiscardUnknown

func (m *CreateCommentLikeReply) XXX_DiscardUnknown()

func (*CreateCommentLikeReply) XXX_Marshal

func (m *CreateCommentLikeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateCommentLikeReply) XXX_Merge

func (m *CreateCommentLikeReply) XXX_Merge(src proto.Message)

func (*CreateCommentLikeReply) XXX_Size

func (m *CreateCommentLikeReply) XXX_Size() int

func (*CreateCommentLikeReply) XXX_Unmarshal

func (m *CreateCommentLikeReply) XXX_Unmarshal(b []byte) error

type CreateCommentLikeRequest

type CreateCommentLikeRequest struct {
	UserId    int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	CommentId int64 `protobuf:"varint,2,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"`
}

func (*CreateCommentLikeRequest) Descriptor

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

func (*CreateCommentLikeRequest) GetCommentId

func (m *CreateCommentLikeRequest) GetCommentId() int64

func (*CreateCommentLikeRequest) GetUserId

func (m *CreateCommentLikeRequest) GetUserId() int64

func (*CreateCommentLikeRequest) Marshal

func (m *CreateCommentLikeRequest) Marshal() (dAtA []byte, err error)

func (*CreateCommentLikeRequest) MarshalTo

func (m *CreateCommentLikeRequest) MarshalTo(dAtA []byte) (int, error)

func (*CreateCommentLikeRequest) MarshalToSizedBuffer

func (m *CreateCommentLikeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CreateCommentLikeRequest) ProtoMessage

func (*CreateCommentLikeRequest) ProtoMessage()

func (*CreateCommentLikeRequest) Reset

func (m *CreateCommentLikeRequest) Reset()

func (*CreateCommentLikeRequest) Size

func (m *CreateCommentLikeRequest) Size() (n int)

func (*CreateCommentLikeRequest) String

func (m *CreateCommentLikeRequest) String() string

func (*CreateCommentLikeRequest) Unmarshal

func (m *CreateCommentLikeRequest) Unmarshal(dAtA []byte) error

func (*CreateCommentLikeRequest) XXX_DiscardUnknown

func (m *CreateCommentLikeRequest) XXX_DiscardUnknown()

func (*CreateCommentLikeRequest) XXX_Marshal

func (m *CreateCommentLikeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateCommentLikeRequest) XXX_Merge

func (m *CreateCommentLikeRequest) XXX_Merge(src proto.Message)

func (*CreateCommentLikeRequest) XXX_Size

func (m *CreateCommentLikeRequest) XXX_Size() int

func (*CreateCommentLikeRequest) XXX_Unmarshal

func (m *CreateCommentLikeRequest) XXX_Unmarshal(b []byte) error

type CreateCommentReply

type CreateCommentReply struct {
	Comment *Comment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"`
}

func (*CreateCommentReply) Descriptor

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

func (*CreateCommentReply) GetComment

func (m *CreateCommentReply) GetComment() *Comment

func (*CreateCommentReply) Marshal

func (m *CreateCommentReply) Marshal() (dAtA []byte, err error)

func (*CreateCommentReply) MarshalTo

func (m *CreateCommentReply) MarshalTo(dAtA []byte) (int, error)

func (*CreateCommentReply) MarshalToSizedBuffer

func (m *CreateCommentReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CreateCommentReply) ProtoMessage

func (*CreateCommentReply) ProtoMessage()

func (*CreateCommentReply) Reset

func (m *CreateCommentReply) Reset()

func (*CreateCommentReply) Size

func (m *CreateCommentReply) Size() (n int)

func (*CreateCommentReply) String

func (m *CreateCommentReply) String() string

func (*CreateCommentReply) Unmarshal

func (m *CreateCommentReply) Unmarshal(dAtA []byte) error

func (*CreateCommentReply) XXX_DiscardUnknown

func (m *CreateCommentReply) XXX_DiscardUnknown()

func (*CreateCommentReply) XXX_Marshal

func (m *CreateCommentReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateCommentReply) XXX_Merge

func (m *CreateCommentReply) XXX_Merge(src proto.Message)

func (*CreateCommentReply) XXX_Size

func (m *CreateCommentReply) XXX_Size() int

func (*CreateCommentReply) XXX_Unmarshal

func (m *CreateCommentReply) XXX_Unmarshal(b []byte) error

type CreateCommentRequest

type CreateCommentRequest struct {
	// 帖子id
	PostId int64 `protobuf:"varint,1,opt,name=post_id,json=postId,proto3" json:"post_id"`
	// 发布评论的uid
	UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id"`
	// 评论的具体内容
	Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty" json:"content"`
	// 评论的根id
	RootId int64 `protobuf:"varint,4,opt,name=root_id,json=rootId,proto3" json:"root_id,omitempty" form:"root_id"`
	// 评论的上一级id
	ParentId int64 `protobuf:"varint,5,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty" form:"parent_id"`
	// 设备类型,比如iOS, Android
	DeviceType string `protobuf:"bytes,6,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty" form:"device_type"`
	// 评论人的ip地址
	Ip string `protobuf:"bytes,7,opt,name=ip,proto3" json:"ip,omitempty" form:"ip"`
}

func (*CreateCommentRequest) Descriptor

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

func (*CreateCommentRequest) GetContent

func (m *CreateCommentRequest) GetContent() string

func (*CreateCommentRequest) GetDeviceType

func (m *CreateCommentRequest) GetDeviceType() string

func (*CreateCommentRequest) GetIp

func (m *CreateCommentRequest) GetIp() string

func (*CreateCommentRequest) GetParentId

func (m *CreateCommentRequest) GetParentId() int64

func (*CreateCommentRequest) GetPostId

func (m *CreateCommentRequest) GetPostId() int64

func (*CreateCommentRequest) GetRootId

func (m *CreateCommentRequest) GetRootId() int64

func (*CreateCommentRequest) GetUserId

func (m *CreateCommentRequest) GetUserId() int64

func (*CreateCommentRequest) Marshal

func (m *CreateCommentRequest) Marshal() (dAtA []byte, err error)

func (*CreateCommentRequest) MarshalTo

func (m *CreateCommentRequest) MarshalTo(dAtA []byte) (int, error)

func (*CreateCommentRequest) MarshalToSizedBuffer

func (m *CreateCommentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CreateCommentRequest) ProtoMessage

func (*CreateCommentRequest) ProtoMessage()

func (*CreateCommentRequest) Reset

func (m *CreateCommentRequest) Reset()

func (*CreateCommentRequest) Size

func (m *CreateCommentRequest) Size() (n int)

func (*CreateCommentRequest) String

func (m *CreateCommentRequest) String() string

func (*CreateCommentRequest) Unmarshal

func (m *CreateCommentRequest) Unmarshal(dAtA []byte) error

func (*CreateCommentRequest) XXX_DiscardUnknown

func (m *CreateCommentRequest) XXX_DiscardUnknown()

func (*CreateCommentRequest) XXX_Marshal

func (m *CreateCommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateCommentRequest) XXX_Merge

func (m *CreateCommentRequest) XXX_Merge(src proto.Message)

func (*CreateCommentRequest) XXX_Size

func (m *CreateCommentRequest) XXX_Size() int

func (*CreateCommentRequest) XXX_Unmarshal

func (m *CreateCommentRequest) XXX_Unmarshal(b []byte) error

type CreatePostLikeReply

type CreatePostLikeReply struct {
}

func (*CreatePostLikeReply) Descriptor

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

func (*CreatePostLikeReply) Marshal

func (m *CreatePostLikeReply) Marshal() (dAtA []byte, err error)

func (*CreatePostLikeReply) MarshalTo

func (m *CreatePostLikeReply) MarshalTo(dAtA []byte) (int, error)

func (*CreatePostLikeReply) MarshalToSizedBuffer

func (m *CreatePostLikeReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CreatePostLikeReply) ProtoMessage

func (*CreatePostLikeReply) ProtoMessage()

func (*CreatePostLikeReply) Reset

func (m *CreatePostLikeReply) Reset()

func (*CreatePostLikeReply) Size

func (m *CreatePostLikeReply) Size() (n int)

func (*CreatePostLikeReply) String

func (m *CreatePostLikeReply) String() string

func (*CreatePostLikeReply) Unmarshal

func (m *CreatePostLikeReply) Unmarshal(dAtA []byte) error

func (*CreatePostLikeReply) XXX_DiscardUnknown

func (m *CreatePostLikeReply) XXX_DiscardUnknown()

func (*CreatePostLikeReply) XXX_Marshal

func (m *CreatePostLikeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreatePostLikeReply) XXX_Merge

func (m *CreatePostLikeReply) XXX_Merge(src proto.Message)

func (*CreatePostLikeReply) XXX_Size

func (m *CreatePostLikeReply) XXX_Size() int

func (*CreatePostLikeReply) XXX_Unmarshal

func (m *CreatePostLikeReply) XXX_Unmarshal(b []byte) error

type CreatePostLikeRequest

type CreatePostLikeRequest struct {
	UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	PostId int64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"`
}

func (*CreatePostLikeRequest) Descriptor

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

func (*CreatePostLikeRequest) GetPostId

func (m *CreatePostLikeRequest) GetPostId() int64

func (*CreatePostLikeRequest) GetUserId

func (m *CreatePostLikeRequest) GetUserId() int64

func (*CreatePostLikeRequest) Marshal

func (m *CreatePostLikeRequest) Marshal() (dAtA []byte, err error)

func (*CreatePostLikeRequest) MarshalTo

func (m *CreatePostLikeRequest) MarshalTo(dAtA []byte) (int, error)

func (*CreatePostLikeRequest) MarshalToSizedBuffer

func (m *CreatePostLikeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CreatePostLikeRequest) ProtoMessage

func (*CreatePostLikeRequest) ProtoMessage()

func (*CreatePostLikeRequest) Reset

func (m *CreatePostLikeRequest) Reset()

func (*CreatePostLikeRequest) Size

func (m *CreatePostLikeRequest) Size() (n int)

func (*CreatePostLikeRequest) String

func (m *CreatePostLikeRequest) String() string

func (*CreatePostLikeRequest) Unmarshal

func (m *CreatePostLikeRequest) Unmarshal(dAtA []byte) error

func (*CreatePostLikeRequest) XXX_DiscardUnknown

func (m *CreatePostLikeRequest) XXX_DiscardUnknown()

func (*CreatePostLikeRequest) XXX_Marshal

func (m *CreatePostLikeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreatePostLikeRequest) XXX_Merge

func (m *CreatePostLikeRequest) XXX_Merge(src proto.Message)

func (*CreatePostLikeRequest) XXX_Size

func (m *CreatePostLikeRequest) XXX_Size() int

func (*CreatePostLikeRequest) XXX_Unmarshal

func (m *CreatePostLikeRequest) XXX_Unmarshal(b []byte) error

type CreatePostReply

type CreatePostReply struct {
	Post *Post `protobuf:"bytes,1,opt,name=post,proto3" json:"post,omitempty"`
}

func (*CreatePostReply) Descriptor

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

func (*CreatePostReply) GetPost

func (m *CreatePostReply) GetPost() *Post

func (*CreatePostReply) Marshal

func (m *CreatePostReply) Marshal() (dAtA []byte, err error)

func (*CreatePostReply) MarshalTo

func (m *CreatePostReply) MarshalTo(dAtA []byte) (int, error)

func (*CreatePostReply) MarshalToSizedBuffer

func (m *CreatePostReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CreatePostReply) ProtoMessage

func (*CreatePostReply) ProtoMessage()

func (*CreatePostReply) Reset

func (m *CreatePostReply) Reset()

func (*CreatePostReply) Size

func (m *CreatePostReply) Size() (n int)

func (*CreatePostReply) String

func (m *CreatePostReply) String() string

func (*CreatePostReply) Unmarshal

func (m *CreatePostReply) Unmarshal(dAtA []byte) error

func (*CreatePostReply) XXX_DiscardUnknown

func (m *CreatePostReply) XXX_DiscardUnknown()

func (*CreatePostReply) XXX_Marshal

func (m *CreatePostReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreatePostReply) XXX_Merge

func (m *CreatePostReply) XXX_Merge(src proto.Message)

func (*CreatePostReply) XXX_Size

func (m *CreatePostReply) XXX_Size() int

func (*CreatePostReply) XXX_Unmarshal

func (m *CreatePostReply) XXX_Unmarshal(b []byte) error

type CreatePostRequest

type CreatePostRequest struct {
	UserId int64  `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Title  string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Text   string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
	// json格式:[{"image_key":"/abc/a.jpg","image_type":"jpg","width":200,"height":200}]
	Images        []*PostImageRequest `protobuf:"bytes,4,rep,name=images,proto3" json:"images,omitempty"`
	VideoKey      string              `protobuf:"bytes,5,opt,name=video_key,json=videoKey,proto3" json:"video_key,omitempty"`
	VideoDuration float32             `protobuf:"fixed32,6,opt,name=video_duration,json=videoDuration,proto3" json:"video_duration,omitempty"`
	CoverKey      string              `protobuf:"bytes,7,opt,name=cover_key,json=coverKey,proto3" json:"cover_key,omitempty"`
	CoverWidth    int32               `protobuf:"varint,8,opt,name=cover_width,json=coverWidth,proto3" json:"cover_width,omitempty"`
	CoverHeight   int32               `protobuf:"varint,9,opt,name=cover_height,json=coverHeight,proto3" json:"cover_height,omitempty"`
	Longitude     float32             `protobuf:"fixed32,10,opt,name=longitude,proto3" json:"longitude,omitempty"`
	Latitude      float32             `protobuf:"fixed32,11,opt,name=latitude,proto3" json:"latitude,omitempty"`
	Position      string              `protobuf:"bytes,12,opt,name=position,proto3" json:"position,omitempty"`
}

func (*CreatePostRequest) Descriptor

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

func (*CreatePostRequest) GetCoverHeight

func (m *CreatePostRequest) GetCoverHeight() int32

func (*CreatePostRequest) GetCoverKey

func (m *CreatePostRequest) GetCoverKey() string

func (*CreatePostRequest) GetCoverWidth

func (m *CreatePostRequest) GetCoverWidth() int32

func (*CreatePostRequest) GetImages

func (m *CreatePostRequest) GetImages() []*PostImageRequest

func (*CreatePostRequest) GetLatitude

func (m *CreatePostRequest) GetLatitude() float32

func (*CreatePostRequest) GetLongitude

func (m *CreatePostRequest) GetLongitude() float32

func (*CreatePostRequest) GetPosition

func (m *CreatePostRequest) GetPosition() string

func (*CreatePostRequest) GetText

func (m *CreatePostRequest) GetText() string

func (*CreatePostRequest) GetTitle

func (m *CreatePostRequest) GetTitle() string

func (*CreatePostRequest) GetUserId

func (m *CreatePostRequest) GetUserId() int64

func (*CreatePostRequest) GetVideoDuration

func (m *CreatePostRequest) GetVideoDuration() float32

func (*CreatePostRequest) GetVideoKey

func (m *CreatePostRequest) GetVideoKey() string

func (*CreatePostRequest) Marshal

func (m *CreatePostRequest) Marshal() (dAtA []byte, err error)

func (*CreatePostRequest) MarshalTo

func (m *CreatePostRequest) MarshalTo(dAtA []byte) (int, error)

func (*CreatePostRequest) MarshalToSizedBuffer

func (m *CreatePostRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CreatePostRequest) ProtoMessage

func (*CreatePostRequest) ProtoMessage()

func (*CreatePostRequest) Reset

func (m *CreatePostRequest) Reset()

func (*CreatePostRequest) Size

func (m *CreatePostRequest) Size() (n int)

func (*CreatePostRequest) String

func (m *CreatePostRequest) String() string

func (*CreatePostRequest) Unmarshal

func (m *CreatePostRequest) Unmarshal(dAtA []byte) error

func (*CreatePostRequest) XXX_DiscardUnknown

func (m *CreatePostRequest) XXX_DiscardUnknown()

func (*CreatePostRequest) XXX_Marshal

func (m *CreatePostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreatePostRequest) XXX_Merge

func (m *CreatePostRequest) XXX_Merge(src proto.Message)

func (*CreatePostRequest) XXX_Size

func (m *CreatePostRequest) XXX_Size() int

func (*CreatePostRequest) XXX_Unmarshal

func (m *CreatePostRequest) XXX_Unmarshal(b []byte) error

type DeleteCommentLikeReply

type DeleteCommentLikeReply struct {
}

func (*DeleteCommentLikeReply) Descriptor

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

func (*DeleteCommentLikeReply) Marshal

func (m *DeleteCommentLikeReply) Marshal() (dAtA []byte, err error)

func (*DeleteCommentLikeReply) MarshalTo

func (m *DeleteCommentLikeReply) MarshalTo(dAtA []byte) (int, error)

func (*DeleteCommentLikeReply) MarshalToSizedBuffer

func (m *DeleteCommentLikeReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DeleteCommentLikeReply) ProtoMessage

func (*DeleteCommentLikeReply) ProtoMessage()

func (*DeleteCommentLikeReply) Reset

func (m *DeleteCommentLikeReply) Reset()

func (*DeleteCommentLikeReply) Size

func (m *DeleteCommentLikeReply) Size() (n int)

func (*DeleteCommentLikeReply) String

func (m *DeleteCommentLikeReply) String() string

func (*DeleteCommentLikeReply) Unmarshal

func (m *DeleteCommentLikeReply) Unmarshal(dAtA []byte) error

func (*DeleteCommentLikeReply) XXX_DiscardUnknown

func (m *DeleteCommentLikeReply) XXX_DiscardUnknown()

func (*DeleteCommentLikeReply) XXX_Marshal

func (m *DeleteCommentLikeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteCommentLikeReply) XXX_Merge

func (m *DeleteCommentLikeReply) XXX_Merge(src proto.Message)

func (*DeleteCommentLikeReply) XXX_Size

func (m *DeleteCommentLikeReply) XXX_Size() int

func (*DeleteCommentLikeReply) XXX_Unmarshal

func (m *DeleteCommentLikeReply) XXX_Unmarshal(b []byte) error

type DeleteCommentLikeRequest

type DeleteCommentLikeRequest struct {
	UserId    int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	CommentId int64 `protobuf:"varint,2,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"`
}

func (*DeleteCommentLikeRequest) Descriptor

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

func (*DeleteCommentLikeRequest) GetCommentId

func (m *DeleteCommentLikeRequest) GetCommentId() int64

func (*DeleteCommentLikeRequest) GetUserId

func (m *DeleteCommentLikeRequest) GetUserId() int64

func (*DeleteCommentLikeRequest) Marshal

func (m *DeleteCommentLikeRequest) Marshal() (dAtA []byte, err error)

func (*DeleteCommentLikeRequest) MarshalTo

func (m *DeleteCommentLikeRequest) MarshalTo(dAtA []byte) (int, error)

func (*DeleteCommentLikeRequest) MarshalToSizedBuffer

func (m *DeleteCommentLikeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DeleteCommentLikeRequest) ProtoMessage

func (*DeleteCommentLikeRequest) ProtoMessage()

func (*DeleteCommentLikeRequest) Reset

func (m *DeleteCommentLikeRequest) Reset()

func (*DeleteCommentLikeRequest) Size

func (m *DeleteCommentLikeRequest) Size() (n int)

func (*DeleteCommentLikeRequest) String

func (m *DeleteCommentLikeRequest) String() string

func (*DeleteCommentLikeRequest) Unmarshal

func (m *DeleteCommentLikeRequest) Unmarshal(dAtA []byte) error

func (*DeleteCommentLikeRequest) XXX_DiscardUnknown

func (m *DeleteCommentLikeRequest) XXX_DiscardUnknown()

func (*DeleteCommentLikeRequest) XXX_Marshal

func (m *DeleteCommentLikeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteCommentLikeRequest) XXX_Merge

func (m *DeleteCommentLikeRequest) XXX_Merge(src proto.Message)

func (*DeleteCommentLikeRequest) XXX_Size

func (m *DeleteCommentLikeRequest) XXX_Size() int

func (*DeleteCommentLikeRequest) XXX_Unmarshal

func (m *DeleteCommentLikeRequest) XXX_Unmarshal(b []byte) error

type DeleteCommentReply

type DeleteCommentReply struct {
}

func (*DeleteCommentReply) Descriptor

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

func (*DeleteCommentReply) Marshal

func (m *DeleteCommentReply) Marshal() (dAtA []byte, err error)

func (*DeleteCommentReply) MarshalTo

func (m *DeleteCommentReply) MarshalTo(dAtA []byte) (int, error)

func (*DeleteCommentReply) MarshalToSizedBuffer

func (m *DeleteCommentReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DeleteCommentReply) ProtoMessage

func (*DeleteCommentReply) ProtoMessage()

func (*DeleteCommentReply) Reset

func (m *DeleteCommentReply) Reset()

func (*DeleteCommentReply) Size

func (m *DeleteCommentReply) Size() (n int)

func (*DeleteCommentReply) String

func (m *DeleteCommentReply) String() string

func (*DeleteCommentReply) Unmarshal

func (m *DeleteCommentReply) Unmarshal(dAtA []byte) error

func (*DeleteCommentReply) XXX_DiscardUnknown

func (m *DeleteCommentReply) XXX_DiscardUnknown()

func (*DeleteCommentReply) XXX_Marshal

func (m *DeleteCommentReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteCommentReply) XXX_Merge

func (m *DeleteCommentReply) XXX_Merge(src proto.Message)

func (*DeleteCommentReply) XXX_Size

func (m *DeleteCommentReply) XXX_Size() int

func (*DeleteCommentReply) XXX_Unmarshal

func (m *DeleteCommentReply) XXX_Unmarshal(b []byte) error

type DeleteCommentRequest

type DeleteCommentRequest struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	DelFlag int32  `protobuf:"varint,2,opt,name=del_flag,json=delFlag,proto3" json:"del_flag,omitempty"`
}

func (*DeleteCommentRequest) Descriptor

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

func (*DeleteCommentRequest) GetDelFlag

func (m *DeleteCommentRequest) GetDelFlag() int32

func (*DeleteCommentRequest) GetId

func (m *DeleteCommentRequest) GetId() string

func (*DeleteCommentRequest) Marshal

func (m *DeleteCommentRequest) Marshal() (dAtA []byte, err error)

func (*DeleteCommentRequest) MarshalTo

func (m *DeleteCommentRequest) MarshalTo(dAtA []byte) (int, error)

func (*DeleteCommentRequest) MarshalToSizedBuffer

func (m *DeleteCommentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DeleteCommentRequest) ProtoMessage

func (*DeleteCommentRequest) ProtoMessage()

func (*DeleteCommentRequest) Reset

func (m *DeleteCommentRequest) Reset()

func (*DeleteCommentRequest) Size

func (m *DeleteCommentRequest) Size() (n int)

func (*DeleteCommentRequest) String

func (m *DeleteCommentRequest) String() string

func (*DeleteCommentRequest) Unmarshal

func (m *DeleteCommentRequest) Unmarshal(dAtA []byte) error

func (*DeleteCommentRequest) XXX_DiscardUnknown

func (m *DeleteCommentRequest) XXX_DiscardUnknown()

func (*DeleteCommentRequest) XXX_Marshal

func (m *DeleteCommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteCommentRequest) XXX_Merge

func (m *DeleteCommentRequest) XXX_Merge(src proto.Message)

func (*DeleteCommentRequest) XXX_Size

func (m *DeleteCommentRequest) XXX_Size() int

func (*DeleteCommentRequest) XXX_Unmarshal

func (m *DeleteCommentRequest) XXX_Unmarshal(b []byte) error

type DeletePostLikeReply

type DeletePostLikeReply struct {
}

func (*DeletePostLikeReply) Descriptor

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

func (*DeletePostLikeReply) Marshal

func (m *DeletePostLikeReply) Marshal() (dAtA []byte, err error)

func (*DeletePostLikeReply) MarshalTo

func (m *DeletePostLikeReply) MarshalTo(dAtA []byte) (int, error)

func (*DeletePostLikeReply) MarshalToSizedBuffer

func (m *DeletePostLikeReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DeletePostLikeReply) ProtoMessage

func (*DeletePostLikeReply) ProtoMessage()

func (*DeletePostLikeReply) Reset

func (m *DeletePostLikeReply) Reset()

func (*DeletePostLikeReply) Size

func (m *DeletePostLikeReply) Size() (n int)

func (*DeletePostLikeReply) String

func (m *DeletePostLikeReply) String() string

func (*DeletePostLikeReply) Unmarshal

func (m *DeletePostLikeReply) Unmarshal(dAtA []byte) error

func (*DeletePostLikeReply) XXX_DiscardUnknown

func (m *DeletePostLikeReply) XXX_DiscardUnknown()

func (*DeletePostLikeReply) XXX_Marshal

func (m *DeletePostLikeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeletePostLikeReply) XXX_Merge

func (m *DeletePostLikeReply) XXX_Merge(src proto.Message)

func (*DeletePostLikeReply) XXX_Size

func (m *DeletePostLikeReply) XXX_Size() int

func (*DeletePostLikeReply) XXX_Unmarshal

func (m *DeletePostLikeReply) XXX_Unmarshal(b []byte) error

type DeletePostLikeRequest

type DeletePostLikeRequest struct {
	UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	PostId int64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"`
}

func (*DeletePostLikeRequest) Descriptor

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

func (*DeletePostLikeRequest) GetPostId

func (m *DeletePostLikeRequest) GetPostId() int64

func (*DeletePostLikeRequest) GetUserId

func (m *DeletePostLikeRequest) GetUserId() int64

func (*DeletePostLikeRequest) Marshal

func (m *DeletePostLikeRequest) Marshal() (dAtA []byte, err error)

func (*DeletePostLikeRequest) MarshalTo

func (m *DeletePostLikeRequest) MarshalTo(dAtA []byte) (int, error)

func (*DeletePostLikeRequest) MarshalToSizedBuffer

func (m *DeletePostLikeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DeletePostLikeRequest) ProtoMessage

func (*DeletePostLikeRequest) ProtoMessage()

func (*DeletePostLikeRequest) Reset

func (m *DeletePostLikeRequest) Reset()

func (*DeletePostLikeRequest) Size

func (m *DeletePostLikeRequest) Size() (n int)

func (*DeletePostLikeRequest) String

func (m *DeletePostLikeRequest) String() string

func (*DeletePostLikeRequest) Unmarshal

func (m *DeletePostLikeRequest) Unmarshal(dAtA []byte) error

func (*DeletePostLikeRequest) XXX_DiscardUnknown

func (m *DeletePostLikeRequest) XXX_DiscardUnknown()

func (*DeletePostLikeRequest) XXX_Marshal

func (m *DeletePostLikeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeletePostLikeRequest) XXX_Merge

func (m *DeletePostLikeRequest) XXX_Merge(src proto.Message)

func (*DeletePostLikeRequest) XXX_Size

func (m *DeletePostLikeRequest) XXX_Size() int

func (*DeletePostLikeRequest) XXX_Unmarshal

func (m *DeletePostLikeRequest) XXX_Unmarshal(b []byte) error

type DeletePostReply

type DeletePostReply struct {
}

func (*DeletePostReply) Descriptor

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

func (*DeletePostReply) Marshal

func (m *DeletePostReply) Marshal() (dAtA []byte, err error)

func (*DeletePostReply) MarshalTo

func (m *DeletePostReply) MarshalTo(dAtA []byte) (int, error)

func (*DeletePostReply) MarshalToSizedBuffer

func (m *DeletePostReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DeletePostReply) ProtoMessage

func (*DeletePostReply) ProtoMessage()

func (*DeletePostReply) Reset

func (m *DeletePostReply) Reset()

func (*DeletePostReply) Size

func (m *DeletePostReply) Size() (n int)

func (*DeletePostReply) String

func (m *DeletePostReply) String() string

func (*DeletePostReply) Unmarshal

func (m *DeletePostReply) Unmarshal(dAtA []byte) error

func (*DeletePostReply) XXX_DiscardUnknown

func (m *DeletePostReply) XXX_DiscardUnknown()

func (*DeletePostReply) XXX_Marshal

func (m *DeletePostReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeletePostReply) XXX_Merge

func (m *DeletePostReply) XXX_Merge(src proto.Message)

func (*DeletePostReply) XXX_Size

func (m *DeletePostReply) XXX_Size() int

func (*DeletePostReply) XXX_Unmarshal

func (m *DeletePostReply) XXX_Unmarshal(b []byte) error

type DeletePostRequest

type DeletePostRequest struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	DelFlag int32  `protobuf:"varint,2,opt,name=del_flag,json=delFlag,proto3" json:"del_flag,omitempty"`
}

func (*DeletePostRequest) Descriptor

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

func (*DeletePostRequest) GetDelFlag

func (m *DeletePostRequest) GetDelFlag() int32

func (*DeletePostRequest) GetId

func (m *DeletePostRequest) GetId() string

func (*DeletePostRequest) Marshal

func (m *DeletePostRequest) Marshal() (dAtA []byte, err error)

func (*DeletePostRequest) MarshalTo

func (m *DeletePostRequest) MarshalTo(dAtA []byte) (int, error)

func (*DeletePostRequest) MarshalToSizedBuffer

func (m *DeletePostRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DeletePostRequest) ProtoMessage

func (*DeletePostRequest) ProtoMessage()

func (*DeletePostRequest) Reset

func (m *DeletePostRequest) Reset()

func (*DeletePostRequest) Size

func (m *DeletePostRequest) Size() (n int)

func (*DeletePostRequest) String

func (m *DeletePostRequest) String() string

func (*DeletePostRequest) Unmarshal

func (m *DeletePostRequest) Unmarshal(dAtA []byte) error

func (*DeletePostRequest) XXX_DiscardUnknown

func (m *DeletePostRequest) XXX_DiscardUnknown()

func (*DeletePostRequest) XXX_Marshal

func (m *DeletePostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeletePostRequest) XXX_Merge

func (m *DeletePostRequest) XXX_Merge(src proto.Message)

func (*DeletePostRequest) XXX_Size

func (m *DeletePostRequest) XXX_Size() int

func (*DeletePostRequest) XXX_Unmarshal

func (m *DeletePostRequest) XXX_Unmarshal(b []byte) error

type GetCommentReply

type GetCommentReply struct {
	Comment *Comment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"`
}

func (*GetCommentReply) Descriptor

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

func (*GetCommentReply) GetComment

func (m *GetCommentReply) GetComment() *Comment

func (*GetCommentReply) Marshal

func (m *GetCommentReply) Marshal() (dAtA []byte, err error)

func (*GetCommentReply) MarshalTo

func (m *GetCommentReply) MarshalTo(dAtA []byte) (int, error)

func (*GetCommentReply) MarshalToSizedBuffer

func (m *GetCommentReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetCommentReply) ProtoMessage

func (*GetCommentReply) ProtoMessage()

func (*GetCommentReply) Reset

func (m *GetCommentReply) Reset()

func (*GetCommentReply) Size

func (m *GetCommentReply) Size() (n int)

func (*GetCommentReply) String

func (m *GetCommentReply) String() string

func (*GetCommentReply) Unmarshal

func (m *GetCommentReply) Unmarshal(dAtA []byte) error

func (*GetCommentReply) XXX_DiscardUnknown

func (m *GetCommentReply) XXX_DiscardUnknown()

func (*GetCommentReply) XXX_Marshal

func (m *GetCommentReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetCommentReply) XXX_Merge

func (m *GetCommentReply) XXX_Merge(src proto.Message)

func (*GetCommentReply) XXX_Size

func (m *GetCommentReply) XXX_Size() int

func (*GetCommentReply) XXX_Unmarshal

func (m *GetCommentReply) XXX_Unmarshal(b []byte) error

type GetCommentRequest

type GetCommentRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" uri:"id"`
}

func (*GetCommentRequest) Descriptor

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

func (*GetCommentRequest) GetId

func (m *GetCommentRequest) GetId() string

func (*GetCommentRequest) Marshal

func (m *GetCommentRequest) Marshal() (dAtA []byte, err error)

func (*GetCommentRequest) MarshalTo

func (m *GetCommentRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetCommentRequest) MarshalToSizedBuffer

func (m *GetCommentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetCommentRequest) ProtoMessage

func (*GetCommentRequest) ProtoMessage()

func (*GetCommentRequest) Reset

func (m *GetCommentRequest) Reset()

func (*GetCommentRequest) Size

func (m *GetCommentRequest) Size() (n int)

func (*GetCommentRequest) String

func (m *GetCommentRequest) String() string

func (*GetCommentRequest) Unmarshal

func (m *GetCommentRequest) Unmarshal(dAtA []byte) error

func (*GetCommentRequest) XXX_DiscardUnknown

func (m *GetCommentRequest) XXX_DiscardUnknown()

func (*GetCommentRequest) XXX_Marshal

func (m *GetCommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetCommentRequest) XXX_Merge

func (m *GetCommentRequest) XXX_Merge(src proto.Message)

func (*GetCommentRequest) XXX_Size

func (m *GetCommentRequest) XXX_Size() int

func (*GetCommentRequest) XXX_Unmarshal

func (m *GetCommentRequest) XXX_Unmarshal(b []byte) error

type GetPostReply

type GetPostReply struct {
	Post *Post `protobuf:"bytes,1,opt,name=post,proto3" json:"post,omitempty"`
}

func (*GetPostReply) Descriptor

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

func (*GetPostReply) GetPost

func (m *GetPostReply) GetPost() *Post

func (*GetPostReply) Marshal

func (m *GetPostReply) Marshal() (dAtA []byte, err error)

func (*GetPostReply) MarshalTo

func (m *GetPostReply) MarshalTo(dAtA []byte) (int, error)

func (*GetPostReply) MarshalToSizedBuffer

func (m *GetPostReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetPostReply) ProtoMessage

func (*GetPostReply) ProtoMessage()

func (*GetPostReply) Reset

func (m *GetPostReply) Reset()

func (*GetPostReply) Size

func (m *GetPostReply) Size() (n int)

func (*GetPostReply) String

func (m *GetPostReply) String() string

func (*GetPostReply) Unmarshal

func (m *GetPostReply) Unmarshal(dAtA []byte) error

func (*GetPostReply) XXX_DiscardUnknown

func (m *GetPostReply) XXX_DiscardUnknown()

func (*GetPostReply) XXX_Marshal

func (m *GetPostReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetPostReply) XXX_Merge

func (m *GetPostReply) XXX_Merge(src proto.Message)

func (*GetPostReply) XXX_Size

func (m *GetPostReply) XXX_Size() int

func (*GetPostReply) XXX_Unmarshal

func (m *GetPostReply) XXX_Unmarshal(b []byte) error

type GetPostRequest

type GetPostRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" uri:"id"`
}

func (*GetPostRequest) Descriptor

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

func (*GetPostRequest) GetId

func (m *GetPostRequest) GetId() string

func (*GetPostRequest) Marshal

func (m *GetPostRequest) Marshal() (dAtA []byte, err error)

func (*GetPostRequest) MarshalTo

func (m *GetPostRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetPostRequest) MarshalToSizedBuffer

func (m *GetPostRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetPostRequest) ProtoMessage

func (*GetPostRequest) ProtoMessage()

func (*GetPostRequest) Reset

func (m *GetPostRequest) Reset()

func (*GetPostRequest) Size

func (m *GetPostRequest) Size() (n int)

func (*GetPostRequest) String

func (m *GetPostRequest) String() string

func (*GetPostRequest) Unmarshal

func (m *GetPostRequest) Unmarshal(dAtA []byte) error

func (*GetPostRequest) XXX_DiscardUnknown

func (m *GetPostRequest) XXX_DiscardUnknown()

func (*GetPostRequest) XXX_Marshal

func (m *GetPostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetPostRequest) XXX_Merge

func (m *GetPostRequest) XXX_Merge(src proto.Message)

func (*GetPostRequest) XXX_Size

func (m *GetPostRequest) XXX_Size() int

func (*GetPostRequest) XXX_Unmarshal

func (m *GetPostRequest) XXX_Unmarshal(b []byte) error

type Like

type Like struct {
	Id   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	User *v1.User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
}

func (*Like) Descriptor

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

func (*Like) GetId

func (m *Like) GetId() int64

func (*Like) GetUser

func (m *Like) GetUser() *v1.User

func (*Like) Marshal

func (m *Like) Marshal() (dAtA []byte, err error)

func (*Like) MarshalTo

func (m *Like) MarshalTo(dAtA []byte) (int, error)

func (*Like) MarshalToSizedBuffer

func (m *Like) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Like) ProtoMessage

func (*Like) ProtoMessage()

func (*Like) Reset

func (m *Like) Reset()

func (*Like) Size

func (m *Like) Size() (n int)

func (*Like) String

func (m *Like) String() string

func (*Like) Unmarshal

func (m *Like) Unmarshal(dAtA []byte) error

func (*Like) XXX_DiscardUnknown

func (m *Like) XXX_DiscardUnknown()

func (*Like) XXX_Marshal

func (m *Like) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Like) XXX_Merge

func (m *Like) XXX_Merge(src proto.Message)

func (*Like) XXX_Size

func (m *Like) XXX_Size() int

func (*Like) XXX_Unmarshal

func (m *Like) XXX_Unmarshal(b []byte) error

type LikeService

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

func (*LikeService) CreateCommentLike_0

func (s *LikeService) CreateCommentLike_0(ctx *gin.Context)

func (*LikeService) CreatePostLike_0

func (s *LikeService) CreatePostLike_0(ctx *gin.Context)

func (*LikeService) DeleteCommentLike_0

func (s *LikeService) DeleteCommentLike_0(ctx *gin.Context)

func (*LikeService) DeletePostLike_0

func (s *LikeService) DeletePostLike_0(ctx *gin.Context)

func (*LikeService) ListCommentLike_0

func (s *LikeService) ListCommentLike_0(ctx *gin.Context)

func (*LikeService) ListPostLike_0

func (s *LikeService) ListPostLike_0(ctx *gin.Context)

func (*LikeService) RegisterService

func (s *LikeService) RegisterService()

type LikeServiceClient

type LikeServiceClient interface {
	CreatePostLike(ctx context.Context, in *CreatePostLikeRequest, opts ...grpc.CallOption) (*CreatePostLikeReply, error)
	DeletePostLike(ctx context.Context, in *DeletePostLikeRequest, opts ...grpc.CallOption) (*DeletePostLikeReply, error)
	ListPostLike(ctx context.Context, in *ListPostLikeRequest, opts ...grpc.CallOption) (*ListPostLikeReply, error)
	CreateCommentLike(ctx context.Context, in *CreateCommentLikeRequest, opts ...grpc.CallOption) (*CreateCommentLikeReply, error)
	DeleteCommentLike(ctx context.Context, in *DeleteCommentLikeRequest, opts ...grpc.CallOption) (*DeleteCommentLikeReply, error)
	ListCommentLike(ctx context.Context, in *ListCommentLikeRequest, opts ...grpc.CallOption) (*ListCommentLikeReply, error)
}

LikeServiceClient is the client API for LikeService 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.

type LikeServiceServer

type LikeServiceServer interface {
	CreatePostLike(context.Context, *CreatePostLikeRequest) (*CreatePostLikeReply, error)
	DeletePostLike(context.Context, *DeletePostLikeRequest) (*DeletePostLikeReply, error)
	ListPostLike(context.Context, *ListPostLikeRequest) (*ListPostLikeReply, error)
	CreateCommentLike(context.Context, *CreateCommentLikeRequest) (*CreateCommentLikeReply, error)
	DeleteCommentLike(context.Context, *DeleteCommentLikeRequest) (*DeleteCommentLikeReply, error)
	ListCommentLike(context.Context, *ListCommentLikeRequest) (*ListCommentLikeReply, error)
	// contains filtered or unexported methods
}

LikeServiceServer is the server API for LikeService service. All implementations must embed UnimplementedLikeServiceServer for forward compatibility

type ListCommentLikeReply

type ListCommentLikeReply struct {
	Items   []*Like `protobuf:"bytes,1,rep,name=items,proto3" json:"items"`
	Count   int64   `protobuf:"varint,2,opt,name=count,proto3" json:"count"`
	HasMore bool    `protobuf:"varint,3,opt,name=has_more,json=hasMore,proto3" json:"has_more"`
	LastId  string  `protobuf:"bytes,4,opt,name=last_id,json=lastId,proto3" json:"last_id"`
}

func (*ListCommentLikeReply) Descriptor

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

func (*ListCommentLikeReply) GetCount

func (m *ListCommentLikeReply) GetCount() int64

func (*ListCommentLikeReply) GetHasMore

func (m *ListCommentLikeReply) GetHasMore() bool

func (*ListCommentLikeReply) GetItems

func (m *ListCommentLikeReply) GetItems() []*Like

func (*ListCommentLikeReply) GetLastId

func (m *ListCommentLikeReply) GetLastId() string

func (*ListCommentLikeReply) Marshal

func (m *ListCommentLikeReply) Marshal() (dAtA []byte, err error)

func (*ListCommentLikeReply) MarshalTo

func (m *ListCommentLikeReply) MarshalTo(dAtA []byte) (int, error)

func (*ListCommentLikeReply) MarshalToSizedBuffer

func (m *ListCommentLikeReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListCommentLikeReply) ProtoMessage

func (*ListCommentLikeReply) ProtoMessage()

func (*ListCommentLikeReply) Reset

func (m *ListCommentLikeReply) Reset()

func (*ListCommentLikeReply) Size

func (m *ListCommentLikeReply) Size() (n int)

func (*ListCommentLikeReply) String

func (m *ListCommentLikeReply) String() string

func (*ListCommentLikeReply) Unmarshal

func (m *ListCommentLikeReply) Unmarshal(dAtA []byte) error

func (*ListCommentLikeReply) XXX_DiscardUnknown

func (m *ListCommentLikeReply) XXX_DiscardUnknown()

func (*ListCommentLikeReply) XXX_Marshal

func (m *ListCommentLikeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListCommentLikeReply) XXX_Merge

func (m *ListCommentLikeReply) XXX_Merge(src proto.Message)

func (*ListCommentLikeReply) XXX_Size

func (m *ListCommentLikeReply) XXX_Size() int

func (*ListCommentLikeReply) XXX_Unmarshal

func (m *ListCommentLikeReply) XXX_Unmarshal(b []byte) error

type ListCommentLikeRequest

type ListCommentLikeRequest struct {
	CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty" form:"comment_id"`
	LastId    int64 `protobuf:"varint,2,opt,name=last_id,json=lastId,proto3" json:"last_id,omitempty" form:"last_id"`
	Limit     int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty" form:"limit"`
}

func (*ListCommentLikeRequest) Descriptor

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

func (*ListCommentLikeRequest) GetCommentId

func (m *ListCommentLikeRequest) GetCommentId() int64

func (*ListCommentLikeRequest) GetLastId

func (m *ListCommentLikeRequest) GetLastId() int64

func (*ListCommentLikeRequest) GetLimit

func (m *ListCommentLikeRequest) GetLimit() int32

func (*ListCommentLikeRequest) Marshal

func (m *ListCommentLikeRequest) Marshal() (dAtA []byte, err error)

func (*ListCommentLikeRequest) MarshalTo

func (m *ListCommentLikeRequest) MarshalTo(dAtA []byte) (int, error)

func (*ListCommentLikeRequest) MarshalToSizedBuffer

func (m *ListCommentLikeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListCommentLikeRequest) ProtoMessage

func (*ListCommentLikeRequest) ProtoMessage()

func (*ListCommentLikeRequest) Reset

func (m *ListCommentLikeRequest) Reset()

func (*ListCommentLikeRequest) Size

func (m *ListCommentLikeRequest) Size() (n int)

func (*ListCommentLikeRequest) String

func (m *ListCommentLikeRequest) String() string

func (*ListCommentLikeRequest) Unmarshal

func (m *ListCommentLikeRequest) Unmarshal(dAtA []byte) error

func (*ListCommentLikeRequest) XXX_DiscardUnknown

func (m *ListCommentLikeRequest) XXX_DiscardUnknown()

func (*ListCommentLikeRequest) XXX_Marshal

func (m *ListCommentLikeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListCommentLikeRequest) XXX_Merge

func (m *ListCommentLikeRequest) XXX_Merge(src proto.Message)

func (*ListCommentLikeRequest) XXX_Size

func (m *ListCommentLikeRequest) XXX_Size() int

func (*ListCommentLikeRequest) XXX_Unmarshal

func (m *ListCommentLikeRequest) XXX_Unmarshal(b []byte) error

type ListCommentReply

type ListCommentReply struct {
	Items   []*Comment `protobuf:"bytes,1,rep,name=items,proto3" json:"items"`
	Count   int64      `protobuf:"varint,2,opt,name=count,proto3" json:"count"`
	HasMore bool       `protobuf:"varint,3,opt,name=has_more,json=hasMore,proto3" json:"has_more"`
	LastId  string     `protobuf:"bytes,4,opt,name=last_id,json=lastId,proto3" json:"last_id"`
}

func (*ListCommentReply) Descriptor

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

func (*ListCommentReply) GetCount

func (m *ListCommentReply) GetCount() int64

func (*ListCommentReply) GetHasMore

func (m *ListCommentReply) GetHasMore() bool

func (*ListCommentReply) GetItems

func (m *ListCommentReply) GetItems() []*Comment

func (*ListCommentReply) GetLastId

func (m *ListCommentReply) GetLastId() string

func (*ListCommentReply) Marshal

func (m *ListCommentReply) Marshal() (dAtA []byte, err error)

func (*ListCommentReply) MarshalTo

func (m *ListCommentReply) MarshalTo(dAtA []byte) (int, error)

func (*ListCommentReply) MarshalToSizedBuffer

func (m *ListCommentReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListCommentReply) ProtoMessage

func (*ListCommentReply) ProtoMessage()

func (*ListCommentReply) Reset

func (m *ListCommentReply) Reset()

func (*ListCommentReply) Size

func (m *ListCommentReply) Size() (n int)

func (*ListCommentReply) String

func (m *ListCommentReply) String() string

func (*ListCommentReply) Unmarshal

func (m *ListCommentReply) Unmarshal(dAtA []byte) error

func (*ListCommentReply) XXX_DiscardUnknown

func (m *ListCommentReply) XXX_DiscardUnknown()

func (*ListCommentReply) XXX_Marshal

func (m *ListCommentReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListCommentReply) XXX_Merge

func (m *ListCommentReply) XXX_Merge(src proto.Message)

func (*ListCommentReply) XXX_Size

func (m *ListCommentReply) XXX_Size() int

func (*ListCommentReply) XXX_Unmarshal

func (m *ListCommentReply) XXX_Unmarshal(b []byte) error

type ListCommentRequest

type ListCommentRequest struct {
	// 分页id
	LastId int64 `protobuf:"varint,1,opt,name=last_id,json=lastId,proto3" json:"last_id,omitempty" form:"last_id"`
	Limit  int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty" form:"limit"`
	PostId int64 `protobuf:"varint,3,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" form:"post_id"`
}

func (*ListCommentRequest) Descriptor

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

func (*ListCommentRequest) GetLastId

func (m *ListCommentRequest) GetLastId() int64

func (*ListCommentRequest) GetLimit

func (m *ListCommentRequest) GetLimit() int32

func (*ListCommentRequest) GetPostId

func (m *ListCommentRequest) GetPostId() int64

func (*ListCommentRequest) Marshal

func (m *ListCommentRequest) Marshal() (dAtA []byte, err error)

func (*ListCommentRequest) MarshalTo

func (m *ListCommentRequest) MarshalTo(dAtA []byte) (int, error)

func (*ListCommentRequest) MarshalToSizedBuffer

func (m *ListCommentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListCommentRequest) ProtoMessage

func (*ListCommentRequest) ProtoMessage()

func (*ListCommentRequest) Reset

func (m *ListCommentRequest) Reset()

func (*ListCommentRequest) Size

func (m *ListCommentRequest) Size() (n int)

func (*ListCommentRequest) String

func (m *ListCommentRequest) String() string

func (*ListCommentRequest) Unmarshal

func (m *ListCommentRequest) Unmarshal(dAtA []byte) error

func (*ListCommentRequest) XXX_DiscardUnknown

func (m *ListCommentRequest) XXX_DiscardUnknown()

func (*ListCommentRequest) XXX_Marshal

func (m *ListCommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListCommentRequest) XXX_Merge

func (m *ListCommentRequest) XXX_Merge(src proto.Message)

func (*ListCommentRequest) XXX_Size

func (m *ListCommentRequest) XXX_Size() int

func (*ListCommentRequest) XXX_Unmarshal

func (m *ListCommentRequest) XXX_Unmarshal(b []byte) error

type ListPostLikeReply

type ListPostLikeReply struct {
	Items   []*Like `protobuf:"bytes,1,rep,name=items,proto3" json:"items"`
	Count   int64   `protobuf:"varint,2,opt,name=count,proto3" json:"count"`
	HasMore bool    `protobuf:"varint,3,opt,name=has_more,json=hasMore,proto3" json:"has_more"`
	LastId  string  `protobuf:"bytes,4,opt,name=last_id,json=lastId,proto3" json:"last_id"`
}

func (*ListPostLikeReply) Descriptor

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

func (*ListPostLikeReply) GetCount

func (m *ListPostLikeReply) GetCount() int64

func (*ListPostLikeReply) GetHasMore

func (m *ListPostLikeReply) GetHasMore() bool

func (*ListPostLikeReply) GetItems

func (m *ListPostLikeReply) GetItems() []*Like

func (*ListPostLikeReply) GetLastId

func (m *ListPostLikeReply) GetLastId() string

func (*ListPostLikeReply) Marshal

func (m *ListPostLikeReply) Marshal() (dAtA []byte, err error)

func (*ListPostLikeReply) MarshalTo

func (m *ListPostLikeReply) MarshalTo(dAtA []byte) (int, error)

func (*ListPostLikeReply) MarshalToSizedBuffer

func (m *ListPostLikeReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListPostLikeReply) ProtoMessage

func (*ListPostLikeReply) ProtoMessage()

func (*ListPostLikeReply) Reset

func (m *ListPostLikeReply) Reset()

func (*ListPostLikeReply) Size

func (m *ListPostLikeReply) Size() (n int)

func (*ListPostLikeReply) String

func (m *ListPostLikeReply) String() string

func (*ListPostLikeReply) Unmarshal

func (m *ListPostLikeReply) Unmarshal(dAtA []byte) error

func (*ListPostLikeReply) XXX_DiscardUnknown

func (m *ListPostLikeReply) XXX_DiscardUnknown()

func (*ListPostLikeReply) XXX_Marshal

func (m *ListPostLikeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListPostLikeReply) XXX_Merge

func (m *ListPostLikeReply) XXX_Merge(src proto.Message)

func (*ListPostLikeReply) XXX_Size

func (m *ListPostLikeReply) XXX_Size() int

func (*ListPostLikeReply) XXX_Unmarshal

func (m *ListPostLikeReply) XXX_Unmarshal(b []byte) error

type ListPostLikeRequest

type ListPostLikeRequest struct {
	PostId int64 `protobuf:"varint,1,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" form:"post_id"`
	LastId int64 `protobuf:"varint,2,opt,name=last_id,json=lastId,proto3" json:"last_id,omitempty" form:"last_id"`
	Limit  int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty" form:"limit"`
}

func (*ListPostLikeRequest) Descriptor

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

func (*ListPostLikeRequest) GetLastId

func (m *ListPostLikeRequest) GetLastId() int64

func (*ListPostLikeRequest) GetLimit

func (m *ListPostLikeRequest) GetLimit() int32

func (*ListPostLikeRequest) GetPostId

func (m *ListPostLikeRequest) GetPostId() int64

func (*ListPostLikeRequest) Marshal

func (m *ListPostLikeRequest) Marshal() (dAtA []byte, err error)

func (*ListPostLikeRequest) MarshalTo

func (m *ListPostLikeRequest) MarshalTo(dAtA []byte) (int, error)

func (*ListPostLikeRequest) MarshalToSizedBuffer

func (m *ListPostLikeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListPostLikeRequest) ProtoMessage

func (*ListPostLikeRequest) ProtoMessage()

func (*ListPostLikeRequest) Reset

func (m *ListPostLikeRequest) Reset()

func (*ListPostLikeRequest) Size

func (m *ListPostLikeRequest) Size() (n int)

func (*ListPostLikeRequest) String

func (m *ListPostLikeRequest) String() string

func (*ListPostLikeRequest) Unmarshal

func (m *ListPostLikeRequest) Unmarshal(dAtA []byte) error

func (*ListPostLikeRequest) XXX_DiscardUnknown

func (m *ListPostLikeRequest) XXX_DiscardUnknown()

func (*ListPostLikeRequest) XXX_Marshal

func (m *ListPostLikeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListPostLikeRequest) XXX_Merge

func (m *ListPostLikeRequest) XXX_Merge(src proto.Message)

func (*ListPostLikeRequest) XXX_Size

func (m *ListPostLikeRequest) XXX_Size() int

func (*ListPostLikeRequest) XXX_Unmarshal

func (m *ListPostLikeRequest) XXX_Unmarshal(b []byte) error

type ListPostReply

type ListPostReply struct {
	Items   []*Post `protobuf:"bytes,1,rep,name=items,proto3" json:"items"`
	Count   int64   `protobuf:"varint,2,opt,name=count,proto3" json:"count"`
	HasMore bool    `protobuf:"varint,3,opt,name=has_more,json=hasMore,proto3" json:"has_more"`
	LastId  string  `protobuf:"bytes,4,opt,name=last_id,json=lastId,proto3" json:"last_id"`
}

func (*ListPostReply) Descriptor

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

func (*ListPostReply) GetCount

func (m *ListPostReply) GetCount() int64

func (*ListPostReply) GetHasMore

func (m *ListPostReply) GetHasMore() bool

func (*ListPostReply) GetItems

func (m *ListPostReply) GetItems() []*Post

func (*ListPostReply) GetLastId

func (m *ListPostReply) GetLastId() string

func (*ListPostReply) Marshal

func (m *ListPostReply) Marshal() (dAtA []byte, err error)

func (*ListPostReply) MarshalTo

func (m *ListPostReply) MarshalTo(dAtA []byte) (int, error)

func (*ListPostReply) MarshalToSizedBuffer

func (m *ListPostReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListPostReply) ProtoMessage

func (*ListPostReply) ProtoMessage()

func (*ListPostReply) Reset

func (m *ListPostReply) Reset()

func (*ListPostReply) Size

func (m *ListPostReply) Size() (n int)

func (*ListPostReply) String

func (m *ListPostReply) String() string

func (*ListPostReply) Unmarshal

func (m *ListPostReply) Unmarshal(dAtA []byte) error

func (*ListPostReply) XXX_DiscardUnknown

func (m *ListPostReply) XXX_DiscardUnknown()

func (*ListPostReply) XXX_Marshal

func (m *ListPostReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListPostReply) XXX_Merge

func (m *ListPostReply) XXX_Merge(src proto.Message)

func (*ListPostReply) XXX_Size

func (m *ListPostReply) XXX_Size() int

func (*ListPostReply) XXX_Unmarshal

func (m *ListPostReply) XXX_Unmarshal(b []byte) error

type ListPostRequest

type ListPostRequest struct {
	LastId int64 `protobuf:"varint,1,opt,name=last_id,json=lastId,proto3" json:"last_id,omitempty" form:"last_id"`
	Limit  int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty" form:"limit"`
}

func (*ListPostRequest) Descriptor

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

func (*ListPostRequest) GetLastId

func (m *ListPostRequest) GetLastId() int64

func (*ListPostRequest) GetLimit

func (m *ListPostRequest) GetLimit() int32

func (*ListPostRequest) Marshal

func (m *ListPostRequest) Marshal() (dAtA []byte, err error)

func (*ListPostRequest) MarshalTo

func (m *ListPostRequest) MarshalTo(dAtA []byte) (int, error)

func (*ListPostRequest) MarshalToSizedBuffer

func (m *ListPostRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListPostRequest) ProtoMessage

func (*ListPostRequest) ProtoMessage()

func (*ListPostRequest) Reset

func (m *ListPostRequest) Reset()

func (*ListPostRequest) Size

func (m *ListPostRequest) Size() (n int)

func (*ListPostRequest) String

func (m *ListPostRequest) String() string

func (*ListPostRequest) Unmarshal

func (m *ListPostRequest) Unmarshal(dAtA []byte) error

func (*ListPostRequest) XXX_DiscardUnknown

func (m *ListPostRequest) XXX_DiscardUnknown()

func (*ListPostRequest) XXX_Marshal

func (m *ListPostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListPostRequest) XXX_Merge

func (m *ListPostRequest) XXX_Merge(src proto.Message)

func (*ListPostRequest) XXX_Size

func (m *ListPostRequest) XXX_Size() int

func (*ListPostRequest) XXX_Unmarshal

func (m *ListPostRequest) XXX_Unmarshal(b []byte) error

type ListReplyReply

type ListReplyReply struct {
	Items   []*Comment `protobuf:"bytes,1,rep,name=items,proto3" json:"items"`
	Count   int64      `protobuf:"varint,2,opt,name=count,proto3" json:"count"`
	HasMore bool       `protobuf:"varint,3,opt,name=has_more,json=hasMore,proto3" json:"has_more"`
	LastId  string     `protobuf:"bytes,4,opt,name=last_id,json=lastId,proto3" json:"last_id"`
}

func (*ListReplyReply) Descriptor

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

func (*ListReplyReply) GetCount

func (m *ListReplyReply) GetCount() int64

func (*ListReplyReply) GetHasMore

func (m *ListReplyReply) GetHasMore() bool

func (*ListReplyReply) GetItems

func (m *ListReplyReply) GetItems() []*Comment

func (*ListReplyReply) GetLastId

func (m *ListReplyReply) GetLastId() string

func (*ListReplyReply) Marshal

func (m *ListReplyReply) Marshal() (dAtA []byte, err error)

func (*ListReplyReply) MarshalTo

func (m *ListReplyReply) MarshalTo(dAtA []byte) (int, error)

func (*ListReplyReply) MarshalToSizedBuffer

func (m *ListReplyReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListReplyReply) ProtoMessage

func (*ListReplyReply) ProtoMessage()

func (*ListReplyReply) Reset

func (m *ListReplyReply) Reset()

func (*ListReplyReply) Size

func (m *ListReplyReply) Size() (n int)

func (*ListReplyReply) String

func (m *ListReplyReply) String() string

func (*ListReplyReply) Unmarshal

func (m *ListReplyReply) Unmarshal(dAtA []byte) error

func (*ListReplyReply) XXX_DiscardUnknown

func (m *ListReplyReply) XXX_DiscardUnknown()

func (*ListReplyReply) XXX_Marshal

func (m *ListReplyReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListReplyReply) XXX_Merge

func (m *ListReplyReply) XXX_Merge(src proto.Message)

func (*ListReplyReply) XXX_Size

func (m *ListReplyReply) XXX_Size() int

func (*ListReplyReply) XXX_Unmarshal

func (m *ListReplyReply) XXX_Unmarshal(b []byte) error

type ListReplyRequest

type ListReplyRequest struct {
	LastId    int64 `protobuf:"varint,1,opt,name=last_id,json=lastId,proto3" json:"last_id,omitempty" form:"last_id"`
	Limit     int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty" form:"limit"`
	CommentId int64 `protobuf:"varint,3,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty" form:"comment_id"`
}

func (*ListReplyRequest) Descriptor

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

func (*ListReplyRequest) GetCommentId

func (m *ListReplyRequest) GetCommentId() int64

func (*ListReplyRequest) GetLastId

func (m *ListReplyRequest) GetLastId() int64

func (*ListReplyRequest) GetLimit

func (m *ListReplyRequest) GetLimit() int32

func (*ListReplyRequest) Marshal

func (m *ListReplyRequest) Marshal() (dAtA []byte, err error)

func (*ListReplyRequest) MarshalTo

func (m *ListReplyRequest) MarshalTo(dAtA []byte) (int, error)

func (*ListReplyRequest) MarshalToSizedBuffer

func (m *ListReplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListReplyRequest) ProtoMessage

func (*ListReplyRequest) ProtoMessage()

func (*ListReplyRequest) Reset

func (m *ListReplyRequest) Reset()

func (*ListReplyRequest) Size

func (m *ListReplyRequest) Size() (n int)

func (*ListReplyRequest) String

func (m *ListReplyRequest) String() string

func (*ListReplyRequest) Unmarshal

func (m *ListReplyRequest) Unmarshal(dAtA []byte) error

func (*ListReplyRequest) XXX_DiscardUnknown

func (m *ListReplyRequest) XXX_DiscardUnknown()

func (*ListReplyRequest) XXX_Marshal

func (m *ListReplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListReplyRequest) XXX_Merge

func (m *ListReplyRequest) XXX_Merge(src proto.Message)

func (*ListReplyRequest) XXX_Size

func (m *ListReplyRequest) XXX_Size() int

func (*ListReplyRequest) XXX_Unmarshal

func (m *ListReplyRequest) XXX_Unmarshal(b []byte) error

type Post

type Post struct {
	Id           string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`
	PostType     int32    `protobuf:"varint,2,opt,name=post_type,json=postType,proto3" json:"post_type"`
	User         *v1.User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
	Title        string   `protobuf:"bytes,4,opt,name=title,proto3" json:"title"`
	Content      *Content `protobuf:"bytes,5,opt,name=content,proto3" json:"content"`
	ViewCount    int64    `protobuf:"varint,6,opt,name=view_count,json=viewCount,proto3" json:"view_count"`
	LikeCount    int64    `protobuf:"varint,7,opt,name=like_count,json=likeCount,proto3" json:"like_count"`
	CommentCount int64    `protobuf:"varint,8,opt,name=comment_count,json=commentCount,proto3" json:"comment_count"`
	CollectCount int64    `protobuf:"varint,9,opt,name=collect_count,json=collectCount,proto3" json:"collect_count"`
	ShareCount   int64    `protobuf:"varint,10,opt,name=share_count,json=shareCount,proto3" json:"share_count"`
	Longitude    float32  `protobuf:"fixed32,11,opt,name=longitude,proto3" json:"longitude"`
	Latitude     float32  `protobuf:"fixed32,12,opt,name=latitude,proto3" json:"latitude"`
	Position     float32  `protobuf:"fixed32,13,opt,name=position,proto3" json:"position"`
	CreatedAt    int64    `protobuf:"varint,14,opt,name=created_at,json=createdAt,proto3" json:"created_at"`
	IsLike       int32    `protobuf:"varint,15,opt,name=is_like,json=isLike,proto3" json:"is_like"`
}

func (*Post) Descriptor

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

func (*Post) GetCollectCount

func (m *Post) GetCollectCount() int64

func (*Post) GetCommentCount

func (m *Post) GetCommentCount() int64

func (*Post) GetContent

func (m *Post) GetContent() *Content

func (*Post) GetCreatedAt

func (m *Post) GetCreatedAt() int64

func (*Post) GetId

func (m *Post) GetId() string

func (*Post) GetIsLike

func (m *Post) GetIsLike() int32

func (*Post) GetLatitude

func (m *Post) GetLatitude() float32

func (*Post) GetLikeCount

func (m *Post) GetLikeCount() int64

func (*Post) GetLongitude

func (m *Post) GetLongitude() float32

func (*Post) GetPosition

func (m *Post) GetPosition() float32

func (*Post) GetPostType

func (m *Post) GetPostType() int32

func (*Post) GetShareCount

func (m *Post) GetShareCount() int64

func (*Post) GetTitle

func (m *Post) GetTitle() string

func (*Post) GetUser

func (m *Post) GetUser() *v1.User

func (*Post) GetViewCount

func (m *Post) GetViewCount() int64

func (*Post) Marshal

func (m *Post) Marshal() (dAtA []byte, err error)

func (*Post) MarshalTo

func (m *Post) MarshalTo(dAtA []byte) (int, error)

func (*Post) MarshalToSizedBuffer

func (m *Post) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Post) ProtoMessage

func (*Post) ProtoMessage()

func (*Post) Reset

func (m *Post) Reset()

func (*Post) Size

func (m *Post) Size() (n int)

func (*Post) String

func (m *Post) String() string

func (*Post) Unmarshal

func (m *Post) Unmarshal(dAtA []byte) error

func (*Post) XXX_DiscardUnknown

func (m *Post) XXX_DiscardUnknown()

func (*Post) XXX_Marshal

func (m *Post) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Post) XXX_Merge

func (m *Post) XXX_Merge(src proto.Message)

func (*Post) XXX_Size

func (m *Post) XXX_Size() int

func (*Post) XXX_Unmarshal

func (m *Post) XXX_Unmarshal(b []byte) error

type PostImage

type PostImage struct {
	ImageKey  string `protobuf:"bytes,1,opt,name=image_key,json=imageKey,proto3" json:"image_key,omitempty"`
	ImageUrl  string `protobuf:"bytes,2,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"`
	ImageType string `protobuf:"bytes,3,opt,name=image_type,json=imageType,proto3" json:"image_type,omitempty"`
	Width     int32  `protobuf:"varint,4,opt,name=width,proto3" json:"width,omitempty"`
	Height    int32  `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
}

func (*PostImage) Descriptor

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

func (*PostImage) GetHeight

func (m *PostImage) GetHeight() int32

func (*PostImage) GetImageKey

func (m *PostImage) GetImageKey() string

func (*PostImage) GetImageType

func (m *PostImage) GetImageType() string

func (*PostImage) GetImageUrl

func (m *PostImage) GetImageUrl() string

func (*PostImage) GetWidth

func (m *PostImage) GetWidth() int32

func (*PostImage) Marshal

func (m *PostImage) Marshal() (dAtA []byte, err error)

func (*PostImage) MarshalTo

func (m *PostImage) MarshalTo(dAtA []byte) (int, error)

func (*PostImage) MarshalToSizedBuffer

func (m *PostImage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PostImage) ProtoMessage

func (*PostImage) ProtoMessage()

func (*PostImage) Reset

func (m *PostImage) Reset()

func (*PostImage) Size

func (m *PostImage) Size() (n int)

func (*PostImage) String

func (m *PostImage) String() string

func (*PostImage) Unmarshal

func (m *PostImage) Unmarshal(dAtA []byte) error

func (*PostImage) XXX_DiscardUnknown

func (m *PostImage) XXX_DiscardUnknown()

func (*PostImage) XXX_Marshal

func (m *PostImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PostImage) XXX_Merge

func (m *PostImage) XXX_Merge(src proto.Message)

func (*PostImage) XXX_Size

func (m *PostImage) XXX_Size() int

func (*PostImage) XXX_Unmarshal

func (m *PostImage) XXX_Unmarshal(b []byte) error

type PostImageRequest

type PostImageRequest struct {
	ImageKey  string `protobuf:"bytes,1,opt,name=image_key,json=imageKey,proto3" json:"image_key,omitempty"`
	ImageType string `protobuf:"bytes,2,opt,name=image_type,json=imageType,proto3" json:"image_type,omitempty"`
	Width     int32  `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"`
	Height    int32  `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
}

func (*PostImageRequest) Descriptor

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

func (*PostImageRequest) GetHeight

func (m *PostImageRequest) GetHeight() int32

func (*PostImageRequest) GetImageKey

func (m *PostImageRequest) GetImageKey() string

func (*PostImageRequest) GetImageType

func (m *PostImageRequest) GetImageType() string

func (*PostImageRequest) GetWidth

func (m *PostImageRequest) GetWidth() int32

func (*PostImageRequest) Marshal

func (m *PostImageRequest) Marshal() (dAtA []byte, err error)

func (*PostImageRequest) MarshalTo

func (m *PostImageRequest) MarshalTo(dAtA []byte) (int, error)

func (*PostImageRequest) MarshalToSizedBuffer

func (m *PostImageRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PostImageRequest) ProtoMessage

func (*PostImageRequest) ProtoMessage()

func (*PostImageRequest) Reset

func (m *PostImageRequest) Reset()

func (*PostImageRequest) Size

func (m *PostImageRequest) Size() (n int)

func (*PostImageRequest) String

func (m *PostImageRequest) String() string

func (*PostImageRequest) Unmarshal

func (m *PostImageRequest) Unmarshal(dAtA []byte) error

func (*PostImageRequest) XXX_DiscardUnknown

func (m *PostImageRequest) XXX_DiscardUnknown()

func (*PostImageRequest) XXX_Marshal

func (m *PostImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PostImageRequest) XXX_Merge

func (m *PostImageRequest) XXX_Merge(src proto.Message)

func (*PostImageRequest) XXX_Size

func (m *PostImageRequest) XXX_Size() int

func (*PostImageRequest) XXX_Unmarshal

func (m *PostImageRequest) XXX_Unmarshal(b []byte) error

type PostService

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

func (*PostService) CreatePost_0

func (s *PostService) CreatePost_0(ctx *gin.Context)

func (*PostService) DeletePost_0

func (s *PostService) DeletePost_0(ctx *gin.Context)

func (*PostService) GetPost_0

func (s *PostService) GetPost_0(ctx *gin.Context)

func (*PostService) ListHotPost_0

func (s *PostService) ListHotPost_0(ctx *gin.Context)

func (*PostService) ListLatestPost_0

func (s *PostService) ListLatestPost_0(ctx *gin.Context)

func (*PostService) RegisterService

func (s *PostService) RegisterService()

func (*PostService) UpdatePost_0

func (s *PostService) UpdatePost_0(ctx *gin.Context)

type PostServiceClient

type PostServiceClient interface {
	CreatePost(ctx context.Context, in *CreatePostRequest, opts ...grpc.CallOption) (*CreatePostReply, error)
	UpdatePost(ctx context.Context, in *UpdatePostRequest, opts ...grpc.CallOption) (*UpdatePostReply, error)
	DeletePost(ctx context.Context, in *DeletePostRequest, opts ...grpc.CallOption) (*DeletePostReply, error)
	GetPost(ctx context.Context, in *GetPostRequest, opts ...grpc.CallOption) (*GetPostReply, error)
	ListHotPost(ctx context.Context, in *ListPostRequest, opts ...grpc.CallOption) (*ListPostReply, error)
	ListLatestPost(ctx context.Context, in *ListPostRequest, opts ...grpc.CallOption) (*ListPostReply, error)
}

PostServiceClient is the client API for PostService 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.

type PostServiceServer

type PostServiceServer interface {
	CreatePost(context.Context, *CreatePostRequest) (*CreatePostReply, error)
	UpdatePost(context.Context, *UpdatePostRequest) (*UpdatePostReply, error)
	DeletePost(context.Context, *DeletePostRequest) (*DeletePostReply, error)
	GetPost(context.Context, *GetPostRequest) (*GetPostReply, error)
	ListHotPost(context.Context, *ListPostRequest) (*ListPostReply, error)
	ListLatestPost(context.Context, *ListPostRequest) (*ListPostReply, error)
	// contains filtered or unexported methods
}

PostServiceServer is the server API for PostService service. All implementations must embed UnimplementedPostServiceServer for forward compatibility

type ReplyCommentReply

type ReplyCommentReply struct {
	Comment *Comment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"`
}

func (*ReplyCommentReply) Descriptor

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

func (*ReplyCommentReply) GetComment

func (m *ReplyCommentReply) GetComment() *Comment

func (*ReplyCommentReply) Marshal

func (m *ReplyCommentReply) Marshal() (dAtA []byte, err error)

func (*ReplyCommentReply) MarshalTo

func (m *ReplyCommentReply) MarshalTo(dAtA []byte) (int, error)

func (*ReplyCommentReply) MarshalToSizedBuffer

func (m *ReplyCommentReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ReplyCommentReply) ProtoMessage

func (*ReplyCommentReply) ProtoMessage()

func (*ReplyCommentReply) Reset

func (m *ReplyCommentReply) Reset()

func (*ReplyCommentReply) Size

func (m *ReplyCommentReply) Size() (n int)

func (*ReplyCommentReply) String

func (m *ReplyCommentReply) String() string

func (*ReplyCommentReply) Unmarshal

func (m *ReplyCommentReply) Unmarshal(dAtA []byte) error

func (*ReplyCommentReply) XXX_DiscardUnknown

func (m *ReplyCommentReply) XXX_DiscardUnknown()

func (*ReplyCommentReply) XXX_Marshal

func (m *ReplyCommentReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplyCommentReply) XXX_Merge

func (m *ReplyCommentReply) XXX_Merge(src proto.Message)

func (*ReplyCommentReply) XXX_Size

func (m *ReplyCommentReply) XXX_Size() int

func (*ReplyCommentReply) XXX_Unmarshal

func (m *ReplyCommentReply) XXX_Unmarshal(b []byte) error

type ReplyCommentRequest

type ReplyCommentRequest struct {
	CommentId  int64  `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"`
	UserId     int64  `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Content    string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	RootId     int64  `protobuf:"varint,4,opt,name=root_id,json=rootId,proto3" json:"root_id,omitempty"`
	ParentId   int64  `protobuf:"varint,5,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	DeviceType string `protobuf:"bytes,6,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"`
	Ip         string `protobuf:"bytes,7,opt,name=ip,proto3" json:"ip,omitempty"`
}

func (*ReplyCommentRequest) Descriptor

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

func (*ReplyCommentRequest) GetCommentId

func (m *ReplyCommentRequest) GetCommentId() int64

func (*ReplyCommentRequest) GetContent

func (m *ReplyCommentRequest) GetContent() string

func (*ReplyCommentRequest) GetDeviceType

func (m *ReplyCommentRequest) GetDeviceType() string

func (*ReplyCommentRequest) GetIp

func (m *ReplyCommentRequest) GetIp() string

func (*ReplyCommentRequest) GetParentId

func (m *ReplyCommentRequest) GetParentId() int64

func (*ReplyCommentRequest) GetRootId

func (m *ReplyCommentRequest) GetRootId() int64

func (*ReplyCommentRequest) GetUserId

func (m *ReplyCommentRequest) GetUserId() int64

func (*ReplyCommentRequest) Marshal

func (m *ReplyCommentRequest) Marshal() (dAtA []byte, err error)

func (*ReplyCommentRequest) MarshalTo

func (m *ReplyCommentRequest) MarshalTo(dAtA []byte) (int, error)

func (*ReplyCommentRequest) MarshalToSizedBuffer

func (m *ReplyCommentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ReplyCommentRequest) ProtoMessage

func (*ReplyCommentRequest) ProtoMessage()

func (*ReplyCommentRequest) Reset

func (m *ReplyCommentRequest) Reset()

func (*ReplyCommentRequest) Size

func (m *ReplyCommentRequest) Size() (n int)

func (*ReplyCommentRequest) String

func (m *ReplyCommentRequest) String() string

func (*ReplyCommentRequest) Unmarshal

func (m *ReplyCommentRequest) Unmarshal(dAtA []byte) error

func (*ReplyCommentRequest) XXX_DiscardUnknown

func (m *ReplyCommentRequest) XXX_DiscardUnknown()

func (*ReplyCommentRequest) XXX_Marshal

func (m *ReplyCommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplyCommentRequest) XXX_Merge

func (m *ReplyCommentRequest) XXX_Merge(src proto.Message)

func (*ReplyCommentRequest) XXX_Size

func (m *ReplyCommentRequest) XXX_Size() int

func (*ReplyCommentRequest) XXX_Unmarshal

func (m *ReplyCommentRequest) XXX_Unmarshal(b []byte) error

type UnimplementedCommentServiceServer

type UnimplementedCommentServiceServer struct {
}

UnimplementedCommentServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCommentServiceServer) CreateComment

func (UnimplementedCommentServiceServer) DeleteComment

func (UnimplementedCommentServiceServer) ListHotComment

func (UnimplementedCommentServiceServer) ListLatestComment

func (UnimplementedCommentServiceServer) ListReply

func (UnimplementedCommentServiceServer) ReplyComment

type UnimplementedLikeServiceServer

type UnimplementedLikeServiceServer struct {
}

UnimplementedLikeServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedLikeServiceServer) CreateCommentLike

func (UnimplementedLikeServiceServer) CreatePostLike

func (UnimplementedLikeServiceServer) DeleteCommentLike

func (UnimplementedLikeServiceServer) DeletePostLike

func (UnimplementedLikeServiceServer) ListCommentLike

func (UnimplementedLikeServiceServer) ListPostLike

type UnimplementedPostServiceServer

type UnimplementedPostServiceServer struct {
}

UnimplementedPostServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPostServiceServer) CreatePost

func (UnimplementedPostServiceServer) DeletePost

func (UnimplementedPostServiceServer) GetPost

func (UnimplementedPostServiceServer) ListHotPost

func (UnimplementedPostServiceServer) ListLatestPost

func (UnimplementedPostServiceServer) UpdatePost

type UnsafeCommentServiceServer

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

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

type UnsafeLikeServiceServer

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

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

type UnsafePostServiceServer

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

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

type UpdateCommentReply

type UpdateCommentReply struct {
}

func (*UpdateCommentReply) Descriptor

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

func (*UpdateCommentReply) Marshal

func (m *UpdateCommentReply) Marshal() (dAtA []byte, err error)

func (*UpdateCommentReply) MarshalTo

func (m *UpdateCommentReply) MarshalTo(dAtA []byte) (int, error)

func (*UpdateCommentReply) MarshalToSizedBuffer

func (m *UpdateCommentReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UpdateCommentReply) ProtoMessage

func (*UpdateCommentReply) ProtoMessage()

func (*UpdateCommentReply) Reset

func (m *UpdateCommentReply) Reset()

func (*UpdateCommentReply) Size

func (m *UpdateCommentReply) Size() (n int)

func (*UpdateCommentReply) String

func (m *UpdateCommentReply) String() string

func (*UpdateCommentReply) Unmarshal

func (m *UpdateCommentReply) Unmarshal(dAtA []byte) error

func (*UpdateCommentReply) XXX_DiscardUnknown

func (m *UpdateCommentReply) XXX_DiscardUnknown()

func (*UpdateCommentReply) XXX_Marshal

func (m *UpdateCommentReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateCommentReply) XXX_Merge

func (m *UpdateCommentReply) XXX_Merge(src proto.Message)

func (*UpdateCommentReply) XXX_Size

func (m *UpdateCommentReply) XXX_Size() int

func (*UpdateCommentReply) XXX_Unmarshal

func (m *UpdateCommentReply) XXX_Unmarshal(b []byte) error

type UpdateCommentRequest

type UpdateCommentRequest struct {
}

func (*UpdateCommentRequest) Descriptor

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

func (*UpdateCommentRequest) Marshal

func (m *UpdateCommentRequest) Marshal() (dAtA []byte, err error)

func (*UpdateCommentRequest) MarshalTo

func (m *UpdateCommentRequest) MarshalTo(dAtA []byte) (int, error)

func (*UpdateCommentRequest) MarshalToSizedBuffer

func (m *UpdateCommentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UpdateCommentRequest) ProtoMessage

func (*UpdateCommentRequest) ProtoMessage()

func (*UpdateCommentRequest) Reset

func (m *UpdateCommentRequest) Reset()

func (*UpdateCommentRequest) Size

func (m *UpdateCommentRequest) Size() (n int)

func (*UpdateCommentRequest) String

func (m *UpdateCommentRequest) String() string

func (*UpdateCommentRequest) Unmarshal

func (m *UpdateCommentRequest) Unmarshal(dAtA []byte) error

func (*UpdateCommentRequest) XXX_DiscardUnknown

func (m *UpdateCommentRequest) XXX_DiscardUnknown()

func (*UpdateCommentRequest) XXX_Marshal

func (m *UpdateCommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateCommentRequest) XXX_Merge

func (m *UpdateCommentRequest) XXX_Merge(src proto.Message)

func (*UpdateCommentRequest) XXX_Size

func (m *UpdateCommentRequest) XXX_Size() int

func (*UpdateCommentRequest) XXX_Unmarshal

func (m *UpdateCommentRequest) XXX_Unmarshal(b []byte) error

type UpdatePostReply

type UpdatePostReply struct {
}

func (*UpdatePostReply) Descriptor

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

func (*UpdatePostReply) Marshal

func (m *UpdatePostReply) Marshal() (dAtA []byte, err error)

func (*UpdatePostReply) MarshalTo

func (m *UpdatePostReply) MarshalTo(dAtA []byte) (int, error)

func (*UpdatePostReply) MarshalToSizedBuffer

func (m *UpdatePostReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UpdatePostReply) ProtoMessage

func (*UpdatePostReply) ProtoMessage()

func (*UpdatePostReply) Reset

func (m *UpdatePostReply) Reset()

func (*UpdatePostReply) Size

func (m *UpdatePostReply) Size() (n int)

func (*UpdatePostReply) String

func (m *UpdatePostReply) String() string

func (*UpdatePostReply) Unmarshal

func (m *UpdatePostReply) Unmarshal(dAtA []byte) error

func (*UpdatePostReply) XXX_DiscardUnknown

func (m *UpdatePostReply) XXX_DiscardUnknown()

func (*UpdatePostReply) XXX_Marshal

func (m *UpdatePostReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdatePostReply) XXX_Merge

func (m *UpdatePostReply) XXX_Merge(src proto.Message)

func (*UpdatePostReply) XXX_Size

func (m *UpdatePostReply) XXX_Size() int

func (*UpdatePostReply) XXX_Unmarshal

func (m *UpdatePostReply) XXX_Unmarshal(b []byte) error

type UpdatePostRequest

type UpdatePostRequest struct {
}

func (*UpdatePostRequest) Descriptor

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

func (*UpdatePostRequest) Marshal

func (m *UpdatePostRequest) Marshal() (dAtA []byte, err error)

func (*UpdatePostRequest) MarshalTo

func (m *UpdatePostRequest) MarshalTo(dAtA []byte) (int, error)

func (*UpdatePostRequest) MarshalToSizedBuffer

func (m *UpdatePostRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UpdatePostRequest) ProtoMessage

func (*UpdatePostRequest) ProtoMessage()

func (*UpdatePostRequest) Reset

func (m *UpdatePostRequest) Reset()

func (*UpdatePostRequest) Size

func (m *UpdatePostRequest) Size() (n int)

func (*UpdatePostRequest) String

func (m *UpdatePostRequest) String() string

func (*UpdatePostRequest) Unmarshal

func (m *UpdatePostRequest) Unmarshal(dAtA []byte) error

func (*UpdatePostRequest) XXX_DiscardUnknown

func (m *UpdatePostRequest) XXX_DiscardUnknown()

func (*UpdatePostRequest) XXX_Marshal

func (m *UpdatePostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdatePostRequest) XXX_Merge

func (m *UpdatePostRequest) XXX_Merge(src proto.Message)

func (*UpdatePostRequest) XXX_Size

func (m *UpdatePostRequest) XXX_Size() int

func (*UpdatePostRequest) XXX_Unmarshal

func (m *UpdatePostRequest) XXX_Unmarshal(b []byte) error

type Video

type Video struct {
	VideoKey string  `protobuf:"bytes,1,opt,name=video_key,json=videoKey,proto3" json:"video_key,omitempty"`
	VideoUrl string  `protobuf:"bytes,2,opt,name=video_url,json=videoUrl,proto3" json:"video_url,omitempty"`
	CoverKey string  `protobuf:"bytes,3,opt,name=cover_key,json=coverKey,proto3" json:"cover_key,omitempty"`
	CoverUrl string  `protobuf:"bytes,4,opt,name=cover_url,json=coverUrl,proto3" json:"cover_url,omitempty"`
	Duration float32 `protobuf:"fixed32,5,opt,name=duration,proto3" json:"duration,omitempty"`
	Width    int32   `protobuf:"varint,6,opt,name=width,proto3" json:"width,omitempty"`
	Height   int32   `protobuf:"varint,7,opt,name=height,proto3" json:"height,omitempty"`
}

func (*Video) Descriptor

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

func (*Video) GetCoverKey

func (m *Video) GetCoverKey() string

func (*Video) GetCoverUrl

func (m *Video) GetCoverUrl() string

func (*Video) GetDuration

func (m *Video) GetDuration() float32

func (*Video) GetHeight

func (m *Video) GetHeight() int32

func (*Video) GetVideoKey

func (m *Video) GetVideoKey() string

func (*Video) GetVideoUrl

func (m *Video) GetVideoUrl() string

func (*Video) GetWidth

func (m *Video) GetWidth() int32

func (*Video) Marshal

func (m *Video) Marshal() (dAtA []byte, err error)

func (*Video) MarshalTo

func (m *Video) MarshalTo(dAtA []byte) (int, error)

func (*Video) MarshalToSizedBuffer

func (m *Video) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Video) ProtoMessage

func (*Video) ProtoMessage()

func (*Video) Reset

func (m *Video) Reset()

func (*Video) Size

func (m *Video) Size() (n int)

func (*Video) String

func (m *Video) String() string

func (*Video) Unmarshal

func (m *Video) Unmarshal(dAtA []byte) error

func (*Video) XXX_DiscardUnknown

func (m *Video) XXX_DiscardUnknown()

func (*Video) XXX_Marshal

func (m *Video) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Video) XXX_Merge

func (m *Video) XXX_Merge(src proto.Message)

func (*Video) XXX_Size

func (m *Video) XXX_Size() int

func (*Video) XXX_Unmarshal

func (m *Video) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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