refactor: centralize protobuf and remove go-zero

This commit is contained in:
2026-08-09 15:10:19 +08:00
parent 5cc5fd92ed
commit 4bbed3156c
357 changed files with 14208 additions and 19903 deletions

View File

@@ -1,12 +1,13 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.8
// protoc (unknown)
// source: member.proto
// protoc-gen-go v1.36.11
// protoc v7.35.0
// source: module/social/group/proto/member.proto
package group
import (
protobuf "bsm/full/protobuf"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
@@ -35,7 +36,7 @@ type PassportInfoSimpleCard struct {
func (x *PassportInfoSimpleCard) Reset() {
*x = PassportInfoSimpleCard{}
mi := &file_member_proto_msgTypes[0]
mi := &file_module_social_group_proto_member_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -47,7 +48,7 @@ func (x *PassportInfoSimpleCard) String() string {
func (*PassportInfoSimpleCard) ProtoMessage() {}
func (x *PassportInfoSimpleCard) ProtoReflect() protoreflect.Message {
mi := &file_member_proto_msgTypes[0]
mi := &file_module_social_group_proto_member_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -60,7 +61,7 @@ func (x *PassportInfoSimpleCard) ProtoReflect() protoreflect.Message {
// Deprecated: Use PassportInfoSimpleCard.ProtoReflect.Descriptor instead.
func (*PassportInfoSimpleCard) Descriptor() ([]byte, []int) {
return file_member_proto_rawDescGZIP(), []int{0}
return file_module_social_group_proto_member_proto_rawDescGZIP(), []int{0}
}
func (x *PassportInfoSimpleCard) GetIdentity() string {
@@ -126,7 +127,7 @@ type PassportInfoDetailCard struct {
func (x *PassportInfoDetailCard) Reset() {
*x = PassportInfoDetailCard{}
mi := &file_member_proto_msgTypes[1]
mi := &file_module_social_group_proto_member_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -138,7 +139,7 @@ func (x *PassportInfoDetailCard) String() string {
func (*PassportInfoDetailCard) ProtoMessage() {}
func (x *PassportInfoDetailCard) ProtoReflect() protoreflect.Message {
mi := &file_member_proto_msgTypes[1]
mi := &file_module_social_group_proto_member_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -151,7 +152,7 @@ func (x *PassportInfoDetailCard) ProtoReflect() protoreflect.Message {
// Deprecated: Use PassportInfoDetailCard.ProtoReflect.Descriptor instead.
func (*PassportInfoDetailCard) Descriptor() ([]byte, []int) {
return file_member_proto_rawDescGZIP(), []int{1}
return file_module_social_group_proto_member_proto_rawDescGZIP(), []int{1}
}
func (x *PassportInfoDetailCard) GetIdentity() string {
@@ -256,7 +257,7 @@ type GroupMemberReply struct {
func (x *GroupMemberReply) Reset() {
*x = GroupMemberReply{}
mi := &file_member_proto_msgTypes[2]
mi := &file_module_social_group_proto_member_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -268,7 +269,7 @@ func (x *GroupMemberReply) String() string {
func (*GroupMemberReply) ProtoMessage() {}
func (x *GroupMemberReply) ProtoReflect() protoreflect.Message {
mi := &file_member_proto_msgTypes[2]
mi := &file_module_social_group_proto_member_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -281,7 +282,7 @@ func (x *GroupMemberReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use GroupMemberReply.ProtoReflect.Descriptor instead.
func (*GroupMemberReply) Descriptor() ([]byte, []int) {
return file_member_proto_rawDescGZIP(), []int{2}
return file_module_social_group_proto_member_proto_rawDescGZIP(), []int{2}
}
func (x *GroupMemberReply) GetTotal() int32 {
@@ -316,7 +317,7 @@ type DoJoinRequest struct {
func (x *DoJoinRequest) Reset() {
*x = DoJoinRequest{}
mi := &file_member_proto_msgTypes[3]
mi := &file_module_social_group_proto_member_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -328,7 +329,7 @@ func (x *DoJoinRequest) String() string {
func (*DoJoinRequest) ProtoMessage() {}
func (x *DoJoinRequest) ProtoReflect() protoreflect.Message {
mi := &file_member_proto_msgTypes[3]
mi := &file_module_social_group_proto_member_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -341,7 +342,7 @@ func (x *DoJoinRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use DoJoinRequest.ProtoReflect.Descriptor instead.
func (*DoJoinRequest) Descriptor() ([]byte, []int) {
return file_member_proto_rawDescGZIP(), []int{3}
return file_module_social_group_proto_member_proto_rawDescGZIP(), []int{3}
}
func (x *DoJoinRequest) GetId() int64 {
@@ -375,7 +376,7 @@ type JoinFetchReply struct {
func (x *JoinFetchReply) Reset() {
*x = JoinFetchReply{}
mi := &file_member_proto_msgTypes[4]
mi := &file_module_social_group_proto_member_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -387,7 +388,7 @@ func (x *JoinFetchReply) String() string {
func (*JoinFetchReply) ProtoMessage() {}
func (x *JoinFetchReply) ProtoReflect() protoreflect.Message {
mi := &file_member_proto_msgTypes[4]
mi := &file_module_social_group_proto_member_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -400,7 +401,7 @@ func (x *JoinFetchReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use JoinFetchReply.ProtoReflect.Descriptor instead.
func (*JoinFetchReply) Descriptor() ([]byte, []int) {
return file_member_proto_rawDescGZIP(), []int{4}
return file_module_social_group_proto_member_proto_rawDescGZIP(), []int{4}
}
func (x *JoinFetchReply) GetTotal() int32 {
@@ -431,7 +432,7 @@ type ApplyJoinGroupItem struct {
func (x *ApplyJoinGroupItem) Reset() {
*x = ApplyJoinGroupItem{}
mi := &file_member_proto_msgTypes[5]
mi := &file_module_social_group_proto_member_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -443,7 +444,7 @@ func (x *ApplyJoinGroupItem) String() string {
func (*ApplyJoinGroupItem) ProtoMessage() {}
func (x *ApplyJoinGroupItem) ProtoReflect() protoreflect.Message {
mi := &file_member_proto_msgTypes[5]
mi := &file_module_social_group_proto_member_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -456,7 +457,7 @@ func (x *ApplyJoinGroupItem) ProtoReflect() protoreflect.Message {
// Deprecated: Use ApplyJoinGroupItem.ProtoReflect.Descriptor instead.
func (*ApplyJoinGroupItem) Descriptor() ([]byte, []int) {
return file_member_proto_rawDescGZIP(), []int{5}
return file_module_social_group_proto_member_proto_rawDescGZIP(), []int{5}
}
func (x *ApplyJoinGroupItem) GetIdentity() string {
@@ -512,7 +513,7 @@ type GroupOPRequest struct {
func (x *GroupOPRequest) Reset() {
*x = GroupOPRequest{}
mi := &file_member_proto_msgTypes[6]
mi := &file_module_social_group_proto_member_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -524,7 +525,7 @@ func (x *GroupOPRequest) String() string {
func (*GroupOPRequest) ProtoMessage() {}
func (x *GroupOPRequest) ProtoReflect() protoreflect.Message {
mi := &file_member_proto_msgTypes[6]
mi := &file_module_social_group_proto_member_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -537,7 +538,7 @@ func (x *GroupOPRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GroupOPRequest.ProtoReflect.Descriptor instead.
func (*GroupOPRequest) Descriptor() ([]byte, []int) {
return file_member_proto_rawDescGZIP(), []int{6}
return file_module_social_group_proto_member_proto_rawDescGZIP(), []int{6}
}
func (x *GroupOPRequest) GetIdentity() string {
@@ -561,11 +562,11 @@ func (x *GroupOPRequest) GetDirection() string {
return ""
}
var File_member_proto protoreflect.FileDescriptor
var File_module_social_group_proto_member_proto protoreflect.FileDescriptor
const file_member_proto_rawDesc = "" +
const file_module_social_group_proto_member_proto_rawDesc = "" +
"\n" +
"\x19social/group/member.proto\x12\x05group\x1a\x12group/blocks.proto\"\xaf\x01\n" +
"&module/social/group/proto/member.proto\x12\x05group\x1a\x15protobuf/blocks.proto\"\xaf\x01\n" +
"\x16PassportInfoSimpleCard\x12\x1a\n" +
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1a\n" +
"\bnickname\x18\x02 \x01(\tR\bnickname\x12\x1f\n" +
@@ -612,59 +613,59 @@ const file_member_proto_rawDesc = "" +
"\x0eGroupOPRequest\x12\x1a\n" +
"\bidentity\x18\x01 \x01(\tR\bidentity\x12%\n" +
"\x0egroup_identity\x18\x02 \x01(\tR\rgroupIdentity\x12\x1c\n" +
"\tdirection\x18\x03 \x01(\tR\tdirection2\x85\x03\n" +
"\x06Member\x125\n" +
"\x05Fetch\x12\x13.group.IdentRequest\x1a\x17.group.GroupMemberReply\x122\n" +
"\x06DoJoin\x12\x14.group.DoJoinRequest\x1a\x12.group.StatusReply\x120\n" +
"\tJoinFetch\x12\f.group.Empty\x1a\x15.group.JoinFetchReply\x129\n" +
"\fJoinDoHandle\x12\x15.group.GroupOPRequest\x1a\x12.group.StatusReply\x129\n" +
"\fDoSetManager\x12\x15.group.GroupOPRequest\x1a\x12.group.StatusReply\x123\n" +
"\x06DoKick\x12\x15.group.GroupOPRequest\x1a\x12.group.StatusReply\x123\n" +
"\x06DoQuit\x12\x15.group.GroupOPRequest\x1a\x12.group.StatusReplyB\tZ\a.;groupb\x06proto3"
"\tdirection\x18\x03 \x01(\tR\tdirection2\xa0\x03\n" +
"\x06Member\x126\n" +
"\x05Fetch\x12\x14.blocks.IdentRequest\x1a\x17.group.GroupMemberReply\x127\n" +
"\x06DoJoin\x12\x14.group.DoJoinRequest\x1a\x17.blocks.DataStatusReply\x121\n" +
"\tJoinFetch\x12\r.blocks.Empty\x1a\x15.group.JoinFetchReply\x12>\n" +
"\fJoinDoHandle\x12\x15.group.GroupOPRequest\x1a\x17.blocks.DataStatusReply\x12>\n" +
"\fDoSetManager\x12\x15.group.GroupOPRequest\x1a\x17.blocks.DataStatusReply\x128\n" +
"\x06DoKick\x12\x15.group.GroupOPRequest\x1a\x17.blocks.DataStatusReply\x128\n" +
"\x06DoQuit\x12\x15.group.GroupOPRequest\x1a\x17.blocks.DataStatusReplyB'Z%bsm/full/module/social/group/pb;groupb\x06proto3"
var (
file_member_proto_rawDescOnce sync.Once
file_member_proto_rawDescData []byte
file_module_social_group_proto_member_proto_rawDescOnce sync.Once
file_module_social_group_proto_member_proto_rawDescData []byte
)
func file_member_proto_rawDescGZIP() []byte {
file_member_proto_rawDescOnce.Do(func() {
file_member_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_member_proto_rawDesc), len(file_member_proto_rawDesc)))
func file_module_social_group_proto_member_proto_rawDescGZIP() []byte {
file_module_social_group_proto_member_proto_rawDescOnce.Do(func() {
file_module_social_group_proto_member_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_social_group_proto_member_proto_rawDesc), len(file_module_social_group_proto_member_proto_rawDesc)))
})
return file_member_proto_rawDescData
return file_module_social_group_proto_member_proto_rawDescData
}
var file_member_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_member_proto_goTypes = []any{
(*PassportInfoSimpleCard)(nil), // 0: group.PassportInfoSimpleCard
(*PassportInfoDetailCard)(nil), // 1: group.PassportInfoDetailCard
(*GroupMemberReply)(nil), // 2: group.GroupMemberReply
(*DoJoinRequest)(nil), // 3: group.DoJoinRequest
(*JoinFetchReply)(nil), // 4: group.JoinFetchReply
(*ApplyJoinGroupItem)(nil), // 5: group.ApplyJoinGroupItem
(*GroupOPRequest)(nil), // 6: group.GroupOPRequest
(*IdentRequest)(nil), // 7: group.IdentRequest
(*Empty)(nil), // 8: group.Empty
(*StatusReply)(nil), // 9: group.StatusReply
var file_module_social_group_proto_member_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_module_social_group_proto_member_proto_goTypes = []any{
(*PassportInfoSimpleCard)(nil), // 0: group.PassportInfoSimpleCard
(*PassportInfoDetailCard)(nil), // 1: group.PassportInfoDetailCard
(*GroupMemberReply)(nil), // 2: group.GroupMemberReply
(*DoJoinRequest)(nil), // 3: group.DoJoinRequest
(*JoinFetchReply)(nil), // 4: group.JoinFetchReply
(*ApplyJoinGroupItem)(nil), // 5: group.ApplyJoinGroupItem
(*GroupOPRequest)(nil), // 6: group.GroupOPRequest
(*protobuf.IdentRequest)(nil), // 7: blocks.IdentRequest
(*protobuf.Empty)(nil), // 8: blocks.Empty
(*protobuf.DataStatusReply)(nil), // 9: blocks.DataStatusReply
}
var file_member_proto_depIdxs = []int32{
var file_module_social_group_proto_member_proto_depIdxs = []int32{
0, // 0: group.GroupMemberReply.members:type_name -> group.PassportInfoSimpleCard
5, // 1: group.JoinFetchReply.applys:type_name -> group.ApplyJoinGroupItem
1, // 2: group.ApplyJoinGroupItem.from:type_name -> group.PassportInfoDetailCard
7, // 3: group.Member.Fetch:input_type -> group.IdentRequest
7, // 3: group.Member.Fetch:input_type -> blocks.IdentRequest
3, // 4: group.Member.DoJoin:input_type -> group.DoJoinRequest
8, // 5: group.Member.JoinFetch:input_type -> group.Empty
8, // 5: group.Member.JoinFetch:input_type -> blocks.Empty
6, // 6: group.Member.JoinDoHandle:input_type -> group.GroupOPRequest
6, // 7: group.Member.DoSetManager:input_type -> group.GroupOPRequest
6, // 8: group.Member.DoKick:input_type -> group.GroupOPRequest
6, // 9: group.Member.DoQuit:input_type -> group.GroupOPRequest
2, // 10: group.Member.Fetch:output_type -> group.GroupMemberReply
9, // 11: group.Member.DoJoin:output_type -> group.StatusReply
9, // 11: group.Member.DoJoin:output_type -> blocks.DataStatusReply
4, // 12: group.Member.JoinFetch:output_type -> group.JoinFetchReply
9, // 13: group.Member.JoinDoHandle:output_type -> group.StatusReply
9, // 14: group.Member.DoSetManager:output_type -> group.StatusReply
9, // 15: group.Member.DoKick:output_type -> group.StatusReply
9, // 16: group.Member.DoQuit:output_type -> group.StatusReply
9, // 13: group.Member.JoinDoHandle:output_type -> blocks.DataStatusReply
9, // 14: group.Member.DoSetManager:output_type -> blocks.DataStatusReply
9, // 15: group.Member.DoKick:output_type -> blocks.DataStatusReply
9, // 16: group.Member.DoQuit:output_type -> blocks.DataStatusReply
10, // [10:17] is the sub-list for method output_type
3, // [3:10] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
@@ -672,27 +673,26 @@ var file_member_proto_depIdxs = []int32{
0, // [0:3] is the sub-list for field type_name
}
func init() { file_member_proto_init() }
func file_member_proto_init() {
if File_member_proto != nil {
func init() { file_module_social_group_proto_member_proto_init() }
func file_module_social_group_proto_member_proto_init() {
if File_module_social_group_proto_member_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_member_proto_rawDesc), len(file_member_proto_rawDesc)),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_social_group_proto_member_proto_rawDesc), len(file_module_social_group_proto_member_proto_rawDesc)),
NumEnums: 0,
NumMessages: 7,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_member_proto_goTypes,
DependencyIndexes: file_member_proto_depIdxs,
MessageInfos: file_member_proto_msgTypes,
GoTypes: file_module_social_group_proto_member_proto_goTypes,
DependencyIndexes: file_module_social_group_proto_member_proto_depIdxs,
MessageInfos: file_module_social_group_proto_member_proto_msgTypes,
}.Build()
File_member_proto = out.File
file_member_proto_goTypes = nil
file_member_proto_depIdxs = nil
File_module_social_group_proto_member_proto = out.File
file_module_social_group_proto_member_proto_goTypes = nil
file_module_social_group_proto_member_proto_depIdxs = nil
}