refactor: localize protobuf definitions
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
package passport
|
||||
|
||||
import (
|
||||
protobuf "bsm/full/protobuf"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
@@ -144,7 +143,7 @@ type RegisterReply struct {
|
||||
Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` //用户唯一码
|
||||
Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` //用户Header所需Token
|
||||
Extend map[string]string `protobuf:"bytes,5,rep,name=extend,proto3" json:"extend,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` //扩展字段
|
||||
VerifyStatus *protobuf.VerifyStatus `protobuf:"bytes,6,opt,name=verify_status,json=verifyStatus,proto3" json:"verify_status,omitempty"` // 用户验证状态
|
||||
VerifyStatus *VerifyStatus `protobuf:"bytes,6,opt,name=verify_status,json=verifyStatus,proto3" json:"verify_status,omitempty"` // 用户验证状态
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -207,7 +206,7 @@ func (x *RegisterReply) GetExtend() map[string]string {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *RegisterReply) GetVerifyStatus() *protobuf.VerifyStatus {
|
||||
func (x *RegisterReply) GetVerifyStatus() *VerifyStatus {
|
||||
if x != nil {
|
||||
return x.VerifyStatus
|
||||
}
|
||||
@@ -218,7 +217,7 @@ var File_module_base_passport_proto_register_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_module_base_passport_proto_register_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
")module/base/passport/proto/register.proto\x12\bpassport\x1a\x15protobuf/blocks.proto\"\x9d\x02\n" +
|
||||
")module/base/passport/proto/register.proto\x12\bpassport\x1a&module/base/passport/proto/const.proto\"\x9d\x02\n" +
|
||||
"\x0fRegisterRequest\x12\x18\n" +
|
||||
"\acountry\x18\x01 \x01(\tR\acountry\x12\x14\n" +
|
||||
"\x05email\x18\x02 \x01(\tR\x05email\x12\x18\n" +
|
||||
@@ -258,10 +257,10 @@ func file_module_base_passport_proto_register_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_module_base_passport_proto_register_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||||
var file_module_base_passport_proto_register_proto_goTypes = []any{
|
||||
(*RegisterRequest)(nil), // 0: passport.RegisterRequest
|
||||
(*RegisterReply)(nil), // 1: passport.RegisterReply
|
||||
nil, // 2: passport.RegisterReply.ExtendEntry
|
||||
(*protobuf.VerifyStatus)(nil), // 3: blocks.VerifyStatus
|
||||
(*RegisterRequest)(nil), // 0: passport.RegisterRequest
|
||||
(*RegisterReply)(nil), // 1: passport.RegisterReply
|
||||
nil, // 2: passport.RegisterReply.ExtendEntry
|
||||
(*VerifyStatus)(nil), // 3: blocks.VerifyStatus
|
||||
}
|
||||
var file_module_base_passport_proto_register_proto_depIdxs = []int32{
|
||||
2, // 0: passport.RegisterReply.extend:type_name -> passport.RegisterReply.ExtendEntry
|
||||
@@ -282,6 +281,7 @@ func file_module_base_passport_proto_register_proto_init() {
|
||||
if File_module_base_passport_proto_register_proto != nil {
|
||||
return
|
||||
}
|
||||
file_module_base_passport_proto_const_proto_init()
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
|
||||
Reference in New Issue
Block a user