v1

package
v0.0.0-...-048bef2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommentService_CreateComment_FullMethodName     = "/api.moment.v1.CommentService/CreateComment"
	CommentService_UpdateComment_FullMethodName     = "/api.moment.v1.CommentService/UpdateComment"
	CommentService_DeleteComment_FullMethodName     = "/api.moment.v1.CommentService/DeleteComment"
	CommentService_ReplyComment_FullMethodName      = "/api.moment.v1.CommentService/ReplyComment"
	CommentService_GetComment_FullMethodName        = "/api.moment.v1.CommentService/GetComment"
	CommentService_BatchGetComment_FullMethodName   = "/api.moment.v1.CommentService/BatchGetComment"
	CommentService_ListHotComment_FullMethodName    = "/api.moment.v1.CommentService/ListHotComment"
	CommentService_ListLatestComment_FullMethodName = "/api.moment.v1.CommentService/ListLatestComment"
	CommentService_ListReplyComment_FullMethodName  = "/api.moment.v1.CommentService/ListReplyComment"
)
View Source
const (
	LikeService_CreateLike_FullMethodName      = "/api.moment.v1.LikeService/CreateLike"
	LikeService_UpdateLike_FullMethodName      = "/api.moment.v1.LikeService/UpdateLike"
	LikeService_DeleteLike_FullMethodName      = "/api.moment.v1.LikeService/DeleteLike"
	LikeService_GetLike_FullMethodName         = "/api.moment.v1.LikeService/GetLike"
	LikeService_BatchGetLike_FullMethodName    = "/api.moment.v1.LikeService/BatchGetLike"
	LikeService_ListPostLike_FullMethodName    = "/api.moment.v1.LikeService/ListPostLike"
	LikeService_ListCommentLike_FullMethodName = "/api.moment.v1.LikeService/ListCommentLike"
)
View Source
const (
	PostService_CreatePost_FullMethodName     = "/api.moment.v1.PostService/CreatePost"
	PostService_UpdatePost_FullMethodName     = "/api.moment.v1.PostService/UpdatePost"
	PostService_DeletePost_FullMethodName     = "/api.moment.v1.PostService/DeletePost"
	PostService_GetPost_FullMethodName        = "/api.moment.v1.PostService/GetPost"
	PostService_BatchGetPost_FullMethodName   = "/api.moment.v1.PostService/BatchGetPost"
	PostService_ListMyPost_FullMethodName     = "/api.moment.v1.PostService/ListMyPost"
	PostService_ListLatestPost_FullMethodName = "/api.moment.v1.PostService/ListLatestPost"
	PostService_ListHotPost_FullMethodName    = "/api.moment.v1.PostService/ListHotPost"
)

Variables

View Source
var (
	Post_DEL_FLAG_name = map[int32]string{
		0: "DEL_FLAG_UNSPECIFIED",
		1: "DEL_FLAG_NORMAL",
		2: "DEL_FLAG_USER",
		3: "DEL_FLAG_ADMIN",
	}
	Post_DEL_FLAG_value = map[string]int32{
		"DEL_FLAG_UNSPECIFIED": 0,
		"DEL_FLAG_NORMAL":      1,
		"DEL_FLAG_USER":        2,
		"DEL_FLAG_ADMIN":       3,
	}
)

Enum value maps for Post_DEL_FLAG.

View Source
var (
	Post_VISIBLE_name = map[int32]string{
		0: "VISIBLE_UNSPECIFIED",
		1: "VISIBLE_ALL",
		2: "VISIBLE_SELF",
	}
	Post_VISIBLE_value = map[string]int32{
		"VISIBLE_UNSPECIFIED": 0,
		"VISIBLE_ALL":         1,
		"VISIBLE_SELF":        2,
	}
)

Enum value maps for Post_VISIBLE.

