refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc (unknown)
|
||||
// source: group.proto
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc v7.35.0
|
||||
// source: module/social/group/proto/group.proto
|
||||
|
||||
package group
|
||||
|
||||
import (
|
||||
protobuf "bsm/full/protobuf"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
@@ -46,7 +47,7 @@ type GroupItem struct {
|
||||
|
||||
func (x *GroupItem) Reset() {
|
||||
*x = GroupItem{}
|
||||
mi := &file_group_proto_msgTypes[0]
|
||||
mi := &file_module_social_group_proto_group_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -58,7 +59,7 @@ func (x *GroupItem) String() string {
|
||||
func (*GroupItem) ProtoMessage() {}
|
||||
|
||||
func (x *GroupItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_group_proto_msgTypes[0]
|
||||
mi := &file_module_social_group_proto_group_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -71,7 +72,7 @@ func (x *GroupItem) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use GroupItem.ProtoReflect.Descriptor instead.
|
||||
func (*GroupItem) Descriptor() ([]byte, []int) {
|
||||
return file_group_proto_rawDescGZIP(), []int{0}
|
||||
return file_module_social_group_proto_group_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *GroupItem) GetId() int64 {
|
||||
@@ -204,7 +205,7 @@ type GroupsReply struct {
|
||||
|
||||
func (x *GroupsReply) Reset() {
|
||||
*x = GroupsReply{}
|
||||
mi := &file_group_proto_msgTypes[1]
|
||||
mi := &file_module_social_group_proto_group_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -216,7 +217,7 @@ func (x *GroupsReply) String() string {
|
||||
func (*GroupsReply) ProtoMessage() {}
|
||||
|
||||
func (x *GroupsReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_group_proto_msgTypes[1]
|
||||
mi := &file_module_social_group_proto_group_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -229,7 +230,7 @@ func (x *GroupsReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use GroupsReply.ProtoReflect.Descriptor instead.
|
||||
func (*GroupsReply) Descriptor() ([]byte, []int) {
|
||||
return file_group_proto_rawDescGZIP(), []int{1}
|
||||
return file_module_social_group_proto_group_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *GroupsReply) GetTotal() int32 {
|
||||
@@ -253,11 +254,11 @@ func (x *GroupsReply) GetGroups() []*GroupItem {
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_group_proto protoreflect.FileDescriptor
|
||||
var File_module_social_group_proto_group_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_group_proto_rawDesc = "" +
|
||||
const file_module_social_group_proto_group_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x18social/group/group.proto\x12\x05group\x1a\x12group/blocks.proto\"\x94\x04\n" +
|
||||
"%module/social/group/proto/group.proto\x12\x05group\x1a\x15protobuf/blocks.proto\"\x94\x04\n" +
|
||||
"\tGroupItem\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
"\bidentity\x18\x02 \x01(\tR\bidentity\x12\x16\n" +
|
||||
@@ -284,50 +285,50 @@ const file_group_proto_rawDesc = "" +
|
||||
"\vGroupsReply\x12\x14\n" +
|
||||
"\x05total\x18\x01 \x01(\x05R\x05total\x12\x18\n" +
|
||||
"\aversion\x18\x02 \x01(\x03R\aversion\x12(\n" +
|
||||
"\x06groups\x18\x03 \x03(\v2\x10.group.GroupItemR\x06groups2\xa8\x02\n" +
|
||||
"\x05Basic\x122\n" +
|
||||
"\x06Search\x12\x14.group.SearchRequest\x1a\x12.group.GroupsReply\x12)\n" +
|
||||
"\x05Fetch\x12\f.group.Empty\x1a\x12.group.GroupsReply\x12,\n" +
|
||||
"\x03Get\x12\x13.group.IdentRequest\x1a\x10.group.GroupItem\x12.\n" +
|
||||
"\x06Create\x12\x10.group.GroupItem\x1a\x12.group.StatusReply\x12.\n" +
|
||||
"\x06Modify\x12\x10.group.GroupItem\x1a\x12.group.StatusReply\x122\n" +
|
||||
"\aDisband\x12\x13.group.IdentRequest\x1a\x12.group.StatusReplyB\tZ\a.;groupb\x06proto3"
|
||||
"\x06groups\x18\x03 \x03(\v2\x10.group.GroupItemR\x06groups2\xbb\x02\n" +
|
||||
"\x05Basic\x123\n" +
|
||||
"\x06Search\x12\x15.blocks.SearchRequest\x1a\x12.group.GroupsReply\x12*\n" +
|
||||
"\x05Fetch\x12\r.blocks.Empty\x1a\x12.group.GroupsReply\x12-\n" +
|
||||
"\x03Get\x12\x14.blocks.IdentRequest\x1a\x10.group.GroupItem\x123\n" +
|
||||
"\x06Create\x12\x10.group.GroupItem\x1a\x17.blocks.DataStatusReply\x123\n" +
|
||||
"\x06Modify\x12\x10.group.GroupItem\x1a\x17.blocks.DataStatusReply\x128\n" +
|
||||
"\aDisband\x12\x14.blocks.IdentRequest\x1a\x17.blocks.DataStatusReplyB'Z%bsm/full/module/social/group/pb;groupb\x06proto3"
|
||||
|
||||
var (
|
||||
file_group_proto_rawDescOnce sync.Once
|
||||
file_group_proto_rawDescData []byte
|
||||
file_module_social_group_proto_group_proto_rawDescOnce sync.Once
|
||||
file_module_social_group_proto_group_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_group_proto_rawDescGZIP() []byte {
|
||||
file_group_proto_rawDescOnce.Do(func() {
|
||||
file_group_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_group_proto_rawDesc), len(file_group_proto_rawDesc)))
|
||||
func file_module_social_group_proto_group_proto_rawDescGZIP() []byte {
|
||||
file_module_social_group_proto_group_proto_rawDescOnce.Do(func() {
|
||||
file_module_social_group_proto_group_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_social_group_proto_group_proto_rawDesc), len(file_module_social_group_proto_group_proto_rawDesc)))
|
||||
})
|
||||
return file_group_proto_rawDescData
|
||||
return file_module_social_group_proto_group_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_group_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_group_proto_goTypes = []any{
|
||||
(*GroupItem)(nil), // 0: group.GroupItem
|
||||
(*GroupsReply)(nil), // 1: group.GroupsReply
|
||||
(*SearchRequest)(nil), // 2: group.SearchRequest
|
||||
(*Empty)(nil), // 3: group.Empty
|
||||
(*IdentRequest)(nil), // 4: group.IdentRequest
|
||||
(*StatusReply)(nil), // 5: group.StatusReply
|
||||
var file_module_social_group_proto_group_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_module_social_group_proto_group_proto_goTypes = []any{
|
||||
(*GroupItem)(nil), // 0: group.GroupItem
|
||||
(*GroupsReply)(nil), // 1: group.GroupsReply
|
||||
(*protobuf.SearchRequest)(nil), // 2: blocks.SearchRequest
|
||||
(*protobuf.Empty)(nil), // 3: blocks.Empty
|
||||
(*protobuf.IdentRequest)(nil), // 4: blocks.IdentRequest
|
||||
(*protobuf.DataStatusReply)(nil), // 5: blocks.DataStatusReply
|
||||
}
|
||||
var file_group_proto_depIdxs = []int32{
|
||||
var file_module_social_group_proto_group_proto_depIdxs = []int32{
|
||||
0, // 0: group.GroupsReply.groups:type_name -> group.GroupItem
|
||||
2, // 1: group.Basic.Search:input_type -> group.SearchRequest
|
||||
3, // 2: group.Basic.Fetch:input_type -> group.Empty
|
||||
4, // 3: group.Basic.Get:input_type -> group.IdentRequest
|
||||
2, // 1: group.Basic.Search:input_type -> blocks.SearchRequest
|
||||
3, // 2: group.Basic.Fetch:input_type -> blocks.Empty
|
||||
4, // 3: group.Basic.Get:input_type -> blocks.IdentRequest
|
||||
0, // 4: group.Basic.Create:input_type -> group.GroupItem
|
||||
0, // 5: group.Basic.Modify:input_type -> group.GroupItem
|
||||
4, // 6: group.Basic.Disband:input_type -> group.IdentRequest
|
||||
4, // 6: group.Basic.Disband:input_type -> blocks.IdentRequest
|
||||
1, // 7: group.Basic.Search:output_type -> group.GroupsReply
|
||||
1, // 8: group.Basic.Fetch:output_type -> group.GroupsReply
|
||||
0, // 9: group.Basic.Get:output_type -> group.GroupItem
|
||||
5, // 10: group.Basic.Create:output_type -> group.StatusReply
|
||||
5, // 11: group.Basic.Modify:output_type -> group.StatusReply
|
||||
5, // 12: group.Basic.Disband:output_type -> group.StatusReply
|
||||
5, // 10: group.Basic.Create:output_type -> blocks.DataStatusReply
|
||||
5, // 11: group.Basic.Modify:output_type -> blocks.DataStatusReply
|
||||
5, // 12: group.Basic.Disband:output_type -> blocks.DataStatusReply
|
||||
7, // [7:13] is the sub-list for method output_type
|
||||
1, // [1:7] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
@@ -335,27 +336,26 @@ var file_group_proto_depIdxs = []int32{
|
||||
0, // [0:1] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_group_proto_init() }
|
||||
func file_group_proto_init() {
|
||||
if File_group_proto != nil {
|
||||
func init() { file_module_social_group_proto_group_proto_init() }
|
||||
func file_module_social_group_proto_group_proto_init() {
|
||||
if File_module_social_group_proto_group_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_group_proto_rawDesc), len(file_group_proto_rawDesc)),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_social_group_proto_group_proto_rawDesc), len(file_module_social_group_proto_group_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_group_proto_goTypes,
|
||||
DependencyIndexes: file_group_proto_depIdxs,
|
||||
MessageInfos: file_group_proto_msgTypes,
|
||||
GoTypes: file_module_social_group_proto_group_proto_goTypes,
|
||||
DependencyIndexes: file_module_social_group_proto_group_proto_depIdxs,
|
||||
MessageInfos: file_module_social_group_proto_group_proto_msgTypes,
|
||||
}.Build()
|
||||
File_group_proto = out.File
|
||||
file_group_proto_goTypes = nil
|
||||
file_group_proto_depIdxs = nil
|
||||
File_module_social_group_proto_group_proto = out.File
|
||||
file_module_social_group_proto_group_proto_goTypes = nil
|
||||
file_module_social_group_proto_group_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user