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.11
|
||||
// protoc (unknown)
|
||||
// source: account.proto
|
||||
// protoc v7.35.0
|
||||
// source: module/base/passport/proto/account.proto
|
||||
|
||||
package passport
|
||||
|
||||
import (
|
||||
protobuf "bsm/full/protobuf"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
@@ -41,7 +42,7 @@ type GetFullReply struct {
|
||||
Cover string `protobuf:"bytes,15,opt,name=cover,proto3" json:"cover,omitempty"` // 背景&封面
|
||||
Score int32 `protobuf:"varint,16,opt,name=score,proto3" json:"score,omitempty"` // 积分
|
||||
Level int32 `protobuf:"varint,17,opt,name=level,proto3" json:"level,omitempty"` // 等级
|
||||
VerifyStatus *VerifyStatus `protobuf:"bytes,18,opt,name=verify_status,json=verifyStatus,proto3" json:"verify_status,omitempty"` // 用户验证状态
|
||||
VerifyStatus *protobuf.VerifyStatus `protobuf:"bytes,18,opt,name=verify_status,json=verifyStatus,proto3" json:"verify_status,omitempty"` // 用户验证状态
|
||||
Tags []*TagItem `protobuf:"bytes,19,rep,name=tags,proto3" json:"tags,omitempty"` // 用户标签
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
@@ -49,7 +50,7 @@ type GetFullReply struct {
|
||||
|
||||
func (x *GetFullReply) Reset() {
|
||||
*x = GetFullReply{}
|
||||
mi := &file_account_proto_msgTypes[0]
|
||||
mi := &file_module_base_passport_proto_account_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -61,7 +62,7 @@ func (x *GetFullReply) String() string {
|
||||
func (*GetFullReply) ProtoMessage() {}
|
||||
|
||||
func (x *GetFullReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_account_proto_msgTypes[0]
|
||||
mi := &file_module_base_passport_proto_account_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -74,7 +75,7 @@ func (x *GetFullReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use GetFullReply.ProtoReflect.Descriptor instead.
|
||||
func (*GetFullReply) Descriptor() ([]byte, []int) {
|
||||
return file_account_proto_rawDescGZIP(), []int{0}
|
||||
return file_module_base_passport_proto_account_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *GetFullReply) GetIdentity() string {
|
||||
@@ -196,7 +197,7 @@ func (x *GetFullReply) GetLevel() int32 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *GetFullReply) GetVerifyStatus() *VerifyStatus {
|
||||
func (x *GetFullReply) GetVerifyStatus() *protobuf.VerifyStatus {
|
||||
if x != nil {
|
||||
return x.VerifyStatus
|
||||
}
|
||||
@@ -220,7 +221,7 @@ type TagItem struct {
|
||||
|
||||
func (x *TagItem) Reset() {
|
||||
*x = TagItem{}
|
||||
mi := &file_account_proto_msgTypes[1]
|
||||
mi := &file_module_base_passport_proto_account_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -232,7 +233,7 @@ func (x *TagItem) String() string {
|
||||
func (*TagItem) ProtoMessage() {}
|
||||
|
||||
func (x *TagItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_account_proto_msgTypes[1]
|
||||
mi := &file_module_base_passport_proto_account_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -245,7 +246,7 @@ func (x *TagItem) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use TagItem.ProtoReflect.Descriptor instead.
|
||||
func (*TagItem) Descriptor() ([]byte, []int) {
|
||||
return file_account_proto_rawDescGZIP(), []int{1}
|
||||
return file_module_base_passport_proto_account_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *TagItem) GetName() string {
|
||||
@@ -282,7 +283,7 @@ type SetDataRequest struct {
|
||||
|
||||
func (x *SetDataRequest) Reset() {
|
||||
*x = SetDataRequest{}
|
||||
mi := &file_account_proto_msgTypes[2]
|
||||
mi := &file_module_base_passport_proto_account_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -294,7 +295,7 @@ func (x *SetDataRequest) String() string {
|
||||
func (*SetDataRequest) ProtoMessage() {}
|
||||
|
||||
func (x *SetDataRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_account_proto_msgTypes[2]
|
||||
mi := &file_module_base_passport_proto_account_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -307,7 +308,7 @@ func (x *SetDataRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use SetDataRequest.ProtoReflect.Descriptor instead.
|
||||
func (*SetDataRequest) Descriptor() ([]byte, []int) {
|
||||
return file_account_proto_rawDescGZIP(), []int{2}
|
||||
return file_module_base_passport_proto_account_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *SetDataRequest) GetNickname() string {
|
||||
@@ -404,7 +405,7 @@ type SetPasswordRequest struct {
|
||||
|
||||
func (x *SetPasswordRequest) Reset() {
|
||||
*x = SetPasswordRequest{}
|
||||
mi := &file_account_proto_msgTypes[3]
|
||||
mi := &file_module_base_passport_proto_account_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -416,7 +417,7 @@ func (x *SetPasswordRequest) String() string {
|
||||
func (*SetPasswordRequest) ProtoMessage() {}
|
||||
|
||||
func (x *SetPasswordRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_account_proto_msgTypes[3]
|
||||
mi := &file_module_base_passport_proto_account_proto_msgTypes[3]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -429,7 +430,7 @@ func (x *SetPasswordRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use SetPasswordRequest.ProtoReflect.Descriptor instead.
|
||||
func (*SetPasswordRequest) Descriptor() ([]byte, []int) {
|
||||
return file_account_proto_rawDescGZIP(), []int{3}
|
||||
return file_module_base_passport_proto_account_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *SetPasswordRequest) GetOldPassword() string {
|
||||
@@ -455,7 +456,7 @@ type StatisticsRequest struct {
|
||||
|
||||
func (x *StatisticsRequest) Reset() {
|
||||
*x = StatisticsRequest{}
|
||||
mi := &file_account_proto_msgTypes[4]
|
||||
mi := &file_module_base_passport_proto_account_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -467,7 +468,7 @@ func (x *StatisticsRequest) String() string {
|
||||
func (*StatisticsRequest) ProtoMessage() {}
|
||||
|
||||
func (x *StatisticsRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_account_proto_msgTypes[4]
|
||||
mi := &file_module_base_passport_proto_account_proto_msgTypes[4]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -480,7 +481,7 @@ func (x *StatisticsRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use StatisticsRequest.ProtoReflect.Descriptor instead.
|
||||
func (*StatisticsRequest) Descriptor() ([]byte, []int) {
|
||||
return file_account_proto_rawDescGZIP(), []int{4}
|
||||
return file_module_base_passport_proto_account_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *StatisticsRequest) GetField() []string {
|
||||
@@ -499,7 +500,7 @@ type StatisticsReply struct {
|
||||
|
||||
func (x *StatisticsReply) Reset() {
|
||||
*x = StatisticsReply{}
|
||||
mi := &file_account_proto_msgTypes[5]
|
||||
mi := &file_module_base_passport_proto_account_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -511,7 +512,7 @@ func (x *StatisticsReply) String() string {
|
||||
func (*StatisticsReply) ProtoMessage() {}
|
||||
|
||||
func (x *StatisticsReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_account_proto_msgTypes[5]
|
||||
mi := &file_module_base_passport_proto_account_proto_msgTypes[5]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -524,7 +525,7 @@ func (x *StatisticsReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use StatisticsReply.ProtoReflect.Descriptor instead.
|
||||
func (*StatisticsReply) Descriptor() ([]byte, []int) {
|
||||
return file_account_proto_rawDescGZIP(), []int{5}
|
||||
return file_module_base_passport_proto_account_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *StatisticsReply) GetData() map[string]int64 {
|
||||
@@ -534,11 +535,11 @@ func (x *StatisticsReply) GetData() map[string]int64 {
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_account_proto protoreflect.FileDescriptor
|
||||
var File_module_base_passport_proto_account_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_account_proto_rawDesc = "" +
|
||||
const file_module_base_passport_proto_account_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x1bbase/passport/account.proto\x12\bpassport\x1a\x15passport/blocks.proto\"\x82\x04\n" +
|
||||
"(module/base/passport/proto/account.proto\x12\bpassport\x1a\x15protobuf/blocks.proto\"\x80\x04\n" +
|
||||
"\fGetFullReply\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\aaccount\x18\x02 \x01(\tR\aaccount\x12\x14\n" +
|
||||
@@ -557,8 +558,8 @@ const file_account_proto_rawDesc = "" +
|
||||
"\x04sign\x18\x0e \x01(\tR\x04sign\x12\x14\n" +
|
||||
"\x05cover\x18\x0f \x01(\tR\x05cover\x12\x14\n" +
|
||||
"\x05score\x18\x10 \x01(\x05R\x05score\x12\x14\n" +
|
||||
"\x05level\x18\x11 \x01(\x05R\x05level\x12;\n" +
|
||||
"\rverify_status\x18\x12 \x01(\v2\x16.passport.VerifyStatusR\fverifyStatus\x12%\n" +
|
||||
"\x05level\x18\x11 \x01(\x05R\x05level\x129\n" +
|
||||
"\rverify_status\x18\x12 \x01(\v2\x14.blocks.VerifyStatusR\fverifyStatus\x12%\n" +
|
||||
"\x04tags\x18\x13 \x03(\v2\x11.passport.TagItemR\x04tags\"1\n" +
|
||||
"\aTagItem\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
|
||||
@@ -586,58 +587,57 @@ const file_account_proto_rawDesc = "" +
|
||||
"\x04Data\x18\x01 \x03(\v2#.passport.StatisticsReply.DataEntryR\x04Data\x1a7\n" +
|
||||
"\tDataEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\x03R\x05value:\x028\x012\xfe\x02\n" +
|
||||
"\aAccount\x120\n" +
|
||||
"\x03Get\x12\x0f.passport.Empty\x1a\x16.passport.GetFullReply\"\x00\x12<\n" +
|
||||
"\aSetData\x12\x18.passport.SetDataRequest\x1a\x15.passport.StatusReply\"\x00\x12D\n" +
|
||||
"\vSetPassword\x12\x1c.passport.SetPasswordRequest\x1a\x15.passport.StatusReply\"\x00\x127\n" +
|
||||
"\tTagCreate\x12\x11.passport.TagItem\x1a\x15.passport.StatusReply\"\x00\x12<\n" +
|
||||
"\tTagRemove\x12\x16.passport.IdentRequest\x1a\x15.passport.StatusReply\"\x00\x12F\n" +
|
||||
"\x05value\x18\x02 \x01(\x03R\x05value:\x028\x012\xf2\x02\n" +
|
||||
"\aAccount\x12.\n" +
|
||||
"\x03Get\x12\r.blocks.Empty\x1a\x16.passport.GetFullReply\"\x00\x12:\n" +
|
||||
"\aSetData\x12\x18.passport.SetDataRequest\x1a\x13.blocks.StatusReply\"\x00\x12B\n" +
|
||||
"\vSetPassword\x12\x1c.passport.SetPasswordRequest\x1a\x13.blocks.StatusReply\"\x00\x125\n" +
|
||||
"\tTagCreate\x12\x11.passport.TagItem\x1a\x13.blocks.StatusReply\"\x00\x128\n" +
|
||||
"\tTagRemove\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\"\x00\x12F\n" +
|
||||
"\n" +
|
||||
"Statistics\x12\x1b.passport.StatisticsRequest\x1a\x19.passport.StatisticsReply\"\x00B\fZ\n" +
|
||||
".;passportb\x06proto3"
|
||||
"Statistics\x12\x1b.passport.StatisticsRequest\x1a\x19.passport.StatisticsReply\"\x00B+Z)bsm/full/module/base/passport/pb;passportb\x06proto3"
|
||||
|
||||
var (
|
||||
file_account_proto_rawDescOnce sync.Once
|
||||
file_account_proto_rawDescData []byte
|
||||
file_module_base_passport_proto_account_proto_rawDescOnce sync.Once
|
||||
file_module_base_passport_proto_account_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_account_proto_rawDescGZIP() []byte {
|
||||
file_account_proto_rawDescOnce.Do(func() {
|
||||
file_account_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_account_proto_rawDesc), len(file_account_proto_rawDesc)))
|
||||
func file_module_base_passport_proto_account_proto_rawDescGZIP() []byte {
|
||||
file_module_base_passport_proto_account_proto_rawDescOnce.Do(func() {
|
||||
file_module_base_passport_proto_account_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_base_passport_proto_account_proto_rawDesc), len(file_module_base_passport_proto_account_proto_rawDesc)))
|
||||
})
|
||||
return file_account_proto_rawDescData
|
||||
return file_module_base_passport_proto_account_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_account_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_account_proto_goTypes = []any{
|
||||
(*GetFullReply)(nil), // 0: passport.GetFullReply
|
||||
(*TagItem)(nil), // 1: passport.TagItem
|
||||
(*SetDataRequest)(nil), // 2: passport.SetDataRequest
|
||||
(*SetPasswordRequest)(nil), // 3: passport.SetPasswordRequest
|
||||
(*StatisticsRequest)(nil), // 4: passport.StatisticsRequest
|
||||
(*StatisticsReply)(nil), // 5: passport.StatisticsReply
|
||||
nil, // 6: passport.StatisticsReply.DataEntry
|
||||
(*VerifyStatus)(nil), // 7: passport.VerifyStatus
|
||||
(*Empty)(nil), // 8: passport.Empty
|
||||
(*IdentRequest)(nil), // 9: passport.IdentRequest
|
||||
(*StatusReply)(nil), // 10: passport.StatusReply
|
||||
var file_module_base_passport_proto_account_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_module_base_passport_proto_account_proto_goTypes = []any{
|
||||
(*GetFullReply)(nil), // 0: passport.GetFullReply
|
||||
(*TagItem)(nil), // 1: passport.TagItem
|
||||
(*SetDataRequest)(nil), // 2: passport.SetDataRequest
|
||||
(*SetPasswordRequest)(nil), // 3: passport.SetPasswordRequest
|
||||
(*StatisticsRequest)(nil), // 4: passport.StatisticsRequest
|
||||
(*StatisticsReply)(nil), // 5: passport.StatisticsReply
|
||||
nil, // 6: passport.StatisticsReply.DataEntry
|
||||
(*protobuf.VerifyStatus)(nil), // 7: blocks.VerifyStatus
|
||||
(*protobuf.Empty)(nil), // 8: blocks.Empty
|
||||
(*protobuf.IdentRequest)(nil), // 9: blocks.IdentRequest
|
||||
(*protobuf.StatusReply)(nil), // 10: blocks.StatusReply
|
||||
}
|
||||
var file_account_proto_depIdxs = []int32{
|
||||
7, // 0: passport.GetFullReply.verify_status:type_name -> passport.VerifyStatus
|
||||
var file_module_base_passport_proto_account_proto_depIdxs = []int32{
|
||||
7, // 0: passport.GetFullReply.verify_status:type_name -> blocks.VerifyStatus
|
||||
1, // 1: passport.GetFullReply.tags:type_name -> passport.TagItem
|
||||
6, // 2: passport.StatisticsReply.Data:type_name -> passport.StatisticsReply.DataEntry
|
||||
8, // 3: passport.Account.Get:input_type -> passport.Empty
|
||||
8, // 3: passport.Account.Get:input_type -> blocks.Empty
|
||||
2, // 4: passport.Account.SetData:input_type -> passport.SetDataRequest
|
||||
3, // 5: passport.Account.SetPassword:input_type -> passport.SetPasswordRequest
|
||||
1, // 6: passport.Account.TagCreate:input_type -> passport.TagItem
|
||||
9, // 7: passport.Account.TagRemove:input_type -> passport.IdentRequest
|
||||
9, // 7: passport.Account.TagRemove:input_type -> blocks.IdentRequest
|
||||
4, // 8: passport.Account.Statistics:input_type -> passport.StatisticsRequest
|
||||
0, // 9: passport.Account.Get:output_type -> passport.GetFullReply
|
||||
10, // 10: passport.Account.SetData:output_type -> passport.StatusReply
|
||||
10, // 11: passport.Account.SetPassword:output_type -> passport.StatusReply
|
||||
10, // 12: passport.Account.TagCreate:output_type -> passport.StatusReply
|
||||
10, // 13: passport.Account.TagRemove:output_type -> passport.StatusReply
|
||||
10, // 10: passport.Account.SetData:output_type -> blocks.StatusReply
|
||||
10, // 11: passport.Account.SetPassword:output_type -> blocks.StatusReply
|
||||
10, // 12: passport.Account.TagCreate:output_type -> blocks.StatusReply
|
||||
10, // 13: passport.Account.TagRemove:output_type -> blocks.StatusReply
|
||||
5, // 14: passport.Account.Statistics:output_type -> passport.StatisticsReply
|
||||
9, // [9:15] is the sub-list for method output_type
|
||||
3, // [3:9] is the sub-list for method input_type
|
||||
@@ -646,27 +646,26 @@ var file_account_proto_depIdxs = []int32{
|
||||
0, // [0:3] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_account_proto_init() }
|
||||
func file_account_proto_init() {
|
||||
if File_account_proto != nil {
|
||||
func init() { file_module_base_passport_proto_account_proto_init() }
|
||||
func file_module_base_passport_proto_account_proto_init() {
|
||||
if File_module_base_passport_proto_account_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_account_proto_rawDesc), len(file_account_proto_rawDesc)),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_base_passport_proto_account_proto_rawDesc), len(file_module_base_passport_proto_account_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 7,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_account_proto_goTypes,
|
||||
DependencyIndexes: file_account_proto_depIdxs,
|
||||
MessageInfos: file_account_proto_msgTypes,
|
||||
GoTypes: file_module_base_passport_proto_account_proto_goTypes,
|
||||
DependencyIndexes: file_module_base_passport_proto_account_proto_depIdxs,
|
||||
MessageInfos: file_module_base_passport_proto_account_proto_msgTypes,
|
||||
}.Build()
|
||||
File_account_proto = out.File
|
||||
file_account_proto_goTypes = nil
|
||||
file_account_proto_depIdxs = nil
|
||||
File_module_base_passport_proto_account_proto = out.File
|
||||
file_module_base_passport_proto_account_proto_goTypes = nil
|
||||
file_module_base_passport_proto_account_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user