View Source
var CommentService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.moment.v1.CommentService",
	HandlerType: (*CommentServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateComment",
			Handler:    _CommentService_CreateComment_Handler,
		},
		{
			MethodName: "UpdateComment",
			Handler:    _CommentService_UpdateComment_Handler,
		},
		{
			MethodName: "DeleteComment",
			Handler:    _CommentService_DeleteComment_Handler,
		},
		{
			MethodName: "ReplyComment",
			Handler:    _CommentService_ReplyComment_Handler,
		},
		{
			MethodName: "GetComment",
			Handler:    _CommentService_GetComment_Handler,
		},
		{
			MethodName: "BatchGetComment",
			Handler:    _CommentService_BatchGetComment_Handler,
		},
		{
			MethodName: "ListHotComment",
			Handler:    _CommentService_ListHotComment_Handler,
		},
		{
			MethodName: "ListLatestComment",
			Handler:    _CommentService_ListLatestComment_Handler,
		},
		{
			MethodName: "ListReplyComment",
			Handler:    _CommentService_ListReplyComment_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/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 File_api_moment_v1_comment_proto protoreflect.FileDescriptor
View Source
var File_api_moment_v1_like_proto protoreflect.FileDescriptor
View Source
var File_api_moment_v1_post_proto protoreflect.FileDescriptor
View Source
var LikeService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.moment.v1.LikeService",
	HandlerType: (*LikeServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateLike",
			Handler:    _LikeService_CreateLike_Handler,
		},
		{
			MethodName: "UpdateLike",
			Handler:    _LikeService_UpdateLike_Handler,
		},
		{
			MethodName: "DeleteLike",
			Handler:    _LikeService_DeleteLike_Handler,
		},
		{
			MethodName: "GetLike",
			Handler:    _LikeService_GetLike_Handler,
		},
		{
			MethodName: "BatchGetLike",
			Handler:    _LikeService_BatchGetLike_Handler,
		},
		{
			MethodName: "ListPostLike",
			Handler:    _LikeService_ListPostLike_Handler,
		},
		{
			MethodName: "ListCommentLike",
			Handler:    _LikeService_ListCommentLike_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/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.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: "BatchGetPost",
			Handler:    _PostService_BatchGetPost_Handler,
		},
		{
			MethodName: "ListMyPost",
			Handler:    _PostService_ListMyPost_Handler,
		},
		{
			MethodName: "ListLatestPost",
			Handler:    _PostService_ListLatestPost_Handler,
		},
		{
			MethodName: "ListHotPost",
			Handler:    _PostService_ListHotPost_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/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 RegisterCommentServiceServer

func RegisterCommentServiceServer(s grpc.ServiceRegistrar, srv CommentServiceServer)

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 BatchGetCommentReply

type BatchGetCommentReply struct {
	Comments []*Comment `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchGetCommentReply) Descriptor deprecated

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

Deprecated: Use BatchGetCommentReply.ProtoReflect.Descriptor instead.

func (*BatchGetCommentReply) GetComments

func (x *BatchGetCommentReply) GetComments() []*Comment

func (*BatchGetCommentReply) ProtoMessage

func (*BatchGetCommentReply) ProtoMessage()

func (*BatchGetCommentReply) ProtoReflect

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

func (*BatchGetCommentReply) Reset

func (x *BatchGetCommentReply) Reset()

func (*BatchGetCommentReply) String

func (x *BatchGetCommentReply) String() string

type BatchGetCommentRequest

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

func (*BatchGetCommentRequest) Descriptor deprecated

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

Deprecated: Use BatchGetCommentRequest.ProtoReflect.Descriptor instead.

func (*BatchGetCommentRequest) GetIds

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

func (*BatchGetCommentRequest) ProtoMessage

func (*BatchGetCommentRequest) ProtoMessage()

func (*BatchGetCommentRequest) ProtoReflect

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

func (*BatchGetCommentRequest) Reset

func (x *BatchGetCommentRequest) Reset()

func (*BatchGetCommentRequest) String

func (x *BatchGetCommentRequest) String() string

type BatchGetLikeReply

type BatchGetLikeReply struct {
	Data map[int64]int32 `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*BatchGetLikeReply) Descriptor deprecated

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

Deprecated: Use BatchGetLikeReply.ProtoReflect.Descriptor instead.

func (*BatchGetLikeReply) GetData

func (x *BatchGetLikeReply) GetData() map[int64]int32

func (*BatchGetLikeReply) ProtoMessage

func (*BatchGetLikeReply) ProtoMessage()

func (*BatchGetLikeReply) ProtoReflect

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

func (*BatchGetLikeReply) Reset

func (x *BatchGetLikeReply) Reset()

func (*BatchGetLikeReply) String

func (x *BatchGetLikeReply) String() string

type BatchGetLikeRequest

type BatchGetLikeRequest struct {
	UserId  int64   `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ObjType int32   `protobuf:"varint,2,opt,name=obj_type,json=objType,proto3" json:"obj_type,omitempty"`
	ObjIds  []int64 `protobuf:"varint,3,rep,packed,name=obj_ids,json=objIds,proto3" json:"obj_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchGetLikeRequest) Descriptor deprecated

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

Deprecated: Use BatchGetLikeRequest.ProtoReflect.Descriptor instead.

func (*BatchGetLikeRequest) GetObjIds

func (x *BatchGetLikeRequest) GetObjIds() []int64

func (*BatchGetLikeRequest) GetObjType

func (x *BatchGetLikeRequest) GetObjType() int32

func (*BatchGetLikeRequest) GetUserId

func (x *BatchGetLikeRequest) GetUserId() int64

func (*BatchGetLikeRequest) ProtoMessage

func (*BatchGetLikeRequest) ProtoMessage()

func (*BatchGetLikeRequest) ProtoReflect

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

func (*BatchGetLikeRequest) Reset

func (x *BatchGetLikeRequest) Reset()

func (*BatchGetLikeRequest) String

func (x *BatchGetLikeRequest) String() string

type BatchGetPostReply

type BatchGetPostReply struct {
	Posts []*Post `protobuf:"bytes,1,rep,name=posts,proto3" json:"posts,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchGetPostReply) Descriptor deprecated

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

Deprecated: Use BatchGetPostReply.ProtoReflect.Descriptor instead.

func (*BatchGetPostReply) GetPosts

func (x *BatchGetPostReply) GetPosts() []*Post

func (*BatchGetPostReply) ProtoMessage

func (*BatchGetPostReply) ProtoMessage()

func (*BatchGetPostReply) ProtoReflect

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

func (*BatchGetPostReply) Reset

func (x *BatchGetPostReply) Reset()

func (*BatchGetPostReply) String

func (x *BatchGetPostReply) String() string

type BatchGetPostRequest

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

func (*BatchGetPostRequest) Descriptor deprecated

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

Deprecated: Use BatchGetPostRequest.ProtoReflect.Descriptor instead.

func (*BatchGetPostRequest) GetIds

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

func (*BatchGetPostRequest) ProtoMessage

func (*BatchGetPostRequest) ProtoMessage()

func (*BatchGetPostRequest) ProtoReflect

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

func (*BatchGetPostRequest) Reset

func (x *BatchGetPostRequest) Reset()

func (*BatchGetPostRequest) String

func (x *BatchGetPostRequest) String() string

type Comment

type Comment struct {
	Id         int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	PostId     int64  `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"`
	UserId     int64  `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Content    string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
	RootId     int64  `protobuf:"varint,5,opt,name=root_id,json=rootId,proto3" json:"root_id,omitempty"`
	ParentId   int64  `protobuf:"varint,6,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	LikeCount  int32  `protobuf:"varint,7,opt,name=like_count,json=likeCount,proto3" json:"like_count,omitempty"`
	ReplyCount int32  `protobuf:"varint,8,opt,name=reply_count,json=replyCount,proto3" json:"reply_count,omitempty"`
	Score      int64  `protobuf:"varint,9,opt,name=score,proto3" json:"score,omitempty"`
	DelFlag    int32  `protobuf:"varint,10,opt,name=del_flag,json=delFlag,proto3" json:"del_flag,omitempty"`
	CreatedAt  string `protobuf:"bytes,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt  string `protobuf:"bytes,12,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	DeviceType string `protobuf:"bytes,13,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"`
	Ip         string `protobuf:"bytes,14,opt,name=ip,proto3" json:"ip,omitempty"`
	// contains filtered or unexported fields
}

func (*Comment) Descriptor deprecated

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

Deprecated: Use Comment.ProtoReflect.Descriptor instead.

func (*Comment) GetContent

func (x *Comment) GetContent() string

func (*Comment) GetCreatedAt

func (x *Comment) GetCreatedAt() string

func (*Comment) GetDelFlag

func (x *Comment) GetDelFlag() int32

func (*Comment) GetDeviceType

func (x *Comment) GetDeviceType() string

func (*Comment) GetId

func (x *Comment) GetId() int64

func (*Comment) GetIp

func (x *Comment) GetIp() string

func (*Comment) GetLikeCount

func (x *Comment) GetLikeCount() int32

func (*Comment) GetParentId

func (x *Comment) GetParentId() int64

func (*Comment) GetPostId

func (x *Comment) GetPostId() int64

func (*Comment) GetReplyCount

func (x *Comment) GetReplyCount() int32

func (*Comment) GetRootId

func (x *Comment) GetRootId() int64

func (*Comment) GetScore

func (x *Comment) GetScore() int64

func (*Comment) GetUpdatedAt

func (x *Comment) GetUpdatedAt() string

func (*Comment) GetUserId

func (x *Comment) GetUserId() int64

func (*Comment) ProtoMessage

func (*Comment) ProtoMessage()

func (*Comment) ProtoReflect

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

func (*Comment) Reset

func (x *Comment) Reset()

func (*Comment) String

func (x *Comment) String() string

type CommentServiceClient

type CommentServiceClient interface {
	CreateComment(ctx context.Context, in *CreateCommentRequest, opts ...grpc.CallOption) (*CreateCommentReply, error)
	UpdateComment(ctx context.Context, in *UpdateCommentRequest, opts ...grpc.CallOption) (*UpdateCommentReply, error)
	DeleteComment(ctx context.Context, in *DeleteCommentRequest, opts ...grpc.CallOption) (*DeleteCommentReply, error)
	ReplyComment(ctx context.Context, in *ReplyCommentRequest, opts ...grpc.CallOption) (*ReplyCommentReply, error)
	GetComment(ctx context.Context, in *GetCommentRequest, opts ...grpc.CallOption) (*GetCommentReply, error)
	BatchGetComment(ctx context.Context, in *BatchGetCommentRequest, opts ...grpc.CallOption) (*BatchGetCommentReply, error)
	// 热门评论列表
	ListHotComment(ctx context.Context, in *ListCommentRequest, opts ...grpc.CallOption) (*ListCommentReply, error)
	// 最新评论列表
	ListLatestComment(ctx context.Context, in *ListCommentRequest, opts ...grpc.CallOption) (*ListCommentReply, error)
	// 评论回复列表
	ListReplyComment(ctx context.Context, in *ListReplyCommentRequest, opts ...grpc.CallOption) (*ListReplyCommentReply, 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)
	UpdateComment(context.Context, *UpdateCommentRequest) (*UpdateCommentReply, error)
	DeleteComment(context.Context, *DeleteCommentRequest) (*DeleteCommentReply, error)
	ReplyComment(context.Context, *ReplyCommentRequest) (*ReplyCommentReply, error)
	GetComment(context.Context, *GetCommentRequest) (*GetCommentReply, error)
	BatchGetComment(context.Context, *BatchGetCommentRequest) (*BatchGetCommentReply, error)
	// 热门评论列表
	ListHotComment(context.Context, *ListCommentRequest) (*ListCommentReply, error)
	// 最新评论列表
	ListLatestComment(context.Context, *ListCommentRequest) (*ListCommentReply, error)
	// 评论回复列表
	ListReplyComment(context.Context, *ListReplyCommentRequest) (*ListReplyCommentReply, 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"` // image content
	Video  *Video       `protobuf:"bytes,3,opt,name=video,proto3" json:"video,omitempty"`   // video content
	// contains filtered or unexported fields
}

帖子内容结构

func (*Content) Descriptor deprecated

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

Deprecated: Use Content.ProtoReflect.Descriptor instead.

func (*Content) GetImages

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

func (*Content) GetText

func (x *Content) GetText() string

func (*Content) GetVideo

func (x *Content) GetVideo() *Video

func (*Content) ProtoMessage

func (*Content) ProtoMessage()

func (*Content) ProtoReflect

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

func (*Content) Reset

func (x *Content) Reset()

func (*Content) String

func (x *Content) String() string

type CreateCommentReply

type CreateCommentReply struct {
	Comment *Comment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCommentReply) Descriptor deprecated

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

Deprecated: Use CreateCommentReply.ProtoReflect.Descriptor instead.

func (*CreateCommentReply) GetComment

func (x *CreateCommentReply) GetComment() *Comment

func (*CreateCommentReply) ProtoMessage

func (*CreateCommentReply) ProtoMessage()

func (*CreateCommentReply) ProtoReflect

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

func (*CreateCommentReply) Reset

func (x *CreateCommentReply) Reset()

func (*CreateCommentReply) String

func (x *CreateCommentReply) String() string

type CreateCommentRequest

type CreateCommentRequest struct {
	PostId     int64  `protobuf:"varint,1,opt,name=post_id,json=postId,proto3" json:"post_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"`
	// contains filtered or unexported fields
}

func (*CreateCommentRequest) Descriptor deprecated

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

Deprecated: Use CreateCommentRequest.ProtoReflect.Descriptor instead.

func (*CreateCommentRequest) GetContent

func (x *CreateCommentRequest) GetContent() string

func (*CreateCommentRequest) GetDeviceType

func (x *CreateCommentRequest) GetDeviceType() string

func (*CreateCommentRequest) GetIp

func (x *CreateCommentRequest) GetIp() string

func (*CreateCommentRequest) GetParentId

func (x *CreateCommentRequest) GetParentId() int64

func (*CreateCommentRequest) GetPostId

func (x *CreateCommentRequest) GetPostId() int64

func (*CreateCommentRequest) GetRootId

func (x *CreateCommentRequest) GetRootId() int64

func (*CreateCommentRequest) GetUserId

func (x *CreateCommentRequest) GetUserId() int64

func (*CreateCommentRequest) ProtoMessage

func (*CreateCommentRequest) ProtoMessage()

func (*CreateCommentRequest) ProtoReflect

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

func (*CreateCommentRequest) Reset

func (x *CreateCommentRequest) Reset()

func (*CreateCommentRequest) String

func (x *CreateCommentRequest) String() string

type CreateLikeReply

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

func (*CreateLikeReply) Descriptor deprecated

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

Deprecated: Use CreateLikeReply.ProtoReflect.Descriptor instead.

func (*CreateLikeReply) ProtoMessage

func (*CreateLikeReply) ProtoMessage()

func (*CreateLikeReply) ProtoReflect

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

func (*CreateLikeReply) Reset

func (x *CreateLikeReply) Reset()

func (*CreateLikeReply) String

func (x *CreateLikeReply) String() string

type CreateLikeRequest

type CreateLikeRequest struct {
	UserId  int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ObjType int32 `protobuf:"varint,2,opt,name=obj_type,json=objType,proto3" json:"obj_type,omitempty"`
	ObjId   int64 `protobuf:"varint,3,opt,name=obj_id,json=objId,proto3" json:"obj_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateLikeRequest) Descriptor deprecated

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

Deprecated: Use CreateLikeRequest.ProtoReflect.Descriptor instead.

func (*CreateLikeRequest) GetObjId

func (x *CreateLikeRequest) GetObjId() int64

func (*CreateLikeRequest) GetObjType

func (x *CreateLikeRequest) GetObjType() int32

func (*CreateLikeRequest) GetUserId

func (x *CreateLikeRequest) GetUserId() int64

func (*CreateLikeRequest) ProtoMessage

func (*CreateLikeRequest) ProtoMessage()

func (*CreateLikeRequest) ProtoReflect

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

func (*CreateLikeRequest) Reset

func (x *CreateLikeRequest) Reset()

func (*CreateLikeRequest) String

func (x *CreateLikeRequest) String() string

type CreatePostReply

type CreatePostReply struct {
	Post *Post `protobuf:"bytes,1,opt,name=post,proto3" json:"post,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatePostReply) Descriptor deprecated

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

Deprecated: Use CreatePostReply.ProtoReflect.Descriptor instead.

func (*CreatePostReply) GetPost

func (x *CreatePostReply) GetPost() *Post

func (*CreatePostReply) ProtoMessage

func (*CreatePostReply) ProtoMessage()

func (*CreatePostReply) ProtoReflect

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

func (*CreatePostReply) Reset

func (x *CreatePostReply) Reset()

func (*CreatePostReply) String

func (x *CreatePostReply) String() string

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    []*PostImage `protobuf:"bytes,4,rep,name=images,proto3" json:"images,omitempty"`
	Video     *Video       `protobuf:"bytes,5,opt,name=video,proto3" json:"video,omitempty"`
	Position  string       `protobuf:"bytes,6,opt,name=position,proto3" json:"position,omitempty"`
	Longitude float32      `protobuf:"fixed32,7,opt,name=longitude,proto3" json:"longitude,omitempty"`
	Latitude  float32      `protobuf:"fixed32,8,opt,name=latitude,proto3" json:"latitude,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatePostRequest) Descriptor deprecated

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

Deprecated: Use CreatePostRequest.ProtoReflect.Descriptor instead.

func (*CreatePostRequest) GetImages

func (x *CreatePostRequest) GetImages() []*PostImage

func (*CreatePostRequest) GetLatitude

func (x *CreatePostRequest) GetLatitude() float32

func (*CreatePostRequest) GetLongitude

func (x *CreatePostRequest) GetLongitude() float32

func (*CreatePostRequest) GetPosition

func (x *CreatePostRequest) GetPosition() string

func (*CreatePostRequest) GetText

func (x *CreatePostRequest) GetText() string

func (*CreatePostRequest) GetTitle

func (x *CreatePostRequest) GetTitle() string

func (*CreatePostRequest) GetUserId

func (x *CreatePostRequest) GetUserId() int64

func (*CreatePostRequest) GetVideo

func (x *CreatePostRequest) GetVideo() *Video

func (*CreatePostRequest) ProtoMessage

func (*CreatePostRequest) ProtoMessage()

func (*CreatePostRequest) ProtoReflect

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

func (*CreatePostRequest) Reset

func (x *CreatePostRequest) Reset()

func (*CreatePostRequest) String

func (x *CreatePostRequest) String() string

type DeleteCommentReply

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

func (*DeleteCommentReply) Descriptor deprecated

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

Deprecated: Use DeleteCommentReply.ProtoReflect.Descriptor instead.

func (*DeleteCommentReply) ProtoMessage

func (*DeleteCommentReply) ProtoMessage()

func (*DeleteCommentReply) ProtoReflect

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

func (*DeleteCommentReply) Reset

func (x *DeleteCommentReply) Reset()

func (*DeleteCommentReply) String

func (x *DeleteCommentReply) String() string

type DeleteCommentRequest

type DeleteCommentRequest struct {
	Id      int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId  int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	DelFlag int32 `protobuf:"varint,3,opt,name=del_flag,json=delFlag,proto3" json:"del_flag,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteCommentRequest) Descriptor deprecated

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

Deprecated: Use DeleteCommentRequest.ProtoReflect.Descriptor instead.

func (*DeleteCommentRequest) GetDelFlag

func (x *DeleteCommentRequest) GetDelFlag() int32

func (*DeleteCommentRequest) GetId

func (x *DeleteCommentRequest) GetId() int64

func (*DeleteCommentRequest) GetUserId

func (x *DeleteCommentRequest) GetUserId() int64

func (*DeleteCommentRequest) ProtoMessage

func (*DeleteCommentRequest) ProtoMessage()

func (*DeleteCommentRequest) ProtoReflect

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

func (*DeleteCommentRequest) Reset

func (x *DeleteCommentRequest) Reset()

func (*DeleteCommentRequest) String

func (x *DeleteCommentRequest) String() string

type DeleteLikeReply

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

func (*DeleteLikeReply) Descriptor deprecated

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

Deprecated: Use DeleteLikeReply.ProtoReflect.Descriptor instead.

func (*DeleteLikeReply) ProtoMessage

func (*DeleteLikeReply) ProtoMessage()

func (*DeleteLikeReply) ProtoReflect

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

func (*DeleteLikeReply) Reset

func (x *DeleteLikeReply) Reset()

func (*DeleteLikeReply) String

func (x *DeleteLikeReply) String() string

type DeleteLikeRequest

type DeleteLikeRequest struct {
	UserId  int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ObjType int32 `protobuf:"varint,2,opt,name=obj_type,json=objType,proto3" json:"obj_type,omitempty"`
	ObjId   int64 `protobuf:"varint,3,opt,name=obj_id,json=objId,proto3" json:"obj_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteLikeRequest) Descriptor deprecated

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

Deprecated: Use DeleteLikeRequest.ProtoReflect.Descriptor instead.

func (*DeleteLikeRequest) GetObjId

func (x *DeleteLikeRequest) GetObjId() int64

func (*DeleteLikeRequest) GetObjType

func (x *DeleteLikeRequest) GetObjType() int32

func (*DeleteLikeRequest) GetUserId

func (x *DeleteLikeRequest) GetUserId() int64

func (*DeleteLikeRequest) ProtoMessage

func (*DeleteLikeRequest) ProtoMessage()

func (*DeleteLikeRequest) ProtoReflect

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

func (*DeleteLikeRequest) Reset

func (x *DeleteLikeRequest) Reset()

func (*DeleteLikeRequest) String

func (x *DeleteLikeRequest) String() string

type DeletePostReply

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

func (*DeletePostReply) Descriptor deprecated

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

Deprecated: Use DeletePostReply.ProtoReflect.Descriptor instead.

func (*DeletePostReply) ProtoMessage

func (*DeletePostReply) ProtoMessage()

func (*DeletePostReply) ProtoReflect

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

func (*DeletePostReply) Reset

func (x *DeletePostReply) Reset()

func (*DeletePostReply) String

func (x *DeletePostReply) String() string

type DeletePostRequest

type DeletePostRequest struct {
	Id      int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId  int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	DelFlag int32 `protobuf:"varint,3,opt,name=del_flag,json=delFlag,proto3" json:"del_flag,omitempty"`
	// contains filtered or unexported fields
}

func (*DeletePostRequest) Descriptor deprecated

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

Deprecated: Use DeletePostRequest.ProtoReflect.Descriptor instead.

func (*DeletePostRequest) GetDelFlag

func (x *DeletePostRequest) GetDelFlag() int32

func (*DeletePostRequest) GetId

func (x *DeletePostRequest) GetId() int64

func (*DeletePostRequest) GetUserId

func (x *DeletePostRequest) GetUserId() int64

func (*DeletePostRequest) ProtoMessage

func (*DeletePostRequest) ProtoMessage()

func (*DeletePostRequest) ProtoReflect

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

func (*DeletePostRequest) Reset

func (x *DeletePostRequest) Reset()

func (*DeletePostRequest) String

func (x *DeletePostRequest) String() string

type GetCommentReply

type GetCommentReply struct {
	Comment *Comment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCommentReply) Descriptor deprecated

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

Deprecated: Use GetCommentReply.ProtoReflect.Descriptor instead.

func (*GetCommentReply) GetComment

func (x *GetCommentReply) GetComment() *Comment

func (*GetCommentReply) ProtoMessage

func (*GetCommentReply) ProtoMessage()

func (*GetCommentReply) ProtoReflect

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

func (*GetCommentReply) Reset

func (x *GetCommentReply) Reset()

func (*GetCommentReply) String

func (x *GetCommentReply) String() string

type GetCommentRequest

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

func (*GetCommentRequest) Descriptor deprecated

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

Deprecated: Use GetCommentRequest.ProtoReflect.Descriptor instead.

func (*GetCommentRequest) GetId

func (x *GetCommentRequest) GetId() int64

func (*GetCommentRequest) ProtoMessage

func (*GetCommentRequest) ProtoMessage()

func (*GetCommentRequest) ProtoReflect

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

func (*GetCommentRequest) Reset

func (x *GetCommentRequest) Reset()

func (*GetCommentRequest) String

func (x *GetCommentRequest) String() string

type GetLikeReply

type GetLikeReply struct {
	Like *Like `protobuf:"bytes,1,opt,name=like,proto3" json:"like,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLikeReply) Descriptor deprecated

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

Deprecated: Use GetLikeReply.ProtoReflect.Descriptor instead.

func (*GetLikeReply) GetLike

func (x *GetLikeReply) GetLike() *Like

func (*GetLikeReply) ProtoMessage

func (*GetLikeReply) ProtoMessage()

func (*GetLikeReply) ProtoReflect

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

func (*GetLikeReply) Reset

func (x *GetLikeReply) Reset()

func (*GetLikeReply) String

func (x *GetLikeReply) String() string

type GetLikeRequest

type GetLikeRequest struct {
	UserId  int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ObjType int32 `protobuf:"varint,2,opt,name=obj_type,json=objType,proto3" json:"obj_type,omitempty"`
	ObjId   int64 `protobuf:"varint,3,opt,name=obj_id,json=objId,proto3" json:"obj_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLikeRequest) Descriptor deprecated

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

Deprecated: Use GetLikeRequest.ProtoReflect.Descriptor instead.

func (*GetLikeRequest) GetObjId

func (x *GetLikeRequest) GetObjId() int64

func (*GetLikeRequest) GetObjType

func (x *GetLikeRequest) GetObjType() int32

func (*GetLikeRequest) GetUserId

func (x *GetLikeRequest) GetUserId() int64

func (*GetLikeRequest) ProtoMessage

func (*GetLikeRequest) ProtoMessage()

func (*GetLikeRequest) ProtoReflect

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

func (*GetLikeRequest) Reset

func (x *GetLikeRequest) Reset()

func (*GetLikeRequest) String

func (x *GetLikeRequest) String() string

type GetPostReply

type GetPostReply struct {
	Post *Post `protobuf:"bytes,1,opt,name=post,proto3" json:"post,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPostReply) Descriptor deprecated

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

Deprecated: Use GetPostReply.ProtoReflect.Descriptor instead.

func (*GetPostReply) GetPost

func (x *GetPostReply) GetPost() *Post

func (*GetPostReply) ProtoMessage

func (*GetPostReply) ProtoMessage()

func (*GetPostReply) ProtoReflect

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

func (*GetPostReply) Reset

func (x *GetPostReply) Reset()

func (*GetPostReply) String

func (x *GetPostReply) String() string

type GetPostRequest

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

func (*GetPostRequest) Descriptor deprecated

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

Deprecated: Use GetPostRequest.ProtoReflect.Descriptor instead.

func (*GetPostRequest) GetId

func (x *GetPostRequest) GetId() int64

func (*GetPostRequest) ProtoMessage

func (*GetPostRequest) ProtoMessage()

func (*GetPostRequest) ProtoReflect

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

func (*GetPostRequest) Reset

func (x *GetPostRequest) Reset()

func (*GetPostRequest) String

func (x *GetPostRequest) String() string

type Like

type Like struct {
	Id        int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId    int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ObjType   int32 `protobuf:"varint,3,opt,name=obj_type,json=objType,proto3" json:"obj_type,omitempty"`
	ObjId     int64 `protobuf:"varint,4,opt,name=obj_id,json=objId,proto3" json:"obj_id,omitempty"`
	Status    int32 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"`
	CreatedAt int64 `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt int64 `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Like) Descriptor deprecated

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

Deprecated: Use Like.ProtoReflect.Descriptor instead.

func (*Like) GetCreatedAt

func (x *Like) GetCreatedAt() int64

func (*Like) GetId

func (x *Like) GetId() int64

func (*Like) GetObjId

func (x *Like) GetObjId() int64

func (*Like) GetObjType

func (x *Like) GetObjType() int32

func (*Like) GetStatus

func (x *Like) GetStatus() int32

func (*Like) GetUpdatedAt

func (x *Like) GetUpdatedAt() int64

func (*Like) GetUserId

func (x *Like) GetUserId() int64

func (*Like) ProtoMessage

func (*Like) ProtoMessage()

func (*Like) ProtoReflect

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

func (*Like) Reset

func (x *Like) Reset()

func (*Like) String

func (x *Like) String() string

type LikeServiceClient

type LikeServiceClient interface {
	CreateLike(ctx context.Context, in *CreateLikeRequest, opts ...grpc.CallOption) (*CreateLikeReply, error)
	UpdateLike(ctx context.Context, in *UpdateLikeRequest, opts ...grpc.CallOption) (*UpdateLikeReply, error)
	DeleteLike(ctx context.Context, in *DeleteLikeRequest, opts ...grpc.CallOption) (*DeleteLikeReply, error)
	GetLike(ctx context.Context, in *GetLikeRequest, opts ...grpc.CallOption) (*GetLikeReply, error)
	BatchGetLike(ctx context.Context, in *BatchGetLikeRequest, opts ...grpc.CallOption) (*BatchGetLikeReply, error)
	ListPostLike(ctx context.Context, in *ListPostLikeRequest, opts ...grpc.CallOption) (*ListLikeReply, error)
	ListCommentLike(ctx context.Context, in *ListCommentLikeRequest, opts ...grpc.CallOption) (*ListLikeReply, 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 {
	CreateLike(context.Context, *CreateLikeRequest) (*CreateLikeReply, error)
	UpdateLike(context.Context, *UpdateLikeRequest) (*UpdateLikeReply, error)
	DeleteLike(context.Context, *DeleteLikeRequest) (*DeleteLikeReply, error)
	GetLike(context.Context, *GetLikeRequest) (*GetLikeReply, error)
	BatchGetLike(context.Context, *BatchGetLikeRequest) (*BatchGetLikeReply, error)
	ListPostLike(context.Context, *ListPostLikeRequest) (*ListLikeReply, error)
	ListCommentLike(context.Context, *ListCommentLikeRequest) (*ListLikeReply, error)
	// contains filtered or unexported methods
}

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

type ListCommentLikeRequest

type ListCommentLikeRequest 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"`
	LastId    int64 `protobuf:"varint,3,opt,name=last_id,json=lastId,proto3" json:"last_id,omitempty"`
	Limit     int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCommentLikeRequest) Descriptor deprecated

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

Deprecated: Use ListCommentLikeRequest.ProtoReflect.Descriptor instead.

func (*ListCommentLikeRequest) GetCommentId

func (x *ListCommentLikeRequest) GetCommentId() int64

func (*ListCommentLikeRequest) GetLastId

func (x *ListCommentLikeRequest) GetLastId() int64

func (*ListCommentLikeRequest) GetLimit

func (x *ListCommentLikeRequest) GetLimit() int32

func (*ListCommentLikeRequest) GetUserId

func (x *ListCommentLikeRequest) GetUserId() int64

func (*ListCommentLikeRequest) ProtoMessage

func (*ListCommentLikeRequest) ProtoMessage()

func (*ListCommentLikeRequest) ProtoReflect

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

func (*ListCommentLikeRequest) Reset

func (x *ListCommentLikeRequest) Reset()

func (*ListCommentLikeRequest) String

func (x *ListCommentLikeRequest) String() string

type ListCommentReply

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

func (*ListCommentReply) Descriptor deprecated

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

Deprecated: Use ListCommentReply.ProtoReflect.Descriptor instead.

func (*ListCommentReply) GetCount

func (x *ListCommentReply) GetCount() int64

func (*ListCommentReply) GetHasMore

func (x *ListCommentReply) GetHasMore() bool

func (*ListCommentReply) GetItems

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

func (*ListCommentReply) GetLastId

func (x *ListCommentReply) GetLastId() int64

func (*ListCommentReply) ProtoMessage

func (*ListCommentReply) ProtoMessage()

func (*ListCommentReply) ProtoReflect

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

func (*ListCommentReply) Reset

func (x *ListCommentReply) Reset()

func (*ListCommentReply) String

func (x *ListCommentReply) String() string

type ListCommentRequest

type ListCommentRequest struct {
	PostId int64 `protobuf:"varint,1,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"`
	LastId int64 `protobuf:"varint,2,opt,name=last_id,json=lastId,proto3" json:"last_id,omitempty"`
	Limit  int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCommentRequest) Descriptor deprecated

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

Deprecated: Use ListCommentRequest.ProtoReflect.Descriptor instead.

func (*ListCommentRequest) GetLastId

func (x *ListCommentRequest) GetLastId() int64

func (*ListCommentRequest) GetLimit

func (x *ListCommentRequest) GetLimit() int32

func (*ListCommentRequest) GetPostId

func (x *ListCommentRequest) GetPostId() int64

func (*ListCommentRequest) ProtoMessage

func (*ListCommentRequest) ProtoMessage()

func (*ListCommentRequest) ProtoReflect

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

func (*ListCommentRequest) Reset

func (x *ListCommentRequest) Reset()

func (*ListCommentRequest) String

func (x *ListCommentRequest) String() string

type ListHotPostReply

type ListHotPostReply struct {
	Posts         []*Post `protobuf:"bytes,1,rep,name=posts,proto3" json:"posts,omitempty"`
	NextPageToken string  `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListHotPostReply) Descriptor deprecated

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

Deprecated: Use ListHotPostReply.ProtoReflect.Descriptor instead.

func (*ListHotPostReply) GetNextPageToken

func (x *ListHotPostReply) GetNextPageToken() string

func (*ListHotPostReply) GetPosts

func (x *ListHotPostReply) GetPosts() []*Post

func (*ListHotPostReply) ProtoMessage

func (*ListHotPostReply) ProtoMessage()

func (*ListHotPostReply) ProtoReflect

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

func (*ListHotPostReply) Reset

func (x *ListHotPostReply) Reset()

func (*ListHotPostReply) String

func (x *ListHotPostReply) String() string

type ListHotPostRequest

type ListHotPostRequest struct {
	PageSize  int32  `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListHotPostRequest) Descriptor deprecated

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

Deprecated: Use ListHotPostRequest.ProtoReflect.Descriptor instead.

func (*ListHotPostRequest) GetPageSize

func (x *ListHotPostRequest) GetPageSize() int32

func (*ListHotPostRequest) GetPageToken

func (x *ListHotPostRequest) GetPageToken() string

func (*ListHotPostRequest) ProtoMessage

func (*ListHotPostRequest) ProtoMessage()

func (*ListHotPostRequest) ProtoReflect

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

func (*ListHotPostRequest) Reset

func (x *ListHotPostRequest) Reset()

func (*ListHotPostRequest) String

func (x *ListHotPostRequest) String() string

type ListLatestPostReply

type ListLatestPostReply struct {
	Posts         []*Post `protobuf:"bytes,1,rep,name=posts,proto3" json:"posts,omitempty"`
	NextPageToken string  `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListLatestPostReply) Descriptor deprecated

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

Deprecated: Use ListLatestPostReply.ProtoReflect.Descriptor instead.

func (*ListLatestPostReply) GetNextPageToken

func (x *ListLatestPostReply) GetNextPageToken() string

func (*ListLatestPostReply) GetPosts

func (x *ListLatestPostReply) GetPosts() []*Post

func (*ListLatestPostReply) ProtoMessage

func (*ListLatestPostReply) ProtoMessage()

func (*ListLatestPostReply) ProtoReflect

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

func (*ListLatestPostReply) Reset

func (x *ListLatestPostReply) Reset()

func (*ListLatestPostReply) String

func (x *ListLatestPostReply) String() string

type ListLatestPostRequest

type ListLatestPostRequest struct {
	PageSize  int32  `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListLatestPostRequest) Descriptor deprecated

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

Deprecated: Use ListLatestPostRequest.ProtoReflect.Descriptor instead.

func (*ListLatestPostRequest) GetPageSize

func (x *ListLatestPostRequest) GetPageSize() int32

func (*ListLatestPostRequest) GetPageToken

func (x *ListLatestPostRequest) GetPageToken() string

func (*ListLatestPostRequest) ProtoMessage

func (*ListLatestPostRequest) ProtoMessage()

func (*ListLatestPostRequest) ProtoReflect

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

func (*ListLatestPostRequest) Reset

func (x *ListLatestPostRequest) Reset()

func (*ListLatestPostRequest) String

func (x *ListLatestPostRequest) String() string

type ListLikeReply

type ListLikeReply struct {
	Items   []*Like `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	Count   int64   `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	HasMore bool    `protobuf:"varint,3,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"`
	LastId  int64   `protobuf:"varint,4,opt,name=last_id,json=lastId,proto3" json:"last_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListLikeReply) Descriptor deprecated

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

Deprecated: Use ListLikeReply.ProtoReflect.Descriptor instead.

func (*ListLikeReply) GetCount

func (x *ListLikeReply) GetCount() int64

func (*ListLikeReply) GetHasMore

func (x *ListLikeReply) GetHasMore() bool

func (*ListLikeReply) GetItems

func (x *ListLikeReply) GetItems() []*Like

func (*ListLikeReply) GetLastId

func (x *ListLikeReply) GetLastId() int64

func (*ListLikeReply) ProtoMessage

func (*ListLikeReply) ProtoMessage()

func (*ListLikeReply) ProtoReflect

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

func (*ListLikeReply) Reset

func (x *ListLikeReply) Reset()

func (*ListLikeReply) String

func (x *ListLikeReply) String() string

type ListMyPostReply

type ListMyPostReply struct {
	Posts         []*Post `protobuf:"bytes,1,rep,name=posts,proto3" json:"posts,omitempty"`
	NextPageToken string  `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMyPostReply) Descriptor deprecated

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

Deprecated: Use ListMyPostReply.ProtoReflect.Descriptor instead.

func (*ListMyPostReply) GetNextPageToken

func (x *ListMyPostReply) GetNextPageToken() string

func (*ListMyPostReply) GetPosts

func (x *ListMyPostReply) GetPosts() []*Post

func (*ListMyPostReply) ProtoMessage

func (*ListMyPostReply) ProtoMessage()

func (*ListMyPostReply) ProtoReflect

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

func (*ListMyPostReply) Reset

func (x *ListMyPostReply) Reset()

func (*ListMyPostReply) String

func (x *ListMyPostReply) String() string

type ListMyPostRequest

type ListMyPostRequest struct {
	UserId    int64  `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	PageSize  int32  `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMyPostRequest) Descriptor deprecated

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

Deprecated: Use ListMyPostRequest.ProtoReflect.Descriptor instead.

func (*ListMyPostRequest) GetPageSize

func (x *ListMyPostRequest) GetPageSize() int32

func (*ListMyPostRequest) GetPageToken

func (x *ListMyPostRequest) GetPageToken() string

func (*ListMyPostRequest) GetUserId

func (x *ListMyPostRequest) GetUserId() int64

func (*ListMyPostRequest) ProtoMessage

func (*ListMyPostRequest) ProtoMessage()

func (*ListMyPostRequest) ProtoReflect

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

func (*ListMyPostRequest) Reset

func (x *ListMyPostRequest) Reset()

func (*ListMyPostRequest) String

func (x *ListMyPostRequest) String() string

type ListPostLikeRequest

type ListPostLikeRequest 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"`
	LastId int64 `protobuf:"varint,3,opt,name=last_id,json=lastId,proto3" json:"last_id,omitempty"`
	Limit  int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPostLikeRequest) Descriptor deprecated

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

Deprecated: Use ListPostLikeRequest.ProtoReflect.Descriptor instead.

func (*ListPostLikeRequest) GetLastId

func (x *ListPostLikeRequest) GetLastId() int64

func (*ListPostLikeRequest) GetLimit

func (x *ListPostLikeRequest) GetLimit() int32

func (*ListPostLikeRequest) GetPostId

func (x *ListPostLikeRequest) GetPostId() int64

func (*ListPostLikeRequest) GetUserId

func (x *ListPostLikeRequest) GetUserId() int64

func (*ListPostLikeRequest) ProtoMessage

func (*ListPostLikeRequest) ProtoMessage()

func (*ListPostLikeRequest) ProtoReflect

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

func (*ListPostLikeRequest) Reset

func (x *ListPostLikeRequest) Reset()

func (*ListPostLikeRequest) String

func (x *ListPostLikeRequest) String() string

type ListReplyCommentReply

type ListReplyCommentReply struct {
	Items   []*Comment `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	Count   int64      `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	HasMore bool       `protobuf:"varint,3,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"`
	LastId  int64      `protobuf:"varint,4,opt,name=last_id,json=lastId,proto3" json:"last_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListReplyCommentReply) Descriptor deprecated

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

Deprecated: Use ListReplyCommentReply.ProtoReflect.Descriptor instead.

func (*ListReplyCommentReply) GetCount

func (x *ListReplyCommentReply) GetCount() int64

func (*ListReplyCommentReply) GetHasMore

func (x *ListReplyCommentReply) GetHasMore() bool

func (*ListReplyCommentReply) GetItems

func (x *ListReplyCommentReply) GetItems() []*Comment

func (*ListReplyCommentReply) GetLastId

func (x *ListReplyCommentReply) GetLastId() int64

func (*ListReplyCommentReply) ProtoMessage

func (*ListReplyCommentReply) ProtoMessage()

func (*ListReplyCommentReply) ProtoReflect

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

func (*ListReplyCommentReply) Reset

func (x *ListReplyCommentReply) Reset()

func (*ListReplyCommentReply) String

func (x *ListReplyCommentReply) String() string

type ListReplyCommentRequest

type ListReplyCommentRequest struct {
	CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"`
	LastId    int64 `protobuf:"varint,2,opt,name=last_id,json=lastId,proto3" json:"last_id,omitempty"`
	Limit     int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*ListReplyCommentRequest) Descriptor deprecated

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

Deprecated: Use ListReplyCommentRequest.ProtoReflect.Descriptor instead.

func (*ListReplyCommentRequest) GetCommentId

func (x *ListReplyCommentRequest) GetCommentId() int64

func (*ListReplyCommentRequest) GetLastId

func (x *ListReplyCommentRequest) GetLastId() int64

func (*ListReplyCommentRequest) GetLimit

func (x *ListReplyCommentRequest) GetLimit() int32

func (*ListReplyCommentRequest) ProtoMessage

func (*ListReplyCommentRequest) ProtoMessage()

func (*ListReplyCommentRequest) ProtoReflect

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

func (*ListReplyCommentRequest) Reset

func (x *ListReplyCommentRequest) Reset()

func (*ListReplyCommentRequest) String

func (x *ListReplyCommentRequest) String() string

type Post

type Post struct {
	Id           int64         `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	PostType     int32         `protobuf:"varint,2,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`             // post type
	UserId       int64         `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`                   // user id
	Title        string        `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`                                    // post title
	Content      *Content      `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`                                // post content, json format
	ViewCount    int64         `protobuf:"varint,6,opt,name=view_count,json=viewCount,proto3" json:"view_count,omitempty"`          // view count
	LikeCount    int64         `protobuf:"varint,7,opt,name=like_count,json=likeCount,proto3" json:"like_count,omitempty"`          // like count
	CommentCount int64         `protobuf:"varint,8,opt,name=comment_count,json=commentCount,proto3" json:"comment_count,omitempty"` // comment count
	CollectCount int64         `protobuf:"varint,9,opt,name=collect_count,json=collectCount,proto3" json:"collect_count,omitempty"` // collect count
	ShareCount   int64         `protobuf:"varint,10,opt,name=share_count,json=shareCount,proto3" json:"share_count,omitempty"`
	DelFlag      Post_DEL_FLAG `protobuf:"varint,11,opt,name=del_flag,json=delFlag,proto3,enum=api.moment.v1.Post_DEL_FLAG" json:"del_flag,omitempty"`
	Visible      Post_VISIBLE  `protobuf:"varint,12,opt,name=visible,proto3,enum=api.moment.v1.Post_VISIBLE" json:"visible,omitempty"`
	Longitude    float32       `protobuf:"fixed32,13,opt,name=longitude,proto3" json:"longitude,omitempty"`
	Latitude     float32       `protobuf:"fixed32,14,opt,name=latitude,proto3" json:"latitude,omitempty"`
	Position     string        `protobuf:"bytes,15,opt,name=position,proto3" json:"position,omitempty"`
	CreatedAt    int64         `protobuf:"varint,16,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt    int64         `protobuf:"varint,17,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	DeletedAt    int64         `protobuf:"varint,18,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Post) Descriptor deprecated

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

Deprecated: Use Post.ProtoReflect.Descriptor instead.

func (*Post) GetCollectCount

func (x *Post) GetCollectCount() int64

func (*Post) GetCommentCount

func (x *Post) GetCommentCount() int64

func (*Post) GetContent

func (x *Post) GetContent() *Content

func (*Post) GetCreatedAt

func (x *Post) GetCreatedAt() int64

func (*Post) GetDelFlag

func (x *Post) GetDelFlag() Post_DEL_FLAG

func (*Post) GetDeletedAt

func (x *Post) GetDeletedAt() int64

func (*Post) GetId

func (x *Post) GetId() int64

func (*Post) GetLatitude

func (x *Post) GetLatitude() float32

func (*Post) GetLikeCount

func (x *Post) GetLikeCount() int64

func (*Post) GetLongitude

func (x *Post) GetLongitude() float32

func (*Post) GetPosition

func (x *Post) GetPosition() string

func (*Post) GetPostType

func (x *Post) GetPostType() int32

func (*Post) GetShareCount

func (x *Post) GetShareCount() int64

func (*Post) GetTitle

func (x *Post) GetTitle() string

func (*Post) GetUpdatedAt

func (x *Post) GetUpdatedAt() int64

func (*Post) GetUserId

func (x *Post) GetUserId() int64

func (*Post) GetViewCount

func (x *Post) GetViewCount() int64

func (*Post) GetVisible

func (x *Post) GetVisible() Post_VISIBLE

func (*Post) ProtoMessage

func (*Post) ProtoMessage()

func (*Post) ProtoReflect

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

func (*Post) Reset

func (x *Post) Reset()

func (*Post) String

func (x *Post) String() string

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"`
	// contains filtered or unexported fields
}

图片内容

func (*PostImage) Descriptor deprecated

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

Deprecated: Use PostImage.ProtoReflect.Descriptor instead.

func (*PostImage) GetHeight

func (x *PostImage) GetHeight() int32

func (*PostImage) GetImageKey

func (x *PostImage) GetImageKey() string

func (*PostImage) GetImageType

func (x *PostImage) GetImageType() string

func (*PostImage) GetImageUrl

func (x *PostImage) GetImageUrl() string

func (*PostImage) GetWidth

func (x *PostImage) GetWidth() int32

func (*PostImage) ProtoMessage

func (*PostImage) ProtoMessage()

func (*PostImage) ProtoReflect

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

func (*PostImage) Reset

func (x *PostImage) Reset()

func (*PostImage) String

func (x *PostImage) String() string

type PostService

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

func (*PostService) BatchGetPost_0

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

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) ListMyPost_0

func (s *PostService) ListMyPost_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)
	// 根据id获取指定帖子
	GetPost(ctx context.Context, in *GetPostRequest, opts ...grpc.CallOption) (*GetPostReply, error)
	// 批量获取帖子
	BatchGetPost(ctx context.Context, in *BatchGetPostRequest, opts ...grpc.CallOption) (*BatchGetPostReply, error)
	// 我发布过的帖子列表
	ListMyPost(ctx context.Context, in *ListMyPostRequest, opts ...grpc.CallOption) (*ListMyPostReply, error)
	// 最新的帖子列表
	ListLatestPost(ctx context.Context, in *ListLatestPostRequest, opts ...grpc.CallOption) (*ListLatestPostReply, error)
	// 热门的帖子列表
	ListHotPost(ctx context.Context, in *ListHotPostRequest, opts ...grpc.CallOption) (*ListHotPostReply, 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)
	// 根据id获取指定帖子
	GetPost(context.Context, *GetPostRequest) (*GetPostReply, error)
	// 批量获取帖子
	BatchGetPost(context.Context, *BatchGetPostRequest) (*BatchGetPostReply, error)
	// 我发布过的帖子列表
	ListMyPost(context.Context, *ListMyPostRequest) (*ListMyPostReply, error)
	// 最新的帖子列表
	ListLatestPost(context.Context, *ListLatestPostRequest) (*ListLatestPostReply, error)
	// 热门的帖子列表
	ListHotPost(context.Context, *ListHotPostRequest) (*ListHotPostReply, error)
	// contains filtered or unexported methods
}

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

type Post_DEL_FLAG

type Post_DEL_FLAG int32
const (
	Post_DEL_FLAG_UNSPECIFIED Post_DEL_FLAG = 0
	Post_DEL_FLAG_NORMAL      Post_DEL_FLAG = 1 // normal status
	Post_DEL_FLAG_USER        Post_DEL_FLAG = 2 // user self delete
	Post_DEL_FLAG_ADMIN       Post_DEL_FLAG = 3 // admin delete
)

func (Post_DEL_FLAG) Descriptor

func (Post_DEL_FLAG) Enum

func (x Post_DEL_FLAG) Enum() *Post_DEL_FLAG

func (Post_DEL_FLAG) EnumDescriptor deprecated

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

Deprecated: Use Post_DEL_FLAG.Descriptor instead.

func (Post_DEL_FLAG) Number

func (Post_DEL_FLAG) String

func (x Post_DEL_FLAG) String() string

func (Post_DEL_FLAG) Type

type Post_VISIBLE

type Post_VISIBLE int32
const (
	Post_VISIBLE_UNSPECIFIED Post_VISIBLE = 0
	Post_VISIBLE_ALL         Post_VISIBLE = 1 // everyone can see
	Post_VISIBLE_SELF        Post_VISIBLE = 2 // only self see
)

func (Post_VISIBLE) Descriptor

func (Post_VISIBLE) Enum

func (x Post_VISIBLE) Enum() *Post_VISIBLE

func (Post_VISIBLE) EnumDescriptor deprecated

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

Deprecated: Use Post_VISIBLE.Descriptor instead.

func (Post_VISIBLE) Number

func (Post_VISIBLE) String

func (x Post_VISIBLE) String() string

func (Post_VISIBLE) Type

type ReplyCommentReply

type ReplyCommentReply struct {
	Comment *Comment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplyCommentReply) Descriptor deprecated

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

Deprecated: Use ReplyCommentReply.ProtoReflect.Descriptor instead.

func (*ReplyCommentReply) GetComment

func (x *ReplyCommentReply) GetComment() *Comment

func (*ReplyCommentReply) ProtoMessage

func (*ReplyCommentReply) ProtoMessage()

func (*ReplyCommentReply) ProtoReflect

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

func (*ReplyCommentReply) Reset

func (x *ReplyCommentReply) Reset()

func (*ReplyCommentReply) String

func (x *ReplyCommentReply) String() string

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"`
	// contains filtered or unexported fields
}

func (*ReplyCommentRequest) Descriptor deprecated

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

Deprecated: Use ReplyCommentRequest.ProtoReflect.Descriptor instead.

func (*ReplyCommentRequest) GetCommentId

func (x *ReplyCommentRequest) GetCommentId() int64

func (*ReplyCommentRequest) GetContent

func (x *ReplyCommentRequest) GetContent() string

func (*ReplyCommentRequest) GetDeviceType

func (x *ReplyCommentRequest) GetDeviceType() string

func (*ReplyCommentRequest) GetIp

func (x *ReplyCommentRequest) GetIp() string

func (*ReplyCommentRequest) GetParentId

func (x *ReplyCommentRequest) GetParentId() int64

func (*ReplyCommentRequest) GetRootId

func (x *ReplyCommentRequest) GetRootId() int64

func (*ReplyCommentRequest) GetUserId

func (x *ReplyCommentRequest) GetUserId() int64

func (*ReplyCommentRequest) ProtoMessage

func (*ReplyCommentRequest) ProtoMessage()

func (*ReplyCommentRequest) ProtoReflect

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

func (*ReplyCommentRequest) Reset

func (x *ReplyCommentRequest) Reset()

func (*ReplyCommentRequest) String

func (x *ReplyCommentRequest) String() string

type UnimplementedCommentServiceServer

type UnimplementedCommentServiceServer struct {
}

UnimplementedCommentServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCommentServiceServer) BatchGetComment

func (UnimplementedCommentServiceServer) CreateComment

func (UnimplementedCommentServiceServer) DeleteComment

func (UnimplementedCommentServiceServer) GetComment

func (UnimplementedCommentServiceServer) ListHotComment

func (UnimplementedCommentServiceServer) ListLatestComment

func (UnimplementedCommentServiceServer) ListReplyComment

func (UnimplementedCommentServiceServer) ReplyComment

func (UnimplementedCommentServiceServer) UpdateComment

type UnimplementedLikeServiceServer

type UnimplementedLikeServiceServer struct {
}

UnimplementedLikeServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedLikeServiceServer) BatchGetLike

