Files
EdgeCommon/pkg/rpc/pb/service_user_identity.pb.go
2022-07-17 10:59:55 +08:00

1122 lines
44 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.19.4
// source: service_user_identity.proto
package pb
import (
context "context"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
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)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// 创建身份认证信息
type CreateUserIdentityRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
RealName string `protobuf:"bytes,2,opt,name=realName,proto3" json:"realName,omitempty"`
Number string `protobuf:"bytes,3,opt,name=number,proto3" json:"number,omitempty"`
FileIds []int64 `protobuf:"varint,4,rep,packed,name=fileIds,proto3" json:"fileIds,omitempty"`
}
func (x *CreateUserIdentityRequest) Reset() {
*x = CreateUserIdentityRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_identity_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateUserIdentityRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateUserIdentityRequest) ProtoMessage() {}
func (x *CreateUserIdentityRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_identity_proto_msgTypes[0]
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 CreateUserIdentityRequest.ProtoReflect.Descriptor instead.
func (*CreateUserIdentityRequest) Descriptor() ([]byte, []int) {
return file_service_user_identity_proto_rawDescGZIP(), []int{0}
}
func (x *CreateUserIdentityRequest) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *CreateUserIdentityRequest) GetRealName() string {
if x != nil {
return x.RealName
}
return ""
}
func (x *CreateUserIdentityRequest) GetNumber() string {
if x != nil {
return x.Number
}
return ""
}
func (x *CreateUserIdentityRequest) GetFileIds() []int64 {
if x != nil {
return x.FileIds
}
return nil
}
type CreateUserIdentityResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserIdentityId int64 `protobuf:"varint,1,opt,name=userIdentityId,proto3" json:"userIdentityId,omitempty"`
}
func (x *CreateUserIdentityResponse) Reset() {
*x = CreateUserIdentityResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_identity_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateUserIdentityResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateUserIdentityResponse) ProtoMessage() {}
func (x *CreateUserIdentityResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_user_identity_proto_msgTypes[1]
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 CreateUserIdentityResponse.ProtoReflect.Descriptor instead.
func (*CreateUserIdentityResponse) Descriptor() ([]byte, []int) {
return file_service_user_identity_proto_rawDescGZIP(), []int{1}
}
func (x *CreateUserIdentityResponse) GetUserIdentityId() int64 {
if x != nil {
return x.UserIdentityId
}
return 0
}
// 查看某个类型的身份认证信息
type FindUserEnabledUserIdentityWithTypeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户端不需要设置此参数
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // 类型
}
func (x *FindUserEnabledUserIdentityWithTypeRequest) Reset() {
*x = FindUserEnabledUserIdentityWithTypeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_identity_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindUserEnabledUserIdentityWithTypeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindUserEnabledUserIdentityWithTypeRequest) ProtoMessage() {}
func (x *FindUserEnabledUserIdentityWithTypeRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_identity_proto_msgTypes[2]
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 FindUserEnabledUserIdentityWithTypeRequest.ProtoReflect.Descriptor instead.
func (*FindUserEnabledUserIdentityWithTypeRequest) Descriptor() ([]byte, []int) {
return file_service_user_identity_proto_rawDescGZIP(), []int{2}
}
func (x *FindUserEnabledUserIdentityWithTypeRequest) GetUserId() int64 {
if x != nil {
return x.UserId
}
return 0
}
func (x *FindUserEnabledUserIdentityWithTypeRequest) GetType() string {
if x != nil {
return x.Type
}
return ""
}
type FindUserEnabledUserIdentityWithTypeResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserIdentity *UserIdentity `protobuf:"bytes,1,opt,name=userIdentity,proto3" json:"userIdentity,omitempty"`
}
func (x *FindUserEnabledUserIdentityWithTypeResponse) Reset() {
*x = FindUserEnabledUserIdentityWithTypeResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_identity_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindUserEnabledUserIdentityWithTypeResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindUserEnabledUserIdentityWithTypeResponse) ProtoMessage() {}
func (x *FindUserEnabledUserIdentityWithTypeResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_user_identity_proto_msgTypes[3]
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 FindUserEnabledUserIdentityWithTypeResponse.ProtoReflect.Descriptor instead.
func (*FindUserEnabledUserIdentityWithTypeResponse) Descriptor() ([]byte, []int) {
return file_service_user_identity_proto_rawDescGZIP(), []int{3}
}
func (x *FindUserEnabledUserIdentityWithTypeResponse) GetUserIdentity() *UserIdentity {
if x != nil {
return x.UserIdentity
}
return nil
}
// 修改身份认证信息
type UpdateUserIdentityRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserIdentityId int64 `protobuf:"varint,1,opt,name=userIdentityId,proto3" json:"userIdentityId,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
RealName string `protobuf:"bytes,3,opt,name=realName,proto3" json:"realName,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 *UpdateUserIdentityRequest) Reset() {
*x = UpdateUserIdentityRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_identity_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateUserIdentityRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateUserIdentityRequest) ProtoMessage() {}
func (x *UpdateUserIdentityRequest) 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 UpdateUserIdentityRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserIdentityRequest) Descriptor() ([]byte, []int) {
return file_service_user_identity_proto_rawDescGZIP(), []int{4}
}
func (x *UpdateUserIdentityRequest) GetUserIdentityId() int64 {
if x != nil {
return x.UserIdentityId
}
return 0
}
func (x *UpdateUserIdentityRequest) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *UpdateUserIdentityRequest) GetRealName() string {
if x != nil {
return x.RealName
}
return ""
}
func (x *UpdateUserIdentityRequest) GetNumber() string {
if x != nil {
return x.Number
}
return ""
}
func (x *UpdateUserIdentityRequest) GetFileIds() []int64 {
if x != nil {
return x.FileIds
}
return nil
}
// 提交审核身份认证信息
type SubmitUserIdentityRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserIdentityId int64 `protobuf:"varint,1,opt,name=userIdentityId,proto3" json:"userIdentityId,omitempty"`
}
func (x *SubmitUserIdentityRequest) Reset() {
*x = SubmitUserIdentityRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_identity_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SubmitUserIdentityRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SubmitUserIdentityRequest) ProtoMessage() {}
func (x *SubmitUserIdentityRequest) 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 SubmitUserIdentityRequest.ProtoReflect.Descriptor instead.
func (*SubmitUserIdentityRequest) Descriptor() ([]byte, []int) {
return file_service_user_identity_proto_rawDescGZIP(), []int{5}
}
func (x *SubmitUserIdentityRequest) GetUserIdentityId() int64 {
if x != nil {
return x.UserIdentityId
}
return 0
}
// 取消提交身份审核认证信息
type CancelUserIdentityRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserIdentityId int64 `protobuf:"varint,1,opt,name=userIdentityId,proto3" json:"userIdentityId,omitempty"`
}
func (x *CancelUserIdentityRequest) Reset() {
*x = CancelUserIdentityRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_identity_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CancelUserIdentityRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CancelUserIdentityRequest) ProtoMessage() {}
func (x *CancelUserIdentityRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_identity_proto_msgTypes[6]
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 CancelUserIdentityRequest.ProtoReflect.Descriptor instead.
func (*CancelUserIdentityRequest) Descriptor() ([]byte, []int) {
return file_service_user_identity_proto_rawDescGZIP(), []int{6}
}
func (x *CancelUserIdentityRequest) GetUserIdentityId() int64 {
if x != nil {
return x.UserIdentityId
}
return 0
}
// 拒绝用户身份认证信息
type RejectUserIdentityRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserIdentityId int64 `protobuf:"varint,1,opt,name=userIdentityId,proto3" json:"userIdentityId,omitempty"`
}
func (x *RejectUserIdentityRequest) Reset() {
*x = RejectUserIdentityRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_identity_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RejectUserIdentityRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RejectUserIdentityRequest) ProtoMessage() {}
func (x *RejectUserIdentityRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_identity_proto_msgTypes[7]
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 RejectUserIdentityRequest.ProtoReflect.Descriptor instead.
func (*RejectUserIdentityRequest) Descriptor() ([]byte, []int) {
return file_service_user_identity_proto_rawDescGZIP(), []int{7}
}
func (x *RejectUserIdentityRequest) GetUserIdentityId() int64 {
if x != nil {
return x.UserIdentityId
}
return 0
}
// 通过用户身份认证信息
type VerifyUserIdentityRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserIdentityId int64 `protobuf:"varint,1,opt,name=userIdentityId,proto3" json:"userIdentityId,omitempty"`
}
func (x *VerifyUserIdentityRequest) Reset() {
*x = VerifyUserIdentityRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_identity_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *VerifyUserIdentityRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VerifyUserIdentityRequest) ProtoMessage() {}
func (x *VerifyUserIdentityRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_identity_proto_msgTypes[8]
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 VerifyUserIdentityRequest.ProtoReflect.Descriptor instead.
func (*VerifyUserIdentityRequest) Descriptor() ([]byte, []int) {
return file_service_user_identity_proto_rawDescGZIP(), []int{8}
}
func (x *VerifyUserIdentityRequest) GetUserIdentityId() int64 {
if x != nil {
return x.UserIdentityId
}
return 0
}
var File_service_user_identity_proto protoreflect.FileDescriptor
var file_service_user_identity_proto_rawDesc = []byte{
0x0a, 0x1b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69,
0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70,
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,
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,
0x0a, 0x19, 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, 0x12, 0x12, 0x0a, 0x04, 0x74,
0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
0x1a, 0x0a, 0x08, 0x72, 0x65, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x08, 0x72, 0x65, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e,
0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x75, 0x6d,
0x62, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x18, 0x04,
0x20, 0x03, 0x28, 0x03, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x22, 0x44, 0x0a,
0x1a, 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, 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, 0x22, 0x58, 0x0a, 0x2a, 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, 0x71, 0x75, 0x65, 0x73,
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,
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, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08,
0x72, 0x65, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
0x72, 0x65, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62,
0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72,
0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28,
0x03, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x22, 0x43, 0x0a, 0x19, 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, 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, 0x22,
0x43, 0x0a, 0x19, 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, 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, 0x22, 0x43, 0x0a, 0x19, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 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, 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, 0xcc,
0x04, 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, 0x86, 0x01, 0x0a, 0x23,
0x66, 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, 0x12, 0x2e, 0x2e, 0x70, 0x62, 0x2e, 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, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x70, 0x62, 0x2e, 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, 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, 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, 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,
0x74, 0x69, 0x74, 0x79, 0x12, 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, 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,
0x72, 0x49, 0x64, 0x65, 0x6e, 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, 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,
0x66, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1d,
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 (
file_service_user_identity_proto_rawDescOnce sync.Once
file_service_user_identity_proto_rawDescData = file_service_user_identity_proto_rawDesc
)
func file_service_user_identity_proto_rawDescGZIP() []byte {
file_service_user_identity_proto_rawDescOnce.Do(func() {
file_service_user_identity_proto_rawDescData = protoimpl.X.CompressGZIP(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_goTypes = []interface{}{
(*CreateUserIdentityRequest)(nil), // 0: pb.CreateUserIdentityRequest
(*CreateUserIdentityResponse)(nil), // 1: pb.CreateUserIdentityResponse
(*FindUserEnabledUserIdentityWithTypeRequest)(nil), // 2: pb.FindUserEnabledUserIdentityWithTypeRequest
(*FindUserEnabledUserIdentityWithTypeResponse)(nil), // 3: pb.FindUserEnabledUserIdentityWithTypeResponse
(*UpdateUserIdentityRequest)(nil), // 4: pb.UpdateUserIdentityRequest
(*SubmitUserIdentityRequest)(nil), // 5: pb.SubmitUserIdentityRequest
(*CancelUserIdentityRequest)(nil), // 6: pb.CancelUserIdentityRequest
(*RejectUserIdentityRequest)(nil), // 7: pb.RejectUserIdentityRequest
(*VerifyUserIdentityRequest)(nil), // 8: pb.VerifyUserIdentityRequest
(*UserIdentity)(nil), // 9: pb.UserIdentity
(*RPCSuccess)(nil), // 10: pb.RPCSuccess
}
var file_service_user_identity_proto_depIdxs = []int32{
9, // 0: pb.FindUserEnabledUserIdentityWithTypeResponse.userIdentity:type_name -> pb.UserIdentity
0, // 1: pb.UserIdentityService.createUserIdentity:input_type -> pb.CreateUserIdentityRequest
2, // 2: pb.UserIdentityService.findUserEnabledUserIdentityWithType:input_type -> pb.FindUserEnabledUserIdentityWithTypeRequest
4, // 3: pb.UserIdentityService.updateUserIdentity:input_type -> pb.UpdateUserIdentityRequest
5, // 4: pb.UserIdentityService.submitUserIdentity:input_type -> pb.SubmitUserIdentityRequest
6, // 5: pb.UserIdentityService.cancelUserIdentity:input_type -> pb.CancelUserIdentityRequest
7, // 6: pb.UserIdentityService.rejectUserIdentity:input_type -> pb.RejectUserIdentityRequest
8, // 7: pb.UserIdentityService.verifyUserIdentity:input_type -> pb.VerifyUserIdentityRequest
1, // 8: pb.UserIdentityService.createUserIdentity:output_type -> pb.CreateUserIdentityResponse
3, // 9: pb.UserIdentityService.findUserEnabledUserIdentityWithType:output_type -> pb.FindUserEnabledUserIdentityWithTypeResponse
10, // 10: pb.UserIdentityService.updateUserIdentity:output_type -> pb.RPCSuccess
10, // 11: pb.UserIdentityService.submitUserIdentity:output_type -> pb.RPCSuccess
10, // 12: pb.UserIdentityService.cancelUserIdentity:output_type -> pb.RPCSuccess
10, // 13: pb.UserIdentityService.rejectUserIdentity:output_type -> pb.RPCSuccess
10, // 14: pb.UserIdentityService.verifyUserIdentity:output_type -> pb.RPCSuccess
8, // [8:15] is the sub-list for method output_type
1, // [1:8] 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_service_user_identity_proto_init() }
func file_service_user_identity_proto_init() {
if File_service_user_identity_proto != nil {
return
}
file_models_model_user_identity_proto_init()
file_models_rpc_messages_proto_init()
if !protoimpl.UnsafeEnabled {
file_service_user_identity_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateUserIdentityRequest); 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[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateUserIdentityResponse); 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[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindUserEnabledUserIdentityWithTypeRequest); 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[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindUserEnabledUserIdentityWithTypeResponse); 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[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateUserIdentityRequest); 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[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SubmitUserIdentityRequest); 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[6].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[7].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[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*VerifyUserIdentityRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_service_user_identity_proto_rawDesc,
NumEnums: 0,
NumMessages: 9,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_service_user_identity_proto_goTypes,
DependencyIndexes: file_service_user_identity_proto_depIdxs,
MessageInfos: file_service_user_identity_proto_msgTypes,
}.Build()
File_service_user_identity_proto = out.File
file_service_user_identity_proto_rawDesc = nil
file_service_user_identity_proto_goTypes = nil
file_service_user_identity_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// UserIdentityServiceClient is the client API for UserIdentityService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type UserIdentityServiceClient interface {
// 创建身份认证信息
CreateUserIdentity(ctx context.Context, in *CreateUserIdentityRequest, opts ...grpc.CallOption) (*CreateUserIdentityResponse, error)
// 查看某个类型的身份认证信息
FindUserEnabledUserIdentityWithType(ctx context.Context, in *FindUserEnabledUserIdentityWithTypeRequest, opts ...grpc.CallOption) (*FindUserEnabledUserIdentityWithTypeResponse, error)
// 修改身份认证信息
UpdateUserIdentity(ctx context.Context, in *UpdateUserIdentityRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 提交审核身份认证信息
SubmitUserIdentity(ctx context.Context, in *SubmitUserIdentityRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 取消提交身份审核认证信息
CancelUserIdentity(ctx context.Context, in *CancelUserIdentityRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 拒绝用户身份认证信息
RejectUserIdentity(ctx context.Context, in *RejectUserIdentityRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 通过用户身份认证信息
VerifyUserIdentity(ctx context.Context, in *VerifyUserIdentityRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
}
type userIdentityServiceClient struct {
cc grpc.ClientConnInterface
}
func NewUserIdentityServiceClient(cc grpc.ClientConnInterface) UserIdentityServiceClient {
return &userIdentityServiceClient{cc}
}
func (c *userIdentityServiceClient) CreateUserIdentity(ctx context.Context, in *CreateUserIdentityRequest, opts ...grpc.CallOption) (*CreateUserIdentityResponse, error) {
out := new(CreateUserIdentityResponse)
err := c.cc.Invoke(ctx, "/pb.UserIdentityService/createUserIdentity", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *userIdentityServiceClient) FindUserEnabledUserIdentityWithType(ctx context.Context, in *FindUserEnabledUserIdentityWithTypeRequest, opts ...grpc.CallOption) (*FindUserEnabledUserIdentityWithTypeResponse, error) {
out := new(FindUserEnabledUserIdentityWithTypeResponse)
err := c.cc.Invoke(ctx, "/pb.UserIdentityService/findUserEnabledUserIdentityWithType", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *userIdentityServiceClient) UpdateUserIdentity(ctx context.Context, in *UpdateUserIdentityRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.UserIdentityService/updateUserIdentity", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *userIdentityServiceClient) SubmitUserIdentity(ctx context.Context, in *SubmitUserIdentityRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.UserIdentityService/submitUserIdentity", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *userIdentityServiceClient) CancelUserIdentity(ctx context.Context, in *CancelUserIdentityRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.UserIdentityService/cancelUserIdentity", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *userIdentityServiceClient) RejectUserIdentity(ctx context.Context, in *RejectUserIdentityRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.UserIdentityService/rejectUserIdentity", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *userIdentityServiceClient) VerifyUserIdentity(ctx context.Context, in *VerifyUserIdentityRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.UserIdentityService/verifyUserIdentity", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// UserIdentityServiceServer is the server API for UserIdentityService service.
type UserIdentityServiceServer interface {
// 创建身份认证信息
CreateUserIdentity(context.Context, *CreateUserIdentityRequest) (*CreateUserIdentityResponse, error)
// 查看某个类型的身份认证信息
FindUserEnabledUserIdentityWithType(context.Context, *FindUserEnabledUserIdentityWithTypeRequest) (*FindUserEnabledUserIdentityWithTypeResponse, error)
// 修改身份认证信息
UpdateUserIdentity(context.Context, *UpdateUserIdentityRequest) (*RPCSuccess, error)
// 提交审核身份认证信息
SubmitUserIdentity(context.Context, *SubmitUserIdentityRequest) (*RPCSuccess, error)
// 取消提交身份审核认证信息
CancelUserIdentity(context.Context, *CancelUserIdentityRequest) (*RPCSuccess, error)
// 拒绝用户身份认证信息
RejectUserIdentity(context.Context, *RejectUserIdentityRequest) (*RPCSuccess, error)
// 通过用户身份认证信息
VerifyUserIdentity(context.Context, *VerifyUserIdentityRequest) (*RPCSuccess, error)
}
// UnimplementedUserIdentityServiceServer can be embedded to have forward compatible implementations.
type UnimplementedUserIdentityServiceServer struct {
}
func (*UnimplementedUserIdentityServiceServer) CreateUserIdentity(context.Context, *CreateUserIdentityRequest) (*CreateUserIdentityResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateUserIdentity not implemented")
}
func (*UnimplementedUserIdentityServiceServer) FindUserEnabledUserIdentityWithType(context.Context, *FindUserEnabledUserIdentityWithTypeRequest) (*FindUserEnabledUserIdentityWithTypeResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindUserEnabledUserIdentityWithType not implemented")
}
func (*UnimplementedUserIdentityServiceServer) UpdateUserIdentity(context.Context, *UpdateUserIdentityRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateUserIdentity not implemented")
}
func (*UnimplementedUserIdentityServiceServer) SubmitUserIdentity(context.Context, *SubmitUserIdentityRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method SubmitUserIdentity not implemented")
}
func (*UnimplementedUserIdentityServiceServer) CancelUserIdentity(context.Context, *CancelUserIdentityRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method CancelUserIdentity not implemented")
}
func (*UnimplementedUserIdentityServiceServer) RejectUserIdentity(context.Context, *RejectUserIdentityRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method RejectUserIdentity not implemented")
}
func (*UnimplementedUserIdentityServiceServer) VerifyUserIdentity(context.Context, *VerifyUserIdentityRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method VerifyUserIdentity not implemented")
}
func RegisterUserIdentityServiceServer(s *grpc.Server, srv UserIdentityServiceServer) {
s.RegisterService(&_UserIdentityService_serviceDesc, srv)
}
func _UserIdentityService_CreateUserIdentity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateUserIdentityRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserIdentityServiceServer).CreateUserIdentity(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.UserIdentityService/CreateUserIdentity",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserIdentityServiceServer).CreateUserIdentity(ctx, req.(*CreateUserIdentityRequest))
}
return interceptor(ctx, in, info, handler)
}
func _UserIdentityService_FindUserEnabledUserIdentityWithType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindUserEnabledUserIdentityWithTypeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserIdentityServiceServer).FindUserEnabledUserIdentityWithType(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.UserIdentityService/FindUserEnabledUserIdentityWithType",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserIdentityServiceServer).FindUserEnabledUserIdentityWithType(ctx, req.(*FindUserEnabledUserIdentityWithTypeRequest))
}
return interceptor(ctx, in, info, handler)
}
func _UserIdentityService_UpdateUserIdentity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateUserIdentityRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserIdentityServiceServer).UpdateUserIdentity(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.UserIdentityService/UpdateUserIdentity",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserIdentityServiceServer).UpdateUserIdentity(ctx, req.(*UpdateUserIdentityRequest))
}
return interceptor(ctx, in, info, handler)
}
func _UserIdentityService_SubmitUserIdentity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SubmitUserIdentityRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserIdentityServiceServer).SubmitUserIdentity(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.UserIdentityService/SubmitUserIdentity",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserIdentityServiceServer).SubmitUserIdentity(ctx, req.(*SubmitUserIdentityRequest))
}
return interceptor(ctx, in, info, handler)
}
func _UserIdentityService_CancelUserIdentity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CancelUserIdentityRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserIdentityServiceServer).CancelUserIdentity(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.UserIdentityService/CancelUserIdentity",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserIdentityServiceServer).CancelUserIdentity(ctx, req.(*CancelUserIdentityRequest))
}
return interceptor(ctx, in, info, handler)
}
func _UserIdentityService_RejectUserIdentity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RejectUserIdentityRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserIdentityServiceServer).RejectUserIdentity(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.UserIdentityService/RejectUserIdentity",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserIdentityServiceServer).RejectUserIdentity(ctx, req.(*RejectUserIdentityRequest))
}
return interceptor(ctx, in, info, handler)
}
func _UserIdentityService_VerifyUserIdentity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(VerifyUserIdentityRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserIdentityServiceServer).VerifyUserIdentity(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.UserIdentityService/VerifyUserIdentity",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserIdentityServiceServer).VerifyUserIdentity(ctx, req.(*VerifyUserIdentityRequest))
}
return interceptor(ctx, in, info, handler)
}
var _UserIdentityService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.UserIdentityService",
HandlerType: (*UserIdentityServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "createUserIdentity",
Handler: _UserIdentityService_CreateUserIdentity_Handler,
},
{
MethodName: "findUserEnabledUserIdentityWithType",
Handler: _UserIdentityService_FindUserEnabledUserIdentityWithType_Handler,
},
{
MethodName: "updateUserIdentity",
Handler: _UserIdentityService_UpdateUserIdentity_Handler,
},
{
MethodName: "submitUserIdentity",
Handler: _UserIdentityService_SubmitUserIdentity_Handler,
},
{
MethodName: "cancelUserIdentity",
Handler: _UserIdentityService_CancelUserIdentity_Handler,
},
{
MethodName: "rejectUserIdentity",
Handler: _UserIdentityService_RejectUserIdentity_Handler,
},
{
MethodName: "verifyUserIdentity",
Handler: _UserIdentityService_VerifyUserIdentity_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "service_user_identity.proto",
}