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: login.proto
|
||||
// protoc v7.35.0
|
||||
// source: module/base/passport/proto/login.proto
|
||||
|
||||
package passport
|
||||
|
||||
import (
|
||||
protobuf "bsm/full/protobuf"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
@@ -31,7 +32,7 @@ type LoginByPwdRequest struct {
|
||||
|
||||
func (x *LoginByPwdRequest) Reset() {
|
||||
*x = LoginByPwdRequest{}
|
||||
mi := &file_login_proto_msgTypes[0]
|
||||
mi := &file_module_base_passport_proto_login_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -43,7 +44,7 @@ func (x *LoginByPwdRequest) String() string {
|
||||
func (*LoginByPwdRequest) ProtoMessage() {}
|
||||
|
||||
func (x *LoginByPwdRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_login_proto_msgTypes[0]
|
||||
mi := &file_module_base_passport_proto_login_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -56,7 +57,7 @@ func (x *LoginByPwdRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use LoginByPwdRequest.ProtoReflect.Descriptor instead.
|
||||
func (*LoginByPwdRequest) Descriptor() ([]byte, []int) {
|
||||
return file_login_proto_rawDescGZIP(), []int{0}
|
||||
return file_module_base_passport_proto_login_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *LoginByPwdRequest) GetAccount() string {
|
||||
@@ -88,7 +89,7 @@ type LoginByCodeRequest struct {
|
||||
|
||||
func (x *LoginByCodeRequest) Reset() {
|
||||
*x = LoginByCodeRequest{}
|
||||
mi := &file_login_proto_msgTypes[1]
|
||||
mi := &file_module_base_passport_proto_login_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -100,7 +101,7 @@ func (x *LoginByCodeRequest) String() string {
|
||||
func (*LoginByCodeRequest) ProtoMessage() {}
|
||||
|
||||
func (x *LoginByCodeRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_login_proto_msgTypes[1]
|
||||
mi := &file_module_base_passport_proto_login_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -113,7 +114,7 @@ func (x *LoginByCodeRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use LoginByCodeRequest.ProtoReflect.Descriptor instead.
|
||||
func (*LoginByCodeRequest) Descriptor() ([]byte, []int) {
|
||||
return file_login_proto_rawDescGZIP(), []int{1}
|
||||
return file_module_base_passport_proto_login_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *LoginByCodeRequest) GetCountry() string {
|
||||
@@ -171,14 +172,14 @@ type LoginReply struct {
|
||||
Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` //用户唯一码
|
||||
Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` //用户凭证
|
||||
Extend map[string]string `protobuf:"bytes,4,rep,name=extend,proto3" json:"extend,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` //扩展字段
|
||||
VerifyStatus *VerifyStatus `protobuf:"bytes,5,opt,name=verify_status,json=verifyStatus,proto3" json:"verify_status,omitempty"` // 用户验证状态
|
||||
VerifyStatus *protobuf.VerifyStatus `protobuf:"bytes,5,opt,name=verify_status,json=verifyStatus,proto3" json:"verify_status,omitempty"` // 用户验证状态
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *LoginReply) Reset() {
|
||||
*x = LoginReply{}
|
||||
mi := &file_login_proto_msgTypes[2]
|
||||
mi := &file_module_base_passport_proto_login_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -190,7 +191,7 @@ func (x *LoginReply) String() string {
|
||||
func (*LoginReply) ProtoMessage() {}
|
||||
|
||||
func (x *LoginReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_login_proto_msgTypes[2]
|
||||
mi := &file_module_base_passport_proto_login_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -203,7 +204,7 @@ func (x *LoginReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use LoginReply.ProtoReflect.Descriptor instead.
|
||||
func (*LoginReply) Descriptor() ([]byte, []int) {
|
||||
return file_login_proto_rawDescGZIP(), []int{2}
|
||||
return file_module_base_passport_proto_login_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *LoginReply) GetId() int64 {
|
||||
@@ -234,18 +235,18 @@ func (x *LoginReply) GetExtend() map[string]string {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *LoginReply) GetVerifyStatus() *VerifyStatus {
|
||||
func (x *LoginReply) GetVerifyStatus() *protobuf.VerifyStatus {
|
||||
if x != nil {
|
||||
return x.VerifyStatus
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_login_proto protoreflect.FileDescriptor
|
||||
var File_module_base_passport_proto_login_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_login_proto_rawDesc = "" +
|
||||
const file_module_base_passport_proto_login_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x19base/passport/login.proto\x12\bpassport\x1a\x15passport/blocks.proto\"I\n" +
|
||||
"&module/base/passport/proto/login.proto\x12\bpassport\x1a\x15protobuf/blocks.proto\"I\n" +
|
||||
"\x11LoginByPwdRequest\x12\x18\n" +
|
||||
"\aaccount\x18\x01 \x01(\tR\aaccount\x12\x1a\n" +
|
||||
"\bpassword\x18\x02 \x01(\tR\bpassword\"\xd4\x01\n" +
|
||||
@@ -256,46 +257,45 @@ const file_login_proto_rawDesc = "" +
|
||||
"\tagency_id\x18\x04 \x01(\x03R\bagencyId\x12\x19\n" +
|
||||
"\bstaff_id\x18\x05 \x01(\x03R\astaffId\x12\x1a\n" +
|
||||
"\bowner_id\x18\x06 \x01(\x03R\bowner_id\x12&\n" +
|
||||
"\x0eowner_identity\x18\a \x01(\tR\x0eowner_identity\"\x80\x02\n" +
|
||||
"\x0eowner_identity\x18\a \x01(\tR\x0eowner_identity\"\xfe\x01\n" +
|
||||
"\n" +
|
||||
"LoginReply\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
"\bidentity\x18\x02 \x01(\tR\bidentity\x12\x14\n" +
|
||||
"\x05token\x18\x03 \x01(\tR\x05token\x128\n" +
|
||||
"\x06extend\x18\x04 \x03(\v2 .passport.LoginReply.ExtendEntryR\x06extend\x12;\n" +
|
||||
"\rverify_status\x18\x05 \x01(\v2\x16.passport.VerifyStatusR\fverifyStatus\x1a9\n" +
|
||||
"\x06extend\x18\x04 \x03(\v2 .passport.LoginReply.ExtendEntryR\x06extend\x129\n" +
|
||||
"\rverify_status\x18\x05 \x01(\v2\x14.blocks.VerifyStatusR\fverifyStatus\x1a9\n" +
|
||||
"\vExtendEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x012\xc0\x01\n" +
|
||||
"\x05Login\x12:\n" +
|
||||
"\x03Pwd\x12\x1b.passport.LoginByPwdRequest\x1a\x14.passport.LoginReply\"\x00\x12<\n" +
|
||||
"\x04Code\x12\x1c.passport.LoginByCodeRequest\x1a\x14.passport.LoginReply\"\x00\x12=\n" +
|
||||
"\x05Quick\x12\x1c.passport.LoginByCodeRequest\x1a\x14.passport.LoginReply\"\x00B\fZ\n" +
|
||||
".;passportb\x06proto3"
|
||||
"\x05Quick\x12\x1c.passport.LoginByCodeRequest\x1a\x14.passport.LoginReply\"\x00B+Z)bsm/full/module/base/passport/pb;passportb\x06proto3"
|
||||
|
||||
var (
|
||||
file_login_proto_rawDescOnce sync.Once
|
||||
file_login_proto_rawDescData []byte
|
||||
file_module_base_passport_proto_login_proto_rawDescOnce sync.Once
|
||||
file_module_base_passport_proto_login_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_login_proto_rawDescGZIP() []byte {
|
||||
file_login_proto_rawDescOnce.Do(func() {
|
||||
file_login_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_login_proto_rawDesc), len(file_login_proto_rawDesc)))
|
||||
func file_module_base_passport_proto_login_proto_rawDescGZIP() []byte {
|
||||
file_module_base_passport_proto_login_proto_rawDescOnce.Do(func() {
|
||||
file_module_base_passport_proto_login_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_base_passport_proto_login_proto_rawDesc), len(file_module_base_passport_proto_login_proto_rawDesc)))
|
||||
})
|
||||
return file_login_proto_rawDescData
|
||||
return file_module_base_passport_proto_login_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_login_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_login_proto_goTypes = []any{
|
||||
(*LoginByPwdRequest)(nil), // 0: passport.LoginByPwdRequest
|
||||
(*LoginByCodeRequest)(nil), // 1: passport.LoginByCodeRequest
|
||||
(*LoginReply)(nil), // 2: passport.LoginReply
|
||||
nil, // 3: passport.LoginReply.ExtendEntry
|
||||
(*VerifyStatus)(nil), // 4: passport.VerifyStatus
|
||||
var file_module_base_passport_proto_login_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_module_base_passport_proto_login_proto_goTypes = []any{
|
||||
(*LoginByPwdRequest)(nil), // 0: passport.LoginByPwdRequest
|
||||
(*LoginByCodeRequest)(nil), // 1: passport.LoginByCodeRequest
|
||||
(*LoginReply)(nil), // 2: passport.LoginReply
|
||||
nil, // 3: passport.LoginReply.ExtendEntry
|
||||
(*protobuf.VerifyStatus)(nil), // 4: blocks.VerifyStatus
|
||||
}
|
||||
var file_login_proto_depIdxs = []int32{
|
||||
var file_module_base_passport_proto_login_proto_depIdxs = []int32{
|
||||
3, // 0: passport.LoginReply.extend:type_name -> passport.LoginReply.ExtendEntry
|
||||
4, // 1: passport.LoginReply.verify_status:type_name -> passport.VerifyStatus
|
||||
4, // 1: passport.LoginReply.verify_status:type_name -> blocks.VerifyStatus
|
||||
0, // 2: passport.Login.Pwd:input_type -> passport.LoginByPwdRequest
|
||||
1, // 3: passport.Login.Code:input_type -> passport.LoginByCodeRequest
|
||||
1, // 4: passport.Login.Quick:input_type -> passport.LoginByCodeRequest
|
||||
@@ -309,27 +309,26 @@ var file_login_proto_depIdxs = []int32{
|
||||
0, // [0:2] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_login_proto_init() }
|
||||
func file_login_proto_init() {
|
||||
if File_login_proto != nil {
|
||||
func init() { file_module_base_passport_proto_login_proto_init() }
|
||||
func file_module_base_passport_proto_login_proto_init() {
|
||||
if File_module_base_passport_proto_login_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_login_proto_rawDesc), len(file_login_proto_rawDesc)),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_base_passport_proto_login_proto_rawDesc), len(file_module_base_passport_proto_login_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 4,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_login_proto_goTypes,
|
||||
DependencyIndexes: file_login_proto_depIdxs,
|
||||
MessageInfos: file_login_proto_msgTypes,
|
||||
GoTypes: file_module_base_passport_proto_login_proto_goTypes,
|
||||
DependencyIndexes: file_module_base_passport_proto_login_proto_depIdxs,
|
||||
MessageInfos: file_module_base_passport_proto_login_proto_msgTypes,
|
||||
}.Build()
|
||||
File_login_proto = out.File
|
||||
file_login_proto_goTypes = nil
|
||||
file_login_proto_depIdxs = nil
|
||||
File_module_base_passport_proto_login_proto = out.File
|
||||
file_module_base_passport_proto_login_proto_goTypes = nil
|
||||
file_module_base_passport_proto_login_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user