282 lines
8.8 KiB
Go
282 lines
8.8 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.8
|
|
// protoc (unknown)
|
|
// source: register.proto
|
|
|
|
package passport
|
|
|
|
import (
|
|
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 RegisterRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` //邮箱
|
|
Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` //帐号
|
|
Phone string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"` //手机号
|
|
Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` //密码
|
|
Code string `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"` //验证码
|
|
AgencyId int64 `protobuf:"varint,6,opt,name=agency_id,json=agencyId,proto3" json:"agency_id,omitempty"` // 代理ID
|
|
StaffId int64 `protobuf:"varint,7,opt,name=staff_id,json=staffId,proto3" json:"staff_id,omitempty"` // 工作人员ID
|
|
OwnerId int64 `protobuf:"varint,8,opt,name=owner_id,proto3" json:"owner_id,omitempty"` // 所属ID
|
|
OwnerIdentity string `protobuf:"bytes,9,opt,name=owner_identity,proto3" json:"owner_identity,omitempty"` // 所属唯一码
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RegisterRequest) Reset() {
|
|
*x = RegisterRequest{}
|
|
mi := &file_register_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RegisterRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RegisterRequest) ProtoMessage() {}
|
|
|
|
func (x *RegisterRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_register_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 RegisterRequest.ProtoReflect.Descriptor instead.
|
|
func (*RegisterRequest) Descriptor() ([]byte, []int) {
|
|
return file_register_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *RegisterRequest) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterRequest) GetAccount() string {
|
|
if x != nil {
|
|
return x.Account
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterRequest) GetPhone() string {
|
|
if x != nil {
|
|
return x.Phone
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterRequest) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterRequest) GetCode() string {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterRequest) GetAgencyId() int64 {
|
|
if x != nil {
|
|
return x.AgencyId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RegisterRequest) GetStaffId() int64 {
|
|
if x != nil {
|
|
return x.StaffId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RegisterRequest) GetOwnerId() int64 {
|
|
if x != nil {
|
|
return x.OwnerId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RegisterRequest) GetOwnerIdentity() string {
|
|
if x != nil {
|
|
return x.OwnerIdentity
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RegisterReply 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,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"` //扩展字段
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RegisterReply) Reset() {
|
|
*x = RegisterReply{}
|
|
mi := &file_register_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RegisterReply) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RegisterReply) ProtoMessage() {}
|
|
|
|
func (x *RegisterReply) ProtoReflect() protoreflect.Message {
|
|
mi := &file_register_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 RegisterReply.ProtoReflect.Descriptor instead.
|
|
func (*RegisterReply) Descriptor() ([]byte, []int) {
|
|
return file_register_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *RegisterReply) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RegisterReply) GetIdentity() string {
|
|
if x != nil {
|
|
return x.Identity
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterReply) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterReply) GetExtend() map[string]string {
|
|
if x != nil {
|
|
return x.Extend
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_register_proto protoreflect.FileDescriptor
|
|
|
|
const file_register_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x0eregister.proto\x12\bpassport\"\x83\x02\n" +
|
|
"\x0fRegisterRequest\x12\x14\n" +
|
|
"\x05email\x18\x01 \x01(\tR\x05email\x12\x18\n" +
|
|
"\aaccount\x18\x02 \x01(\tR\aaccount\x12\x14\n" +
|
|
"\x05phone\x18\x03 \x01(\tR\x05phone\x12\x1a\n" +
|
|
"\bpassword\x18\x04 \x01(\tR\bpassword\x12\x12\n" +
|
|
"\x04code\x18\x05 \x01(\tR\x04code\x12\x1b\n" +
|
|
"\tagency_id\x18\x06 \x01(\x03R\bagencyId\x12\x19\n" +
|
|
"\bstaff_id\x18\a \x01(\x03R\astaffId\x12\x1a\n" +
|
|
"\bowner_id\x18\b \x01(\x03R\bowner_id\x12&\n" +
|
|
"\x0eowner_identity\x18\t \x01(\tR\x0eowner_identity\"\xc9\x01\n" +
|
|
"\rRegisterReply\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
|
"\bidentity\x18\x02 \x01(\tR\bidentity\x12\x14\n" +
|
|
"\x05token\x18\x04 \x01(\tR\x05token\x12;\n" +
|
|
"\x06extend\x18\x05 \x03(\v2#.passport.RegisterReply.ExtendEntryR\x06extend\x1a9\n" +
|
|
"\vExtendEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x012\x85\x01\n" +
|
|
"\bRegister\x12;\n" +
|
|
"\x03Pwd\x12\x19.passport.RegisterRequest\x1a\x17.passport.RegisterReply\"\x00\x12<\n" +
|
|
"\x04Code\x12\x19.passport.RegisterRequest\x1a\x17.passport.RegisterReply\"\x00B\fZ\n" +
|
|
".;passportb\x06proto3"
|
|
|
|
var (
|
|
file_register_proto_rawDescOnce sync.Once
|
|
file_register_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_register_proto_rawDescGZIP() []byte {
|
|
file_register_proto_rawDescOnce.Do(func() {
|
|
file_register_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_register_proto_rawDesc), len(file_register_proto_rawDesc)))
|
|
})
|
|
return file_register_proto_rawDescData
|
|
}
|
|
|
|
var file_register_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
var file_register_proto_goTypes = []any{
|
|
(*RegisterRequest)(nil), // 0: passport.RegisterRequest
|
|
(*RegisterReply)(nil), // 1: passport.RegisterReply
|
|
nil, // 2: passport.RegisterReply.ExtendEntry
|
|
}
|
|
var file_register_proto_depIdxs = []int32{
|
|
2, // 0: passport.RegisterReply.extend:type_name -> passport.RegisterReply.ExtendEntry
|
|
0, // 1: passport.Register.Pwd:input_type -> passport.RegisterRequest
|
|
0, // 2: passport.Register.Code:input_type -> passport.RegisterRequest
|
|
1, // 3: passport.Register.Pwd:output_type -> passport.RegisterReply
|
|
1, // 4: passport.Register.Code:output_type -> passport.RegisterReply
|
|
3, // [3:5] is the sub-list for method output_type
|
|
1, // [1:3] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_register_proto_init() }
|
|
func file_register_proto_init() {
|
|
if File_register_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_register_proto_rawDesc), len(file_register_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 3,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_register_proto_goTypes,
|
|
DependencyIndexes: file_register_proto_depIdxs,
|
|
MessageInfos: file_register_proto_msgTypes,
|
|
}.Build()
|
|
File_register_proto = out.File
|
|
file_register_proto_goTypes = nil
|
|
file_register_proto_depIdxs = nil
|
|
}
|