func (UnimplementedLikeServiceServer) CreateLike

func (UnimplementedLikeServiceServer) DeleteLike

func (UnimplementedLikeServiceServer) GetLike

func (UnimplementedLikeServiceServer) ListCommentLike

func (UnimplementedLikeServiceServer) ListPostLike

func (UnimplementedLikeServiceServer) UpdateLike

type UnimplementedPostServiceServer

type UnimplementedPostServiceServer struct {
}

UnimplementedPostServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPostServiceServer) BatchGetPost

func (UnimplementedPostServiceServer) CreatePost

func (UnimplementedPostServiceServer) DeletePost

func (UnimplementedPostServiceServer) GetPost

func (UnimplementedPostServiceServer) ListHotPost

func (UnimplementedPostServiceServer) ListLatestPost

func (UnimplementedPostServiceServer) ListMyPost

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 {
	// contains filtered or unexported fields
}

func (*UpdateCommentReply) Descriptor deprecated

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

Deprecated: Use UpdateCommentReply.ProtoReflect.Descriptor instead.

func (*UpdateCommentReply) ProtoMessage

func (*UpdateCommentReply) ProtoMessage()

func (*UpdateCommentReply) ProtoReflect

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

func (*UpdateCommentReply) Reset

func (x *UpdateCommentReply) Reset()

