// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	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"
	sync "sync"
	unsafe "unsafe"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type LoginByPwdRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Account       string                 `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`   // 账号 必填
	Password      string                 `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // 密码 必填
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *LoginByPwdRequest) Reset() {
	*x = LoginByPwdRequest{}
	mi := &file_module_base_passport_proto_login_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *LoginByPwdRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*LoginByPwdRequest) ProtoMessage() {}

func (x *LoginByPwdRequest) ProtoReflect() protoreflect.Message {
	mi := &file_module_base_passport_proto_login_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use LoginByPwdRequest.ProtoReflect.Descriptor instead.
func (*LoginByPwdRequest) Descriptor() ([]byte, []int) {
	return file_module_base_passport_proto_login_proto_rawDescGZIP(), []int{0}
}

func (x *LoginByPwdRequest) GetAccount() string {
	if x != nil {
		return x.Account
	}
	return ""
}

func (x *LoginByPwdRequest) GetPassword() string {
	if x != nil {
		return x.Password
	}
	return ""
}

type LoginByCodeRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Country       string                 `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"`                    // 国家
	Phone         string                 `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"`                        // 手机号码
	Code          string                 `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`                          // 验证码
	AgencyId      int64                  `protobuf:"varint,4,opt,name=agency_id,json=agencyId,proto3" json:"agency_id,omitempty"` // 代理ID
	StaffId       int64                  `protobuf:"varint,5,opt,name=staff_id,json=staffId,proto3" json:"staff_id,omitempty"`    // 工作人员ID
	OwnerId       int64                  `protobuf:"varint,6,opt,name=owner_id,proto3" json:"owner_id,omitempty"`                 // 所属ID
	OwnerIdentity string                 `protobuf:"bytes,7,opt,name=owner_identity,proto3" json:"owner_identity,omitempty"`      // 所属唯一码
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *LoginByCodeRequest) Reset() {
	*x = LoginByCodeRequest{}
	mi := &file_module_base_passport_proto_login_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *LoginByCodeRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*LoginByCodeRequest) ProtoMessage() {}

func (x *LoginByCodeRequest) ProtoReflect() protoreflect.Message {
	mi := &file_module_base_passport_proto_login_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use LoginByCodeRequest.ProtoReflect.Descriptor instead.
func (*LoginByCodeRequest) Descriptor() ([]byte, []int) {
	return file_module_base_passport_proto_login_proto_rawDescGZIP(), []int{1}
}

func (x *LoginByCodeRequest) GetCountry() string {
	if x != nil {
		return x.Country
	}
	return ""
}

func (x *LoginByCodeRequest) GetPhone() string {
	if x != nil {
		return x.Phone
	}
	return ""
}

func (x *LoginByCodeRequest) GetCode() string {
	if x != nil {
		return x.Code
	}
	return ""
}

func (x *LoginByCodeRequest) GetAgencyId() int64 {
	if x != nil {
		return x.AgencyId
	}
	return 0
}

func (x *LoginByCodeRequest) GetStaffId() int64 {
	if x != nil {
		return x.StaffId
	}
	return 0
}

func (x *LoginByCodeRequest) GetOwnerId() int64 {
	if x != nil {
		return x.OwnerId
	}
	return 0
}

func (x *LoginByCodeRequest) GetOwnerIdentity() string {
	if x != nil {
		return x.OwnerIdentity
	}
	return ""
}

type LoginReply struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	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  *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_module_base_passport_proto_login_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *LoginReply) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*LoginReply) ProtoMessage() {}

func (x *LoginReply) ProtoReflect() protoreflect.Message {
	mi := &file_module_base_passport_proto_login_proto_msgTypes[2]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use LoginReply.ProtoReflect.Descriptor instead.
func (*LoginReply) Descriptor() ([]byte, []int) {
	return file_module_base_passport_proto_login_proto_rawDescGZIP(), []int{2}
}

func (x *LoginReply) GetId() int64 {
	if x != nil {
		return x.Id
	}
	return 0
}

func (x *LoginReply) GetIdentity() string {
	if x != nil {
		return x.Identity
	}
	return ""
}

func (x *LoginReply) GetToken() string {
	if x != nil {
		return x.Token
	}
	return ""
}

func (x *LoginReply) GetExtend() map[string]string {
	if x != nil {
		return x.Extend
	}
	return nil
}

func (x *LoginReply) GetVerifyStatus() *protobuf.VerifyStatus {
	if x != nil {
		return x.VerifyStatus
	}
	return nil
}

var File_module_base_passport_proto_login_proto protoreflect.FileDescriptor

const file_module_base_passport_proto_login_proto_rawDesc = "" +
	"\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" +
	"\x12LoginByCodeRequest\x12\x18\n" +
	"\acountry\x18\x01 \x01(\tR\acountry\x12\x14\n" +
	"\x05phone\x18\x02 \x01(\tR\x05phone\x12\x12\n" +
	"\x04code\x18\x03 \x01(\tR\x04code\x12\x1b\n" +
	"\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\"\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\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+Z)bsm/full/module/base/passport/pb;passportb\x06proto3"

var (
	file_module_base_passport_proto_login_proto_rawDescOnce sync.Once
	file_module_base_passport_proto_login_proto_rawDescData []byte
)

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_module_base_passport_proto_login_proto_rawDescData
}

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_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 -> 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
	2, // 5: passport.Login.Pwd:output_type -> passport.LoginReply
	2, // 6: passport.Login.Code:output_type -> passport.LoginReply
	2, // 7: passport.Login.Quick:output_type -> passport.LoginReply
	5, // [5:8] is the sub-list for method output_type
	2, // [2:5] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

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
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			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_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_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
}
