实现基础的实名认证功能

This commit is contained in:
GoEdgeLab
2022-07-24 09:56:34 +08:00
parent c39a722364
commit 04f2969867
10 changed files with 3713 additions and 3405 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -35,6 +35,8 @@ type File struct {
Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
CreatedAt int64 `protobuf:"varint,4,opt,name=createdAt,proto3" json:"createdAt,omitempty"` CreatedAt int64 `protobuf:"varint,4,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
IsPublic bool `protobuf:"varint,5,opt,name=isPublic,proto3" json:"isPublic,omitempty"` IsPublic bool `protobuf:"varint,5,opt,name=isPublic,proto3" json:"isPublic,omitempty"`
MimeType string `protobuf:"bytes,6,opt,name=mimeType,proto3" json:"mimeType,omitempty"`
Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"`
} }
func (x *File) Reset() { func (x *File) Reset() {
@@ -104,11 +106,25 @@ func (x *File) GetIsPublic() bool {
return false return false
} }
func (x *File) GetMimeType() string {
if x != nil {
return x.MimeType
}
return ""
}
func (x *File) GetType() string {
if x != nil {
return x.Type
}
return ""
}
var File_models_model_file_proto protoreflect.FileDescriptor var File_models_model_file_proto protoreflect.FileDescriptor
var file_models_model_file_proto_rawDesc = []byte{ var file_models_model_file_proto_rawDesc = []byte{
0x0a, 0x17, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x66, 0x0a, 0x17, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x66,
0x69, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x80, 0x01, 0x69, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xb0, 0x01,
0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61,
0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61,
@@ -117,6 +133,9 @@ var file_models_model_file_proto_rawDesc = []byte{
0x64, 0x41, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x64, 0x41, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74,
0x65, 0x64, 0x41, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x73, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x73, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63,
0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63,
0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01,
0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04,
0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65,
0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }

View File

@@ -30,17 +30,19 @@ type UserIdentity struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` OrgType string `protobuf:"bytes,2,opt,name=orgType,proto3" json:"orgType,omitempty"`
RealName string `protobuf:"bytes,3,opt,name=realName,proto3" json:"realName,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
Number string `protobuf:"bytes,4,opt,name=number,proto3" json:"number,omitempty"` RealName string `protobuf:"bytes,4,opt,name=realName,proto3" json:"realName,omitempty"`
FileIds []int64 `protobuf:"varint,5,rep,packed,name=fileIds,proto3" json:"fileIds,omitempty"` Number string `protobuf:"bytes,5,opt,name=number,proto3" json:"number,omitempty"`
Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"` FileIds []int64 `protobuf:"varint,6,rep,packed,name=fileIds,proto3" json:"fileIds,omitempty"`
CreatedAt int64 `protobuf:"varint,7,opt,name=createdAt,proto3" json:"createdAt,omitempty"` Status string `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"`
UpdatedAt int64 `protobuf:"varint,8,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` CreatedAt int64 `protobuf:"varint,8,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
SubmittedAt int64 `protobuf:"varint,9,opt,name=submittedAt,proto3" json:"submittedAt,omitempty"` UpdatedAt int64 `protobuf:"varint,9,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
RejectedAt int64 `protobuf:"varint,10,opt,name=rejectedAt,proto3" json:"rejectedAt,omitempty"` SubmittedAt int64 `protobuf:"varint,10,opt,name=submittedAt,proto3" json:"submittedAt,omitempty"`
VerifiedAt int64 `protobuf:"varint,11,opt,name=verifiedAt,proto3" json:"verifiedAt,omitempty"` RejectedAt int64 `protobuf:"varint,11,opt,name=rejectedAt,proto3" json:"rejectedAt,omitempty"`
VerifiedAt int64 `protobuf:"varint,12,opt,name=verifiedAt,proto3" json:"verifiedAt,omitempty"`
RejectedReason string `protobuf:"bytes,13,opt,name=rejectedReason,proto3" json:"rejectedReason,omitempty"`
} }
func (x *UserIdentity) Reset() { func (x *UserIdentity) Reset() {
@@ -82,6 +84,13 @@ func (x *UserIdentity) GetId() int64 {
return 0 return 0
} }
func (x *UserIdentity) GetOrgType() string {
if x != nil {
return x.OrgType
}
return ""
}
func (x *UserIdentity) GetType() string { func (x *UserIdentity) GetType() string {
if x != nil { if x != nil {
return x.Type return x.Type
@@ -152,32 +161,44 @@ func (x *UserIdentity) GetVerifiedAt() int64 {
return 0 return 0
} }
func (x *UserIdentity) GetRejectedReason() string {
if x != nil {
return x.RejectedReason
}
return ""
}
var File_models_model_user_identity_proto protoreflect.FileDescriptor var File_models_model_user_identity_proto protoreflect.FileDescriptor
var file_models_model_user_identity_proto_rawDesc = []byte{ var file_models_model_user_identity_proto_rawDesc = []byte{
0x0a, 0x20, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x75, 0x0a, 0x20, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x75,
0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xb6, 0x02, 0x0a, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x49, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xf8, 0x02, 0x0a, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x49,
0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x72, 0x67, 0x54, 0x79,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x67, 0x54, 0x79, 0x70,
0x65, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
0x65, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x61, 0x6c, 0x4e, 0x61, 0x6d,
0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x61, 0x6c, 0x4e, 0x61, 0x6d,
0x18, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x03, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28,
0x52, 0x07, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x09, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x6c,
0x74, 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x65, 0x49, 0x64, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x03, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x65,
0x73, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x07, 0x49, 0x64, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x07, 0x20,
0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x63,
0x1c, 0x0a, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x08, 0x20, 0x01, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
0x28, 0x03, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x20, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x75, 0x70, 0x64,
0x0b, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x09, 0x20, 0x01, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x75, 0x70,
0x28, 0x03, 0x52, 0x0b, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x75, 0x62, 0x6d, 0x69,
0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x0a, 0x20, 0x74, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x73, 0x75,
0x01, 0x28, 0x03, 0x52, 0x0a, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x62, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x6a,
0x1e, 0x0a, 0x0a, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x41, 0x74, 0x18, 0x0b, 0x20, 0x65, 0x63, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x72,
0x01, 0x28, 0x03, 0x52, 0x0a, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x41, 0x74, 0x42, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x76, 0x65, 0x72,
0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x69, 0x66, 0x69, 0x65, 0x64, 0x41, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x76,
0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x41, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x72, 0x65, 0x6a,
0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0e, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x65, 0x61, 0x73, 0x6f,
0x6e, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
} }
var ( var (

View File

@@ -133,6 +133,8 @@ type CreateFileRequest struct {
Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
IsPublic bool `protobuf:"varint,3,opt,name=isPublic,proto3" json:"isPublic,omitempty"` IsPublic bool `protobuf:"varint,3,opt,name=isPublic,proto3" json:"isPublic,omitempty"`
MimeType string `protobuf:"bytes,4,opt,name=mimeType,proto3" json:"mimeType,omitempty"`
Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"`
} }
func (x *CreateFileRequest) Reset() { func (x *CreateFileRequest) Reset() {
@@ -188,6 +190,20 @@ func (x *CreateFileRequest) GetIsPublic() bool {
return false return false
} }
func (x *CreateFileRequest) GetMimeType() string {
if x != nil {
return x.MimeType
}
return ""
}
func (x *CreateFileRequest) GetType() string {
if x != nil {
return x.Type
}
return ""
}
type CreateFileResponse struct { type CreateFileResponse struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
@@ -297,34 +313,37 @@ var file_service_file_proto_rawDesc = []byte{
0x0a, 0x17, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x0a, 0x17, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x46, 0x69, 0x6c,
0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x04, 0x66, 0x69, 0x6c,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6c,
0x65, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x22, 0x5f, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x22, 0x8f, 0x01, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61,
0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a,
0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a,
0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x1a, 0x0a,
0x69, 0x73, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x08, 0x69, 0x73, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52,
0x69, 0x73, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x22, 0x2c, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x08, 0x69, 0x73, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x69, 0x6d,
0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d,
0x0a, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20,
0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x33, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x2c, 0x0a, 0x12, 0x43, 0x72, 0x65,
0x46, 0x69, 0x6c, 0x65, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
0x01, 0x28, 0x03, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x32, 0xdb, 0x01, 0x0a, 0x0b, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x33, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74,
0x46, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4a, 0x0a, 0x0f, 0x66, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x52, 0x65, 0x71,
0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x1a, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x01,
0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x46, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x32, 0xdb, 0x01, 0x0a,
0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x0b, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4a, 0x0a, 0x0f,
0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x12,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
0x65, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62,
0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65,
0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x12, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61,
0x6c, 0x65, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73,
0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x12, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46,
0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x69, 0x6c, 0x65, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x12, 0x1d, 0x2e, 0x70, 0x62,
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x46, 0x69, 0x6e, 0x69, 0x73,
0x68, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e,
0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f,
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (

View File

@@ -35,10 +35,11 @@ type CreateUserIdentityRequest struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` OrgType string `protobuf:"bytes,1,opt,name=orgType,proto3" json:"orgType,omitempty"`
RealName string `protobuf:"bytes,2,opt,name=realName,proto3" json:"realName,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
Number string `protobuf:"bytes,3,opt,name=number,proto3" json:"number,omitempty"` RealName string `protobuf:"bytes,3,opt,name=realName,proto3" json:"realName,omitempty"`
FileIds []int64 `protobuf:"varint,4,rep,packed,name=fileIds,proto3" json:"fileIds,omitempty"` Number string `protobuf:"bytes,4,opt,name=number,proto3" json:"number,omitempty"`
FileIds []int64 `protobuf:"varint,5,rep,packed,name=fileIds,proto3" json:"fileIds,omitempty"`
} }
func (x *CreateUserIdentityRequest) Reset() { func (x *CreateUserIdentityRequest) Reset() {
@@ -73,6 +74,13 @@ func (*CreateUserIdentityRequest) Descriptor() ([]byte, []int) {
return file_service_user_identity_proto_rawDescGZIP(), []int{0} return file_service_user_identity_proto_rawDescGZIP(), []int{0}
} }
func (x *CreateUserIdentityRequest) GetOrgType() string {
if x != nil {
return x.OrgType
}
return ""
}
func (x *CreateUserIdentityRequest) GetType() string { func (x *CreateUserIdentityRequest) GetType() string {
if x != nil { if x != nil {
return x.Type return x.Type
@@ -148,18 +156,17 @@ func (x *CreateUserIdentityResponse) GetUserIdentityId() int64 {
return 0 return 0
} }
// 查看某个类型的身份认证信息 // 查找单个身份认证信息
type FindUserEnabledUserIdentityWithTypeRequest struct { type FindEnabledUserIdentityRequest struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户端不需要设置此参数 UserIdentityId int64 `protobuf:"varint,1,opt,name=userIdentityId,proto3" json:"userIdentityId,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // 类型
} }
func (x *FindUserEnabledUserIdentityWithTypeRequest) Reset() { func (x *FindEnabledUserIdentityRequest) Reset() {
*x = FindUserEnabledUserIdentityWithTypeRequest{} *x = FindEnabledUserIdentityRequest{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_service_user_identity_proto_msgTypes[2] mi := &file_service_user_identity_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -167,13 +174,13 @@ func (x *FindUserEnabledUserIdentityWithTypeRequest) Reset() {
} }
} }
func (x *FindUserEnabledUserIdentityWithTypeRequest) String() string { func (x *FindEnabledUserIdentityRequest) String() string {
return protoimpl.X.MessageStringOf(x) return protoimpl.X.MessageStringOf(x)
} }
func (*FindUserEnabledUserIdentityWithTypeRequest) ProtoMessage() {} func (*FindEnabledUserIdentityRequest) ProtoMessage() {}
func (x *FindUserEnabledUserIdentityWithTypeRequest) ProtoReflect() protoreflect.Message { func (x *FindEnabledUserIdentityRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_identity_proto_msgTypes[2] mi := &file_service_user_identity_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -185,26 +192,19 @@ func (x *FindUserEnabledUserIdentityWithTypeRequest) ProtoReflect() protoreflect
return mi.MessageOf(x) return mi.MessageOf(x)
} }
// Deprecated: Use FindUserEnabledUserIdentityWithTypeRequest.ProtoReflect.Descriptor instead. // Deprecated: Use FindEnabledUserIdentityRequest.ProtoReflect.Descriptor instead.
func (*FindUserEnabledUserIdentityWithTypeRequest) Descriptor() ([]byte, []int) { func (*FindEnabledUserIdentityRequest) Descriptor() ([]byte, []int) {
return file_service_user_identity_proto_rawDescGZIP(), []int{2} return file_service_user_identity_proto_rawDescGZIP(), []int{2}
} }
func (x *FindUserEnabledUserIdentityWithTypeRequest) GetUserId() int64 { func (x *FindEnabledUserIdentityRequest) GetUserIdentityId() int64 {
if x != nil { if x != nil {
return x.UserId return x.UserIdentityId
} }
return 0 return 0
} }
func (x *FindUserEnabledUserIdentityWithTypeRequest) GetType() string { type FindEnabledUserIdentityResponse struct {
if x != nil {
return x.Type
}
return ""
}
type FindUserEnabledUserIdentityWithTypeResponse struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
@@ -212,8 +212,8 @@ type FindUserEnabledUserIdentityWithTypeResponse struct {
UserIdentity *UserIdentity `protobuf:"bytes,1,opt,name=userIdentity,proto3" json:"userIdentity,omitempty"` UserIdentity *UserIdentity `protobuf:"bytes,1,opt,name=userIdentity,proto3" json:"userIdentity,omitempty"`
} }
func (x *FindUserEnabledUserIdentityWithTypeResponse) Reset() { func (x *FindEnabledUserIdentityResponse) Reset() {
*x = FindUserEnabledUserIdentityWithTypeResponse{} *x = FindEnabledUserIdentityResponse{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_service_user_identity_proto_msgTypes[3] mi := &file_service_user_identity_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -221,13 +221,13 @@ func (x *FindUserEnabledUserIdentityWithTypeResponse) Reset() {
} }
} }
func (x *FindUserEnabledUserIdentityWithTypeResponse) String() string { func (x *FindEnabledUserIdentityResponse) String() string {
return protoimpl.X.MessageStringOf(x) return protoimpl.X.MessageStringOf(x)
} }
func (*FindUserEnabledUserIdentityWithTypeResponse) ProtoMessage() {} func (*FindEnabledUserIdentityResponse) ProtoMessage() {}
func (x *FindUserEnabledUserIdentityWithTypeResponse) ProtoReflect() protoreflect.Message { func (x *FindEnabledUserIdentityResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_user_identity_proto_msgTypes[3] mi := &file_service_user_identity_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -239,12 +239,115 @@ func (x *FindUserEnabledUserIdentityWithTypeResponse) ProtoReflect() protoreflec
return mi.MessageOf(x) return mi.MessageOf(x)
} }
// Deprecated: Use FindUserEnabledUserIdentityWithTypeResponse.ProtoReflect.Descriptor instead. // Deprecated: Use FindEnabledUserIdentityResponse.ProtoReflect.Descriptor instead.
func (*FindUserEnabledUserIdentityWithTypeResponse) Descriptor() ([]byte, []int) { func (*FindEnabledUserIdentityResponse) Descriptor() ([]byte, []int) {
return file_service_user_identity_proto_rawDescGZIP(), []int{3} return file_service_user_identity_proto_rawDescGZIP(), []int{3}
} }
func (x *FindUserEnabledUserIdentityWithTypeResponse) GetUserIdentity() *UserIdentity { func (x *FindEnabledUserIdentityResponse) GetUserIdentity() *UserIdentity {
if x != nil {
return x.UserIdentity
}
return nil
}
// 查看某个类型的身份认证信息
type FindEnabledUserIdentityWithOrgTypeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户端不需要设置此参数
OrgType string `protobuf:"bytes,2,opt,name=orgType,proto3" json:"orgType,omitempty"` // 阻止类型
}
func (x *FindEnabledUserIdentityWithOrgTypeRequest) Reset() {
*x = FindEnabledUserIdentityWithOrgTypeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_identity_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindEnabledUserIdentityWithOrgTypeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindEnabledUserIdentityWithOrgTypeRequest) ProtoMessage() {}
func (x *FindEnabledUserIdentityWithOrgTypeRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_identity_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindEnabledUserIdentityWithOrgTypeRequest.ProtoReflect.Descriptor instead.
func (*FindEnabledUserIdentityWithOrgTypeRequest) Descriptor() ([]byte, []int) {
return file_service_user_identity_proto_rawDescGZIP(), []int{4}
}
func (x *FindEnabledUserIdentityWithOrgTypeRequest) GetUserId() int64 {
if x != nil {
return x.UserId
}
return 0
}
func (x *FindEnabledUserIdentityWithOrgTypeRequest) GetOrgType() string {
if x != nil {
return x.OrgType
}
return ""
}
type FindEnabledUserIdentityWithOrgTypeResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserIdentity *UserIdentity `protobuf:"bytes,1,opt,name=userIdentity,proto3" json:"userIdentity,omitempty"`
}
func (x *FindEnabledUserIdentityWithOrgTypeResponse) Reset() {
*x = FindEnabledUserIdentityWithOrgTypeResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_identity_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindEnabledUserIdentityWithOrgTypeResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindEnabledUserIdentityWithOrgTypeResponse) ProtoMessage() {}
func (x *FindEnabledUserIdentityWithOrgTypeResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_user_identity_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindEnabledUserIdentityWithOrgTypeResponse.ProtoReflect.Descriptor instead.
func (*FindEnabledUserIdentityWithOrgTypeResponse) Descriptor() ([]byte, []int) {
return file_service_user_identity_proto_rawDescGZIP(), []int{5}
}
func (x *FindEnabledUserIdentityWithOrgTypeResponse) GetUserIdentity() *UserIdentity {
if x != nil { if x != nil {
return x.UserIdentity return x.UserIdentity
} }
@@ -267,7 +370,7 @@ type UpdateUserIdentityRequest struct {
func (x *UpdateUserIdentityRequest) Reset() { func (x *UpdateUserIdentityRequest) Reset() {
*x = UpdateUserIdentityRequest{} *x = UpdateUserIdentityRequest{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_service_user_identity_proto_msgTypes[4] mi := &file_service_user_identity_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -280,7 +383,7 @@ func (x *UpdateUserIdentityRequest) String() string {
func (*UpdateUserIdentityRequest) ProtoMessage() {} func (*UpdateUserIdentityRequest) ProtoMessage() {}
func (x *UpdateUserIdentityRequest) ProtoReflect() protoreflect.Message { func (x *UpdateUserIdentityRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_identity_proto_msgTypes[4] mi := &file_service_user_identity_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -293,7 +396,7 @@ func (x *UpdateUserIdentityRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use UpdateUserIdentityRequest.ProtoReflect.Descriptor instead. // Deprecated: Use UpdateUserIdentityRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserIdentityRequest) Descriptor() ([]byte, []int) { func (*UpdateUserIdentityRequest) Descriptor() ([]byte, []int) {
return file_service_user_identity_proto_rawDescGZIP(), []int{4} return file_service_user_identity_proto_rawDescGZIP(), []int{6}
} }
func (x *UpdateUserIdentityRequest) GetUserIdentityId() int64 { func (x *UpdateUserIdentityRequest) GetUserIdentityId() int64 {
@@ -343,7 +446,7 @@ type SubmitUserIdentityRequest struct {
func (x *SubmitUserIdentityRequest) Reset() { func (x *SubmitUserIdentityRequest) Reset() {
*x = SubmitUserIdentityRequest{} *x = SubmitUserIdentityRequest{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_service_user_identity_proto_msgTypes[5] mi := &file_service_user_identity_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -356,7 +459,7 @@ func (x *SubmitUserIdentityRequest) String() string {
func (*SubmitUserIdentityRequest) ProtoMessage() {} func (*SubmitUserIdentityRequest) ProtoMessage() {}
func (x *SubmitUserIdentityRequest) ProtoReflect() protoreflect.Message { func (x *SubmitUserIdentityRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_identity_proto_msgTypes[5] mi := &file_service_user_identity_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -369,7 +472,7 @@ func (x *SubmitUserIdentityRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use SubmitUserIdentityRequest.ProtoReflect.Descriptor instead. // Deprecated: Use SubmitUserIdentityRequest.ProtoReflect.Descriptor instead.
func (*SubmitUserIdentityRequest) Descriptor() ([]byte, []int) { func (*SubmitUserIdentityRequest) Descriptor() ([]byte, []int) {
return file_service_user_identity_proto_rawDescGZIP(), []int{5} return file_service_user_identity_proto_rawDescGZIP(), []int{7}
} }
func (x *SubmitUserIdentityRequest) GetUserIdentityId() int64 { func (x *SubmitUserIdentityRequest) GetUserIdentityId() int64 {
@@ -391,7 +494,7 @@ type CancelUserIdentityRequest struct {
func (x *CancelUserIdentityRequest) Reset() { func (x *CancelUserIdentityRequest) Reset() {
*x = CancelUserIdentityRequest{} *x = CancelUserIdentityRequest{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_service_user_identity_proto_msgTypes[6] mi := &file_service_user_identity_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -404,7 +507,7 @@ func (x *CancelUserIdentityRequest) String() string {
func (*CancelUserIdentityRequest) ProtoMessage() {} func (*CancelUserIdentityRequest) ProtoMessage() {}
func (x *CancelUserIdentityRequest) ProtoReflect() protoreflect.Message { func (x *CancelUserIdentityRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_identity_proto_msgTypes[6] mi := &file_service_user_identity_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -417,7 +520,7 @@ func (x *CancelUserIdentityRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use CancelUserIdentityRequest.ProtoReflect.Descriptor instead. // Deprecated: Use CancelUserIdentityRequest.ProtoReflect.Descriptor instead.
func (*CancelUserIdentityRequest) Descriptor() ([]byte, []int) { func (*CancelUserIdentityRequest) Descriptor() ([]byte, []int) {
return file_service_user_identity_proto_rawDescGZIP(), []int{6} return file_service_user_identity_proto_rawDescGZIP(), []int{8}
} }
func (x *CancelUserIdentityRequest) GetUserIdentityId() int64 { func (x *CancelUserIdentityRequest) GetUserIdentityId() int64 {
@@ -433,13 +536,14 @@ type RejectUserIdentityRequest struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
UserIdentityId int64 `protobuf:"varint,1,opt,name=userIdentityId,proto3" json:"userIdentityId,omitempty"` UserIdentityId int64 `protobuf:"varint,1,opt,name=userIdentityId,proto3" json:"userIdentityId,omitempty"`
Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
} }
func (x *RejectUserIdentityRequest) Reset() { func (x *RejectUserIdentityRequest) Reset() {
*x = RejectUserIdentityRequest{} *x = RejectUserIdentityRequest{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_service_user_identity_proto_msgTypes[7] mi := &file_service_user_identity_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -452,7 +556,7 @@ func (x *RejectUserIdentityRequest) String() string {
func (*RejectUserIdentityRequest) ProtoMessage() {} func (*RejectUserIdentityRequest) ProtoMessage() {}
func (x *RejectUserIdentityRequest) ProtoReflect() protoreflect.Message { func (x *RejectUserIdentityRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_identity_proto_msgTypes[7] mi := &file_service_user_identity_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -465,7 +569,7 @@ func (x *RejectUserIdentityRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use RejectUserIdentityRequest.ProtoReflect.Descriptor instead. // Deprecated: Use RejectUserIdentityRequest.ProtoReflect.Descriptor instead.
func (*RejectUserIdentityRequest) Descriptor() ([]byte, []int) { func (*RejectUserIdentityRequest) Descriptor() ([]byte, []int) {
return file_service_user_identity_proto_rawDescGZIP(), []int{7} return file_service_user_identity_proto_rawDescGZIP(), []int{9}
} }
func (x *RejectUserIdentityRequest) GetUserIdentityId() int64 { func (x *RejectUserIdentityRequest) GetUserIdentityId() int64 {
@@ -475,6 +579,13 @@ func (x *RejectUserIdentityRequest) GetUserIdentityId() int64 {
return 0 return 0
} }
func (x *RejectUserIdentityRequest) GetReason() string {
if x != nil {
return x.Reason
}
return ""
}
// 通过用户身份认证信息 // 通过用户身份认证信息
type VerifyUserIdentityRequest struct { type VerifyUserIdentityRequest struct {
state protoimpl.MessageState state protoimpl.MessageState
@@ -487,7 +598,7 @@ type VerifyUserIdentityRequest struct {
func (x *VerifyUserIdentityRequest) Reset() { func (x *VerifyUserIdentityRequest) Reset() {
*x = VerifyUserIdentityRequest{} *x = VerifyUserIdentityRequest{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_service_user_identity_proto_msgTypes[8] mi := &file_service_user_identity_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -500,7 +611,7 @@ func (x *VerifyUserIdentityRequest) String() string {
func (*VerifyUserIdentityRequest) ProtoMessage() {} func (*VerifyUserIdentityRequest) ProtoMessage() {}
func (x *VerifyUserIdentityRequest) ProtoReflect() protoreflect.Message { func (x *VerifyUserIdentityRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_identity_proto_msgTypes[8] mi := &file_service_user_identity_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -513,7 +624,7 @@ func (x *VerifyUserIdentityRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use VerifyUserIdentityRequest.ProtoReflect.Descriptor instead. // Deprecated: Use VerifyUserIdentityRequest.ProtoReflect.Descriptor instead.
func (*VerifyUserIdentityRequest) Descriptor() ([]byte, []int) { func (*VerifyUserIdentityRequest) Descriptor() ([]byte, []int) {
return file_service_user_identity_proto_rawDescGZIP(), []int{8} return file_service_user_identity_proto_rawDescGZIP(), []int{10}
} }
func (x *VerifyUserIdentityRequest) GetUserIdentityId() int64 { func (x *VerifyUserIdentityRequest) GetUserIdentityId() int64 {
@@ -531,97 +642,117 @@ var file_service_user_identity_proto_rawDesc = []byte{
0x62, 0x1a, 0x20, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x62, 0x1a, 0x20, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f,
0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x5f, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x5f,
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x97,
0x0a, 0x19, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x01, 0x0a, 0x19, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65,
0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07,
0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x6f, 0x72, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f,
0x1a, 0x0a, 0x08, 0x72, 0x65, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x72, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02,
0x09, 0x52, 0x08, 0x72, 0x65, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65,
0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65,
0x62, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x18, 0x04, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72,
0x20, 0x03, 0x28, 0x03, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x22, 0x44, 0x0a, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x18,
0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x03, 0x52,
0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x75, 0x07, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x22, 0x44, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61,
0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65,
0x01, 0x28, 0x03, 0x52, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
0x79, 0x49, 0x64, 0x22, 0x58, 0x0a, 0x2a, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x45, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e,
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x22, 0x48,
0x74, 0x79, 0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x0a, 0x1e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x55, 0x73, 0x65,
0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x63, 0x0a,
0x2b, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x57, 0x69, 0x74, 0x68,
0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x0c,
0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e,
0x74, 0x69, 0x74, 0x79, 0x52, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,
0x74, 0x79, 0x22, 0xa5, 0x01, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65,
0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x26, 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x26, 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x22, 0x57, 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74,
0x72, 0x65, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x0c, 0x75,
0x72, 0x65, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74,
0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x69, 0x74, 0x79, 0x52, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,
0x03, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x22, 0x43, 0x0a, 0x19, 0x53, 0x75, 0x79, 0x22, 0x5d, 0x0a, 0x29, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
0x62, 0x6d, 0x69, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x57, 0x69, 0x74, 0x68,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x49, 0x4f, 0x72, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16,
0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
0x0e, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x22, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x72, 0x67, 0x54, 0x79, 0x70,
0x43, 0x0a, 0x19, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x67, 0x54, 0x79, 0x70, 0x65,
0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x22, 0x62, 0x0a, 0x2a, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x55,
0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x18, 0x01, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x57, 0x69, 0x74, 0x68, 0x4f,
0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x72, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34,
0x74, 0x79, 0x49, 0x64, 0x22, 0x43, 0x0a, 0x19, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x55, 0x73, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01,
0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64,
0x74, 0x12, 0x26, 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e,
0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x49, 0x74, 0x69, 0x74, 0x79, 0x22, 0xa5, 0x01, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55,
0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x22, 0x43, 0x0a, 0x19, 0x56, 0x65, 0x72, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65,
0x69, 0x66, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x74, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x75, 0x73, 0x65, 0x72,
0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79,
0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x32, 0xcc, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a,
0x04, 0x0a, 0x13, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x53, 0x0a, 0x08, 0x72, 0x65, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x53, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x08, 0x72, 0x65, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75,
0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1d, 0x2e, 0x70, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62,
0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x18, 0x05, 0x20,
0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x62, 0x03, 0x28, 0x03, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x22, 0x43, 0x0a, 0x19,
0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,
0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x86, 0x01, 0x0a, 0x23, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x75, 0x73, 0x65,
0x66, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x55, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x57, 0x69, 0x74, 0x68, 0x54, 0x03, 0x52, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49,
0x79, 0x70, 0x65, 0x12, 0x2e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x64, 0x22, 0x43, 0x0a, 0x19, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x49,
0x72, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26,
0x74, 0x69, 0x74, 0x79, 0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64,
0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e,
0x72, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x22, 0x5b, 0x0a, 0x19, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74,
0x74, 0x69, 0x74, 0x79, 0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x12, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74,
0x69, 0x74, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x75, 0x73, 0x65,
0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x72,
0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61,
0x73, 0x6f, 0x6e, 0x22, 0x43, 0x0a, 0x19, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x55, 0x73, 0x65,
0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x26, 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x32, 0xad, 0x05, 0x0a, 0x13, 0x55, 0x73, 0x65,
0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
0x12, 0x53, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64,
0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61,
0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,
0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x17, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61,
0x62, 0x6c, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
0x12, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e,
0x61, 0x62, 0x6c, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,
0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x83, 0x01, 0x0a, 0x22, 0x66, 0x69,
0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65,
0x6e, 0x74, 0x69, 0x74, 0x79, 0x57, 0x69, 0x74, 0x68, 0x4f, 0x72, 0x67, 0x54, 0x79, 0x70, 0x65,
0x12, 0x2d, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x57, 0x69, 0x74,
0x68, 0x4f, 0x72, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x2e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x57, 0x69, 0x74, 0x68,
0x4f, 0x72, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x43, 0x0a, 0x12, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65,
0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74,
0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63,
0x63, 0x65, 0x73, 0x73, 0x12, 0x43, 0x0a, 0x12, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x55, 0x73,
0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,
0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52,
0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x43, 0x0a, 0x12, 0x73, 0x75, 0x62, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x43, 0x0a, 0x12, 0x63, 0x61, 0x6e,
0x6d, 0x69, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x63, 0x65, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12,
0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x49,
0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e,
0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x43, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x43,
0x0a, 0x12, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x0a, 0x12, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e,
0x74, 0x69, 0x74, 0x79, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74,
0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63,
0x65, 0x73, 0x73, 0x12, 0x43, 0x0a, 0x12, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x55, 0x73, 0x65, 0x65, 0x73, 0x73, 0x12, 0x43, 0x0a, 0x12, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x55, 0x73, 0x65,
0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x56,
0x65, 0x6a, 0x65, 0x63, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x65, 0x72, 0x69, 0x66, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,
0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50,
0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x43, 0x0a, 0x12, 0x76, 0x65, 0x72, 0x69, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62,
0x66, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1d, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x2e, 0x70, 0x62, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64,
0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e,
0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x06, 0x5a,
0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
@@ -636,41 +767,46 @@ func file_service_user_identity_proto_rawDescGZIP() []byte {
return file_service_user_identity_proto_rawDescData return file_service_user_identity_proto_rawDescData
} }
var file_service_user_identity_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_service_user_identity_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
var file_service_user_identity_proto_goTypes = []interface{}{ var file_service_user_identity_proto_goTypes = []interface{}{
(*CreateUserIdentityRequest)(nil), // 0: pb.CreateUserIdentityRequest (*CreateUserIdentityRequest)(nil), // 0: pb.CreateUserIdentityRequest
(*CreateUserIdentityResponse)(nil), // 1: pb.CreateUserIdentityResponse (*CreateUserIdentityResponse)(nil), // 1: pb.CreateUserIdentityResponse
(*FindUserEnabledUserIdentityWithTypeRequest)(nil), // 2: pb.FindUserEnabledUserIdentityWithTypeRequest (*FindEnabledUserIdentityRequest)(nil), // 2: pb.FindEnabledUserIdentityRequest
(*FindUserEnabledUserIdentityWithTypeResponse)(nil), // 3: pb.FindUserEnabledUserIdentityWithTypeResponse (*FindEnabledUserIdentityResponse)(nil), // 3: pb.FindEnabledUserIdentityResponse
(*UpdateUserIdentityRequest)(nil), // 4: pb.UpdateUserIdentityRequest (*FindEnabledUserIdentityWithOrgTypeRequest)(nil), // 4: pb.FindEnabledUserIdentityWithOrgTypeRequest
(*SubmitUserIdentityRequest)(nil), // 5: pb.SubmitUserIdentityRequest (*FindEnabledUserIdentityWithOrgTypeResponse)(nil), // 5: pb.FindEnabledUserIdentityWithOrgTypeResponse
(*CancelUserIdentityRequest)(nil), // 6: pb.CancelUserIdentityRequest (*UpdateUserIdentityRequest)(nil), // 6: pb.UpdateUserIdentityRequest
(*RejectUserIdentityRequest)(nil), // 7: pb.RejectUserIdentityRequest (*SubmitUserIdentityRequest)(nil), // 7: pb.SubmitUserIdentityRequest
(*VerifyUserIdentityRequest)(nil), // 8: pb.VerifyUserIdentityRequest (*CancelUserIdentityRequest)(nil), // 8: pb.CancelUserIdentityRequest
(*UserIdentity)(nil), // 9: pb.UserIdentity (*RejectUserIdentityRequest)(nil), // 9: pb.RejectUserIdentityRequest
(*RPCSuccess)(nil), // 10: pb.RPCSuccess (*VerifyUserIdentityRequest)(nil), // 10: pb.VerifyUserIdentityRequest
(*UserIdentity)(nil), // 11: pb.UserIdentity
(*RPCSuccess)(nil), // 12: pb.RPCSuccess
} }
var file_service_user_identity_proto_depIdxs = []int32{ var file_service_user_identity_proto_depIdxs = []int32{
9, // 0: pb.FindUserEnabledUserIdentityWithTypeResponse.userIdentity:type_name -> pb.UserIdentity 11, // 0: pb.FindEnabledUserIdentityResponse.userIdentity:type_name -> pb.UserIdentity
0, // 1: pb.UserIdentityService.createUserIdentity:input_type -> pb.CreateUserIdentityRequest 11, // 1: pb.FindEnabledUserIdentityWithOrgTypeResponse.userIdentity:type_name -> pb.UserIdentity
2, // 2: pb.UserIdentityService.findUserEnabledUserIdentityWithType:input_type -> pb.FindUserEnabledUserIdentityWithTypeRequest 0, // 2: pb.UserIdentityService.createUserIdentity:input_type -> pb.CreateUserIdentityRequest
4, // 3: pb.UserIdentityService.updateUserIdentity:input_type -> pb.UpdateUserIdentityRequest 2, // 3: pb.UserIdentityService.findEnabledUserIdentity:input_type -> pb.FindEnabledUserIdentityRequest
5, // 4: pb.UserIdentityService.submitUserIdentity:input_type -> pb.SubmitUserIdentityRequest 4, // 4: pb.UserIdentityService.findEnabledUserIdentityWithOrgType:input_type -> pb.FindEnabledUserIdentityWithOrgTypeRequest
6, // 5: pb.UserIdentityService.cancelUserIdentity:input_type -> pb.CancelUserIdentityRequest 6, // 5: pb.UserIdentityService.updateUserIdentity:input_type -> pb.UpdateUserIdentityRequest
7, // 6: pb.UserIdentityService.rejectUserIdentity:input_type -> pb.RejectUserIdentityRequest 7, // 6: pb.UserIdentityService.submitUserIdentity:input_type -> pb.SubmitUserIdentityRequest
8, // 7: pb.UserIdentityService.verifyUserIdentity:input_type -> pb.VerifyUserIdentityRequest 8, // 7: pb.UserIdentityService.cancelUserIdentity:input_type -> pb.CancelUserIdentityRequest
1, // 8: pb.UserIdentityService.createUserIdentity:output_type -> pb.CreateUserIdentityResponse 9, // 8: pb.UserIdentityService.rejectUserIdentity:input_type -> pb.RejectUserIdentityRequest
3, // 9: pb.UserIdentityService.findUserEnabledUserIdentityWithType:output_type -> pb.FindUserEnabledUserIdentityWithTypeResponse 10, // 9: pb.UserIdentityService.verifyUserIdentity:input_type -> pb.VerifyUserIdentityRequest
10, // 10: pb.UserIdentityService.updateUserIdentity:output_type -> pb.RPCSuccess 1, // 10: pb.UserIdentityService.createUserIdentity:output_type -> pb.CreateUserIdentityResponse
10, // 11: pb.UserIdentityService.submitUserIdentity:output_type -> pb.RPCSuccess 3, // 11: pb.UserIdentityService.findEnabledUserIdentity:output_type -> pb.FindEnabledUserIdentityResponse
10, // 12: pb.UserIdentityService.cancelUserIdentity:output_type -> pb.RPCSuccess 5, // 12: pb.UserIdentityService.findEnabledUserIdentityWithOrgType:output_type -> pb.FindEnabledUserIdentityWithOrgTypeResponse
10, // 13: pb.UserIdentityService.rejectUserIdentity:output_type -> pb.RPCSuccess 12, // 13: pb.UserIdentityService.updateUserIdentity:output_type -> pb.RPCSuccess
10, // 14: pb.UserIdentityService.verifyUserIdentity:output_type -> pb.RPCSuccess 12, // 14: pb.UserIdentityService.submitUserIdentity:output_type -> pb.RPCSuccess
8, // [8:15] is the sub-list for method output_type 12, // 15: pb.UserIdentityService.cancelUserIdentity:output_type -> pb.RPCSuccess
1, // [1:8] is the sub-list for method input_type 12, // 16: pb.UserIdentityService.rejectUserIdentity:output_type -> pb.RPCSuccess
1, // [1:1] is the sub-list for extension type_name 12, // 17: pb.UserIdentityService.verifyUserIdentity:output_type -> pb.RPCSuccess
1, // [1:1] is the sub-list for extension extendee 10, // [10:18] is the sub-list for method output_type
0, // [0:1] is the sub-list for field type_name 2, // [2:10] 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_service_user_identity_proto_init() } func init() { file_service_user_identity_proto_init() }
@@ -706,7 +842,7 @@ func file_service_user_identity_proto_init() {
} }
} }
file_service_user_identity_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { file_service_user_identity_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindUserEnabledUserIdentityWithTypeRequest); i { switch v := v.(*FindEnabledUserIdentityRequest); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -718,7 +854,7 @@ func file_service_user_identity_proto_init() {
} }
} }
file_service_user_identity_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { file_service_user_identity_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindUserEnabledUserIdentityWithTypeResponse); i { switch v := v.(*FindEnabledUserIdentityResponse); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -730,7 +866,7 @@ func file_service_user_identity_proto_init() {
} }
} }
file_service_user_identity_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { file_service_user_identity_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateUserIdentityRequest); i { switch v := v.(*FindEnabledUserIdentityWithOrgTypeRequest); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -742,7 +878,7 @@ func file_service_user_identity_proto_init() {
} }
} }
file_service_user_identity_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { file_service_user_identity_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SubmitUserIdentityRequest); i { switch v := v.(*FindEnabledUserIdentityWithOrgTypeResponse); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -754,7 +890,7 @@ func file_service_user_identity_proto_init() {
} }
} }
file_service_user_identity_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { file_service_user_identity_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CancelUserIdentityRequest); i { switch v := v.(*UpdateUserIdentityRequest); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -766,7 +902,7 @@ func file_service_user_identity_proto_init() {
} }
} }
file_service_user_identity_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { file_service_user_identity_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RejectUserIdentityRequest); i { switch v := v.(*SubmitUserIdentityRequest); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -778,6 +914,30 @@ func file_service_user_identity_proto_init() {
} }
} }
file_service_user_identity_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { file_service_user_identity_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CancelUserIdentityRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_user_identity_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RejectUserIdentityRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_user_identity_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*VerifyUserIdentityRequest); i { switch v := v.(*VerifyUserIdentityRequest); i {
case 0: case 0:
return &v.state return &v.state
@@ -796,7 +956,7 @@ func file_service_user_identity_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_service_user_identity_proto_rawDesc, RawDescriptor: file_service_user_identity_proto_rawDesc,
NumEnums: 0, NumEnums: 0,
NumMessages: 9, NumMessages: 11,
NumExtensions: 0, NumExtensions: 0,
NumServices: 1, NumServices: 1,
}, },
@@ -824,8 +984,10 @@ const _ = grpc.SupportPackageIsVersion6
type UserIdentityServiceClient interface { type UserIdentityServiceClient interface {
// 创建身份认证信息 // 创建身份认证信息
CreateUserIdentity(ctx context.Context, in *CreateUserIdentityRequest, opts ...grpc.CallOption) (*CreateUserIdentityResponse, error) CreateUserIdentity(ctx context.Context, in *CreateUserIdentityRequest, opts ...grpc.CallOption) (*CreateUserIdentityResponse, error)
// 查找单个身份认证信息
FindEnabledUserIdentity(ctx context.Context, in *FindEnabledUserIdentityRequest, opts ...grpc.CallOption) (*FindEnabledUserIdentityResponse, error)
// 查看某个类型的身份认证信息 // 查看某个类型的身份认证信息
FindUserEnabledUserIdentityWithType(ctx context.Context, in *FindUserEnabledUserIdentityWithTypeRequest, opts ...grpc.CallOption) (*FindUserEnabledUserIdentityWithTypeResponse, error) FindEnabledUserIdentityWithOrgType(ctx context.Context, in *FindEnabledUserIdentityWithOrgTypeRequest, opts ...grpc.CallOption) (*FindEnabledUserIdentityWithOrgTypeResponse, error)
// 修改身份认证信息 // 修改身份认证信息
UpdateUserIdentity(ctx context.Context, in *UpdateUserIdentityRequest, opts ...grpc.CallOption) (*RPCSuccess, error) UpdateUserIdentity(ctx context.Context, in *UpdateUserIdentityRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 提交审核身份认证信息 // 提交审核身份认证信息
@@ -855,9 +1017,18 @@ func (c *userIdentityServiceClient) CreateUserIdentity(ctx context.Context, in *
return out, nil return out, nil
} }
func (c *userIdentityServiceClient) FindUserEnabledUserIdentityWithType(ctx context.Context, in *FindUserEnabledUserIdentityWithTypeRequest, opts ...grpc.CallOption) (*FindUserEnabledUserIdentityWithTypeResponse, error) { func (c *userIdentityServiceClient) FindEnabledUserIdentity(ctx context.Context, in *FindEnabledUserIdentityRequest, opts ...grpc.CallOption) (*FindEnabledUserIdentityResponse, error) {
out := new(FindUserEnabledUserIdentityWithTypeResponse) out := new(FindEnabledUserIdentityResponse)
err := c.cc.Invoke(ctx, "/pb.UserIdentityService/findUserEnabledUserIdentityWithType", in, out, opts...) err := c.cc.Invoke(ctx, "/pb.UserIdentityService/findEnabledUserIdentity", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *userIdentityServiceClient) FindEnabledUserIdentityWithOrgType(ctx context.Context, in *FindEnabledUserIdentityWithOrgTypeRequest, opts ...grpc.CallOption) (*FindEnabledUserIdentityWithOrgTypeResponse, error) {
out := new(FindEnabledUserIdentityWithOrgTypeResponse)
err := c.cc.Invoke(ctx, "/pb.UserIdentityService/findEnabledUserIdentityWithOrgType", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
@@ -913,8 +1084,10 @@ func (c *userIdentityServiceClient) VerifyUserIdentity(ctx context.Context, in *
type UserIdentityServiceServer interface { type UserIdentityServiceServer interface {
// 创建身份认证信息 // 创建身份认证信息
CreateUserIdentity(context.Context, *CreateUserIdentityRequest) (*CreateUserIdentityResponse, error) CreateUserIdentity(context.Context, *CreateUserIdentityRequest) (*CreateUserIdentityResponse, error)
// 查找单个身份认证信息
FindEnabledUserIdentity(context.Context, *FindEnabledUserIdentityRequest) (*FindEnabledUserIdentityResponse, error)
// 查看某个类型的身份认证信息 // 查看某个类型的身份认证信息
FindUserEnabledUserIdentityWithType(context.Context, *FindUserEnabledUserIdentityWithTypeRequest) (*FindUserEnabledUserIdentityWithTypeResponse, error) FindEnabledUserIdentityWithOrgType(context.Context, *FindEnabledUserIdentityWithOrgTypeRequest) (*FindEnabledUserIdentityWithOrgTypeResponse, error)
// 修改身份认证信息 // 修改身份认证信息
UpdateUserIdentity(context.Context, *UpdateUserIdentityRequest) (*RPCSuccess, error) UpdateUserIdentity(context.Context, *UpdateUserIdentityRequest) (*RPCSuccess, error)
// 提交审核身份认证信息 // 提交审核身份认证信息
@@ -934,8 +1107,11 @@ type UnimplementedUserIdentityServiceServer struct {
func (*UnimplementedUserIdentityServiceServer) CreateUserIdentity(context.Context, *CreateUserIdentityRequest) (*CreateUserIdentityResponse, error) { func (*UnimplementedUserIdentityServiceServer) CreateUserIdentity(context.Context, *CreateUserIdentityRequest) (*CreateUserIdentityResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateUserIdentity not implemented") return nil, status.Errorf(codes.Unimplemented, "method CreateUserIdentity not implemented")
} }
func (*UnimplementedUserIdentityServiceServer) FindUserEnabledUserIdentityWithType(context.Context, *FindUserEnabledUserIdentityWithTypeRequest) (*FindUserEnabledUserIdentityWithTypeResponse, error) { func (*UnimplementedUserIdentityServiceServer) FindEnabledUserIdentity(context.Context, *FindEnabledUserIdentityRequest) (*FindEnabledUserIdentityResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindUserEnabledUserIdentityWithType not implemented") return nil, status.Errorf(codes.Unimplemented, "method FindEnabledUserIdentity not implemented")
}
func (*UnimplementedUserIdentityServiceServer) FindEnabledUserIdentityWithOrgType(context.Context, *FindEnabledUserIdentityWithOrgTypeRequest) (*FindEnabledUserIdentityWithOrgTypeResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledUserIdentityWithOrgType not implemented")
} }
func (*UnimplementedUserIdentityServiceServer) UpdateUserIdentity(context.Context, *UpdateUserIdentityRequest) (*RPCSuccess, error) { func (*UnimplementedUserIdentityServiceServer) UpdateUserIdentity(context.Context, *UpdateUserIdentityRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateUserIdentity not implemented") return nil, status.Errorf(codes.Unimplemented, "method UpdateUserIdentity not implemented")
@@ -975,20 +1151,38 @@ func _UserIdentityService_CreateUserIdentity_Handler(srv interface{}, ctx contex
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _UserIdentityService_FindUserEnabledUserIdentityWithType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _UserIdentityService_FindEnabledUserIdentity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindUserEnabledUserIdentityWithTypeRequest) in := new(FindEnabledUserIdentityRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
if interceptor == nil { if interceptor == nil {
return srv.(UserIdentityServiceServer).FindUserEnabledUserIdentityWithType(ctx, in) return srv.(UserIdentityServiceServer).FindEnabledUserIdentity(ctx, in)
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/pb.UserIdentityService/FindUserEnabledUserIdentityWithType", FullMethod: "/pb.UserIdentityService/FindEnabledUserIdentity",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserIdentityServiceServer).FindUserEnabledUserIdentityWithType(ctx, req.(*FindUserEnabledUserIdentityWithTypeRequest)) return srv.(UserIdentityServiceServer).FindEnabledUserIdentity(ctx, req.(*FindEnabledUserIdentityRequest))
}
return interceptor(ctx, in, info, handler)
}
func _UserIdentityService_FindEnabledUserIdentityWithOrgType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindEnabledUserIdentityWithOrgTypeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserIdentityServiceServer).FindEnabledUserIdentityWithOrgType(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.UserIdentityService/FindEnabledUserIdentityWithOrgType",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserIdentityServiceServer).FindEnabledUserIdentityWithOrgType(ctx, req.(*FindEnabledUserIdentityWithOrgTypeRequest))
} }
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
@@ -1092,8 +1286,12 @@ var _UserIdentityService_serviceDesc = grpc.ServiceDesc{
Handler: _UserIdentityService_CreateUserIdentity_Handler, Handler: _UserIdentityService_CreateUserIdentity_Handler,
}, },
{ {
MethodName: "findUserEnabledUserIdentityWithType", MethodName: "findEnabledUserIdentity",
Handler: _UserIdentityService_FindUserEnabledUserIdentityWithType_Handler, Handler: _UserIdentityService_FindEnabledUserIdentity_Handler,
},
{
MethodName: "findEnabledUserIdentityWithOrgType",
Handler: _UserIdentityService_FindEnabledUserIdentityWithOrgType_Handler,
}, },
{ {
MethodName: "updateUserIdentity", MethodName: "updateUserIdentity",

View File

@@ -9,4 +9,6 @@ message File {
int64 size = 3; int64 size = 3;
int64 createdAt = 4; int64 createdAt = 4;
bool isPublic = 5; bool isPublic = 5;
string mimeType = 6;
string type = 7;
} }

View File

@@ -5,14 +5,16 @@ package pb;
message UserIdentity { message UserIdentity {
int64 id = 1; int64 id = 1;
string type = 2; string orgType = 2;
string realName = 3; string type = 3;
string number = 4; string realName = 4;
repeated int64 fileIds = 5; string number = 5;
string status = 6; repeated int64 fileIds = 6;
int64 createdAt = 7; string status = 7;
int64 updatedAt = 8; int64 createdAt = 8;
int64 submittedAt = 9; int64 updatedAt = 9;
int64 rejectedAt = 10; int64 submittedAt = 10;
int64 verifiedAt = 11; int64 rejectedAt = 11;
int64 verifiedAt = 12;
string rejectedReason = 13;
} }

View File

@@ -32,6 +32,8 @@ message CreateFileRequest {
string filename = 1; string filename = 1;
int64 size = 2; int64 size = 2;
bool isPublic = 3; bool isPublic = 3;
string mimeType = 4;
string type = 5;
} }
message CreateFileResponse { message CreateFileResponse {

View File

@@ -11,8 +11,11 @@ service UserIdentityService {
// 创建身份认证信息 // 创建身份认证信息
rpc createUserIdentity(CreateUserIdentityRequest) returns (CreateUserIdentityResponse); rpc createUserIdentity(CreateUserIdentityRequest) returns (CreateUserIdentityResponse);
// 查找单个身份认证信息
rpc findEnabledUserIdentity(FindEnabledUserIdentityRequest) returns (FindEnabledUserIdentityResponse);
// 查看某个类型的身份认证信息 // 查看某个类型的身份认证信息
rpc findUserEnabledUserIdentityWithType(FindUserEnabledUserIdentityWithTypeRequest) returns (FindUserEnabledUserIdentityWithTypeResponse); rpc findEnabledUserIdentityWithOrgType(FindEnabledUserIdentityWithOrgTypeRequest) returns (FindEnabledUserIdentityWithOrgTypeResponse);
// 修改身份认证信息 // 修改身份认证信息
rpc updateUserIdentity(UpdateUserIdentityRequest) returns (RPCSuccess); rpc updateUserIdentity(UpdateUserIdentityRequest) returns (RPCSuccess);
@@ -32,23 +35,33 @@ service UserIdentityService {
// 创建身份认证信息 // 创建身份认证信息
message CreateUserIdentityRequest { message CreateUserIdentityRequest {
string type = 1; string orgType = 1;
string realName = 2; string type = 2;
string number = 3; string realName = 3;
repeated int64 fileIds = 4; string number = 4;
repeated int64 fileIds = 5;
} }
message CreateUserIdentityResponse { message CreateUserIdentityResponse {
int64 userIdentityId = 1; int64 userIdentityId = 1;
} }
// 查看某个类型的身份认证信息 // 查找单个身份认证信息
message FindUserEnabledUserIdentityWithTypeRequest { message FindEnabledUserIdentityRequest {
int64 userId = 1; // 用户端不需要设置此参数 int64 userIdentityId = 1;
string type = 2; // 类型
} }
message FindUserEnabledUserIdentityWithTypeResponse { message FindEnabledUserIdentityResponse {
UserIdentity userIdentity = 1;
}
// 查看某个类型的身份认证信息
message FindEnabledUserIdentityWithOrgTypeRequest {
int64 userId = 1; // 用户端不需要设置此参数
string orgType = 2; // 阻止类型
}
message FindEnabledUserIdentityWithOrgTypeResponse {
UserIdentity userIdentity = 1; UserIdentity userIdentity = 1;
} }
@@ -74,6 +87,7 @@ message CancelUserIdentityRequest {
// 拒绝用户身份认证信息 // 拒绝用户身份认证信息
message RejectUserIdentityRequest { message RejectUserIdentityRequest {
int64 userIdentityId = 1; int64 userIdentityId = 1;
string reason = 2;
} }
// 通过用户身份认证信息 // 通过用户身份认证信息

View File

@@ -2,6 +2,8 @@
package userconfigs package userconfigs
// 认证状态
type UserIdentityStatus = string type UserIdentityStatus = string
const ( const (
@@ -11,8 +13,20 @@ const (
UserIdentityStatusVerified UserIdentityStatus = "verified" UserIdentityStatusVerified UserIdentityStatus = "verified"
) )
// 认证类型
type UserIdentityType = string type UserIdentityType = string
const ( const (
UserIdentityTypeIDCard UserIdentityType = "idCard" UserIdentityTypeIDCard UserIdentityType = "idCard"
UserIdentityTypeEnterpriseLicense UserIdentityType = "enterpriseLicense"
)
// 组织类型
type UserIdentityOrgType = string
const (
UserIdentityOrgTypeEnterprise UserIdentityOrgType = "enterprise"
UserIdentityOrgTypeIndividual UserIdentityOrgType = "individual"
) )