func (*UpdateCommentReply) String

func (x *UpdateCommentReply) String() string

type UpdateCommentRequest

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

func (*UpdateCommentRequest) Descriptor deprecated

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

Deprecated: Use UpdateCommentRequest.ProtoReflect.Descriptor instead.

func (*UpdateCommentRequest) ProtoMessage

func (*UpdateCommentRequest) ProtoMessage()

func (*UpdateCommentRequest) ProtoReflect

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

func (*UpdateCommentRequest) Reset

func (x *UpdateCommentRequest) Reset()

func (*UpdateCommentRequest) String

func (x *UpdateCommentRequest) String() string

type UpdateLikeReply

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

func (*UpdateLikeReply) Descriptor deprecated

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

Deprecated: Use UpdateLikeReply.ProtoReflect.Descriptor instead.

func (*UpdateLikeReply) ProtoMessage

func (*UpdateLikeReply) ProtoMessage()

func (*UpdateLikeReply) ProtoReflect

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

func (*UpdateLikeReply) Reset

func (x *UpdateLikeReply) Reset()

func (*UpdateLikeReply) String

func (x *UpdateLikeReply) String() string

type UpdateLikeRequest

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

func (*UpdateLikeRequest) Descriptor deprecated

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

Deprecated: Use UpdateLikeRequest.ProtoReflect.Descriptor instead.

