refactor: reorganize modules and add Linux build tooling
This commit is contained in:
317
module/social/feed/pb/post.pb.go
Normal file
317
module/social/feed/pb/post.pb.go
Normal file
@@ -0,0 +1,317 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc (unknown)
|
||||
// source: post.proto
|
||||
|
||||
package feed
|
||||
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
// 推文评论列表
|
||||
type CommentListReply struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
List []*CommentItem `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // 评论列表
|
||||
Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *CommentListReply) Reset() {
|
||||
*x = CommentListReply{}
|
||||
mi := &file_post_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *CommentListReply) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CommentListReply) ProtoMessage() {}
|
||||
|
||||
func (x *CommentListReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_post_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use CommentListReply.ProtoReflect.Descriptor instead.
|
||||
func (*CommentListReply) Descriptor() ([]byte, []int) {
|
||||
return file_post_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *CommentListReply) GetList() []*CommentItem {
|
||||
if x != nil {
|
||||
return x.List
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *CommentListReply) GetTotal() int64 {
|
||||
if x != nil {
|
||||
return x.Total
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type CommentItem struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // 评论identity
|
||||
PostIdentity string `protobuf:"bytes,2,opt,name=post_identity,json=postIdentity,proto3" json:"post_identity,omitempty"` // 被评论唯一标识
|
||||
FeedIdentity string `protobuf:"bytes,3,opt,name=feed_identity,json=feedIdentity,proto3" json:"feed_identity,omitempty"` // 评论人唯一标识
|
||||
Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` // 评论内容
|
||||
SubComment []*CommentItem `protobuf:"bytes,5,rep,name=sub_comment,json=subComment,proto3" json:"sub_comment,omitempty"` // 子评论
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *CommentItem) Reset() {
|
||||
*x = CommentItem{}
|
||||
mi := &file_post_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *CommentItem) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CommentItem) ProtoMessage() {}
|
||||
|
||||
func (x *CommentItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_post_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use CommentItem.ProtoReflect.Descriptor instead.
|
||||
func (*CommentItem) Descriptor() ([]byte, []int) {
|
||||
return file_post_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *CommentItem) GetIdentity() string {
|
||||
if x != nil {
|
||||
return x.Identity
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CommentItem) GetPostIdentity() string {
|
||||
if x != nil {
|
||||
return x.PostIdentity
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CommentItem) GetFeedIdentity() string {
|
||||
if x != nil {
|
||||
return x.FeedIdentity
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CommentItem) GetContent() string {
|
||||
if x != nil {
|
||||
return x.Content
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CommentItem) GetSubComment() []*CommentItem {
|
||||
if x != nil {
|
||||
return x.SubComment
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type PostActionRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
ActionOp string `protobuf:"bytes,1,opt,name=action_op,json=actionOp,proto3" json:"action_op,omitempty"` //操作运作:ilike,unlike
|
||||
ActionType string `protobuf:"bytes,2,opt,name=action_type,json=actionType,proto3" json:"action_type,omitempty"` //类别:推文,评论
|
||||
Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` // 唯一标识
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *PostActionRequest) Reset() {
|
||||
*x = PostActionRequest{}
|
||||
mi := &file_post_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *PostActionRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*PostActionRequest) ProtoMessage() {}
|
||||
|
||||
func (x *PostActionRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_post_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use PostActionRequest.ProtoReflect.Descriptor instead.
|
||||
func (*PostActionRequest) Descriptor() ([]byte, []int) {
|
||||
return file_post_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *PostActionRequest) GetActionOp() string {
|
||||
if x != nil {
|
||||
return x.ActionOp
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *PostActionRequest) GetActionType() string {
|
||||
if x != nil {
|
||||
return x.ActionType
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *PostActionRequest) GetIdentity() string {
|
||||
if x != nil {
|
||||
return x.Identity
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_post_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_post_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x16" +
|
||||
"social/feed/post.proto\x12\x04feed\x1a\x11feed/blocks.proto\"O\n" +
|
||||
"\x10CommentListReply\x12%\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x11.feed.CommentItemR\x04list\x12\x14\n" +
|
||||
"\x05total\x18\x02 \x01(\x03R\x05total\"\xc1\x01\n" +
|
||||
"\vCommentItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12#\n" +
|
||||
"\rpost_identity\x18\x02 \x01(\tR\fpostIdentity\x12#\n" +
|
||||
"\rfeed_identity\x18\x03 \x01(\tR\ffeedIdentity\x12\x18\n" +
|
||||
"\acontent\x18\x04 \x01(\tR\acontent\x122\n" +
|
||||
"\vsub_comment\x18\x05 \x03(\v2\x11.feed.CommentItemR\n" +
|
||||
"subComment\"m\n" +
|
||||
"\x11PostActionRequest\x12\x1b\n" +
|
||||
"\taction_op\x18\x01 \x01(\tR\bactionOp\x12\x1f\n" +
|
||||
"\vaction_type\x18\x02 \x01(\tR\n" +
|
||||
"actionType\x12\x1a\n" +
|
||||
"\bidentity\x18\x03 \x01(\tR\bidentity2\xb0\x03\n" +
|
||||
"\x04Post\x122\n" +
|
||||
"\x05Fetch\x12\x12.feed.FetchRequest\x1a\x13.feed.PostListReply\"\x00\x12-\n" +
|
||||
"\x06Create\x12\x0e.feed.PostItem\x1a\x11.feed.StatusReply\"\x00\x12-\n" +
|
||||
"\x06Change\x12\x0e.feed.PostItem\x1a\x11.feed.StatusReply\"\x00\x121\n" +
|
||||
"\x06Remove\x12\x12.feed.IdentRequest\x1a\x11.feed.StatusReply\"\x00\x12;\n" +
|
||||
"\vCommentList\x12\x12.feed.FetchRequest\x1a\x16.feed.CommentListReply\"\x00\x124\n" +
|
||||
"\n" +
|
||||
"AddComment\x12\x11.feed.CommentItem\x1a\x11.feed.StatusReply\"\x00\x128\n" +
|
||||
"\rDeleteComment\x12\x12.feed.IdentRequest\x1a\x11.feed.StatusReply\"\x00\x126\n" +
|
||||
"\x06Action\x12\x17.feed.PostActionRequest\x1a\x11.feed.StatusReply\"\x00B\bZ\x06.;feedb\x06proto3"
|
||||
|
||||
var (
|
||||
file_post_proto_rawDescOnce sync.Once
|
||||
file_post_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_post_proto_rawDescGZIP() []byte {
|
||||
file_post_proto_rawDescOnce.Do(func() {
|
||||
file_post_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_post_proto_rawDesc), len(file_post_proto_rawDesc)))
|
||||
})
|
||||
return file_post_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_post_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||||
var file_post_proto_goTypes = []any{
|
||||
(*CommentListReply)(nil), // 0: feed.CommentListReply
|
||||
(*CommentItem)(nil), // 1: feed.CommentItem
|
||||
(*PostActionRequest)(nil), // 2: feed.PostActionRequest
|
||||
(*FetchRequest)(nil), // 3: feed.FetchRequest
|
||||
(*PostItem)(nil), // 4: feed.PostItem
|
||||
(*IdentRequest)(nil), // 5: feed.IdentRequest
|
||||
(*PostListReply)(nil), // 6: feed.PostListReply
|
||||
(*StatusReply)(nil), // 7: feed.StatusReply
|
||||
}
|
||||
var file_post_proto_depIdxs = []int32{
|
||||
1, // 0: feed.CommentListReply.list:type_name -> feed.CommentItem
|
||||
1, // 1: feed.CommentItem.sub_comment:type_name -> feed.CommentItem
|
||||
3, // 2: feed.Post.Fetch:input_type -> feed.FetchRequest
|
||||
4, // 3: feed.Post.Create:input_type -> feed.PostItem
|
||||
4, // 4: feed.Post.Change:input_type -> feed.PostItem
|
||||
5, // 5: feed.Post.Remove:input_type -> feed.IdentRequest
|
||||
3, // 6: feed.Post.CommentList:input_type -> feed.FetchRequest
|
||||
1, // 7: feed.Post.AddComment:input_type -> feed.CommentItem
|
||||
5, // 8: feed.Post.DeleteComment:input_type -> feed.IdentRequest
|
||||
2, // 9: feed.Post.Action:input_type -> feed.PostActionRequest
|
||||
6, // 10: feed.Post.Fetch:output_type -> feed.PostListReply
|
||||
7, // 11: feed.Post.Create:output_type -> feed.StatusReply
|
||||
7, // 12: feed.Post.Change:output_type -> feed.StatusReply
|
||||
7, // 13: feed.Post.Remove:output_type -> feed.StatusReply
|
||||
0, // 14: feed.Post.CommentList:output_type -> feed.CommentListReply
|
||||
7, // 15: feed.Post.AddComment:output_type -> feed.StatusReply
|
||||
7, // 16: feed.Post.DeleteComment:output_type -> feed.StatusReply
|
||||
7, // 17: feed.Post.Action:output_type -> feed.StatusReply
|
||||
10, // [10:18] is the sub-list for method output_type
|
||||
2, // [2:10] is the sub-list for method input_type
|
||||
2, // [2:2] is the sub-list for extension type_name
|
||||
2, // [2:2] is the sub-list for extension extendee
|
||||
0, // [0:2] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_post_proto_init() }
|
||||
func file_post_proto_init() {
|
||||
if File_post_proto != nil {
|
||||
return
|
||||
}
|
||||
file_blocks_proto_init()
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_post_proto_rawDesc), len(file_post_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 3,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_post_proto_goTypes,
|
||||
DependencyIndexes: file_post_proto_depIdxs,
|
||||
MessageInfos: file_post_proto_msgTypes,
|
||||
}.Build()
|
||||
File_post_proto = out.File
|
||||
file_post_proto_goTypes = nil
|
||||
file_post_proto_depIdxs = nil
|
||||
}
|
||||
Reference in New Issue
Block a user