func (*UpdateLikeRequest) ProtoMessage

func (*UpdateLikeRequest) ProtoMessage()

func (*UpdateLikeRequest) ProtoReflect

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

func (*UpdateLikeRequest) Reset

func (x *UpdateLikeRequest) Reset()

func (*UpdateLikeRequest) String

func (x *UpdateLikeRequest) String() string

type UpdatePostReply

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

func (*UpdatePostReply) Descriptor deprecated

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

Deprecated: Use UpdatePostReply.ProtoReflect.Descriptor instead.

func (*UpdatePostReply) ProtoMessage

func (*UpdatePostReply) ProtoMessage()

func (*UpdatePostReply) ProtoReflect

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

func (*UpdatePostReply) Reset

func (x *UpdatePostReply) Reset()

func (*UpdatePostReply) String

func (x *UpdatePostReply) String() string

type UpdatePostRequest

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

func (*UpdatePostRequest) Descriptor deprecated

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

Deprecated: Use UpdatePostRequest.ProtoReflect.Descriptor instead.

func (*UpdatePostRequest) ProtoMessage

func (*UpdatePostRequest) ProtoMessage()

func (*UpdatePostRequest) ProtoReflect

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

func (*UpdatePostRequest) Reset

func (x *UpdatePostRequest) Reset()

func (*UpdatePostRequest) String

func (x *UpdatePostRequest) String() string

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"`
	// contains filtered or unexported fields
}

视频内容

func (*Video) Descriptor deprecated

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

Deprecated: Use Video.ProtoReflect.Descriptor instead.

func (*Video) GetCoverKey

func (x *Video) GetCoverKey() string

func (*Video) GetCoverUrl

func (x *Video) GetCoverUrl() string

func (*Video) GetDuration

func (x *Video) GetDuration() float32

func (*Video) GetHeight

func (x *Video) GetHeight() int32

func (*Video) GetVideoKey

func (x *Video) GetVideoKey() string

func (*Video) GetVideoUrl

func (x *Video) GetVideoUrl() string

func (*Video) GetWidth

func (x *Video) GetWidth() int32

func (*Video) ProtoMessage

func (*Video) ProtoMessage()

func (*Video) ProtoReflect

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

func (*Video) Reset

func (x *Video) Reset()

func (*Video) String

func (x *Video) String() string

Jump to

Keyboard shortcuts

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