可以重置用户实名认证状态

This commit is contained in:
刘祥超
2022-07-24 10:08:13 +08:00
parent a75e57a8f7
commit 9fdbaf92cc
3 changed files with 3236 additions and 3107 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -29,7 +29,7 @@ const (
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// 创建身份认证信息
// 创建实名认证信息
type CreateUserIdentityRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -156,7 +156,7 @@ func (x *CreateUserIdentityResponse) GetUserIdentityId() int64 {
return 0
}
// 查找单个身份认证信息
// 查找单个实名认证信息
type FindEnabledUserIdentityRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -251,7 +251,7 @@ func (x *FindEnabledUserIdentityResponse) GetUserIdentity() *UserIdentity {
return nil
}
// 查看某个类型的身份认证信息
// 查看某个类型的实名认证信息
type FindEnabledUserIdentityWithOrgTypeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -354,7 +354,7 @@ func (x *FindEnabledUserIdentityWithOrgTypeResponse) GetUserIdentity() *UserIden
return nil
}
// 修改身份认证信息
// 修改实名认证信息
type UpdateUserIdentityRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -434,7 +434,7 @@ func (x *UpdateUserIdentityRequest) GetFileIds() []int64 {
return nil
}
// 提交审核身份认证信息
// 提交审核实名认证信息
type SubmitUserIdentityRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -530,7 +530,55 @@ func (x *CancelUserIdentityRequest) GetUserIdentityId() int64 {
return 0
}
// 拒绝用户身份认证信息
// 重置用户实名认证信息
type ResetUserIdentityRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserIdentityId int64 `protobuf:"varint,1,opt,name=userIdentityId,proto3" json:"userIdentityId,omitempty"`
}
func (x *ResetUserIdentityRequest) Reset() {
*x = ResetUserIdentityRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_identity_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ResetUserIdentityRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResetUserIdentityRequest) ProtoMessage() {}
func (x *ResetUserIdentityRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_identity_proto_msgTypes[9]
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 ResetUserIdentityRequest.ProtoReflect.Descriptor instead.
func (*ResetUserIdentityRequest) Descriptor() ([]byte, []int) {
return file_service_user_identity_proto_rawDescGZIP(), []int{9}
}
func (x *ResetUserIdentityRequest) GetUserIdentityId() int64 {
if x != nil {
return x.UserIdentityId
}
return 0
}
// 拒绝用户实名认证信息
type RejectUserIdentityRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -543,7 +591,7 @@ type RejectUserIdentityRequest struct {
func (x *RejectUserIdentityRequest) Reset() {
*x = RejectUserIdentityRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_identity_proto_msgTypes[9]
mi := &file_service_user_identity_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -556,7 +604,7 @@ func (x *RejectUserIdentityRequest) String() string {
func (*RejectUserIdentityRequest) ProtoMessage() {}
func (x *RejectUserIdentityRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_identity_proto_msgTypes[9]
mi := &file_service_user_identity_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -569,7 +617,7 @@ func (x *RejectUserIdentityRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use RejectUserIdentityRequest.ProtoReflect.Descriptor instead.
func (*RejectUserIdentityRequest) Descriptor() ([]byte, []int) {
return file_service_user_identity_proto_rawDescGZIP(), []int{9}
return file_service_user_identity_proto_rawDescGZIP(), []int{10}
}
func (x *RejectUserIdentityRequest) GetUserIdentityId() int64 {
@@ -586,7 +634,7 @@ func (x *RejectUserIdentityRequest) GetReason() string {
return ""
}
// 通过用户身份认证信息
// 通过用户实名认证信息
type VerifyUserIdentityRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -598,7 +646,7 @@ type VerifyUserIdentityRequest struct {
func (x *VerifyUserIdentityRequest) Reset() {
*x = VerifyUserIdentityRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_identity_proto_msgTypes[10]
mi := &file_service_user_identity_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -611,7 +659,7 @@ func (x *VerifyUserIdentityRequest) String() string {
func (*VerifyUserIdentityRequest) ProtoMessage() {}
func (x *VerifyUserIdentityRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_identity_proto_msgTypes[10]
mi := &file_service_user_identity_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -624,7 +672,7 @@ func (x *VerifyUserIdentityRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use VerifyUserIdentityRequest.ProtoReflect.Descriptor instead.
func (*VerifyUserIdentityRequest) Descriptor() ([]byte, []int) {
return file_service_user_identity_proto_rawDescGZIP(), []int{10}
return file_service_user_identity_proto_rawDescGZIP(), []int{11}
}
func (x *VerifyUserIdentityRequest) GetUserIdentityId() int64 {
@@ -698,61 +746,69 @@ var file_service_user_identity_proto_rawDesc = []byte{
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, 0x5b, 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, 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,
0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x22, 0x42, 0x0a, 0x18, 0x52, 0x65, 0x73, 0x65, 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, 0x5b, 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, 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, 0xf0, 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,
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,
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, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
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, 0x41, 0x0a, 0x11, 0x72, 0x65, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49,
0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x73,
0x65, 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, 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 (
@@ -767,7 +823,7 @@ func file_service_user_identity_proto_rawDescGZIP() []byte {
return file_service_user_identity_proto_rawDescData
}
var file_service_user_identity_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
var file_service_user_identity_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_service_user_identity_proto_goTypes = []interface{}{
(*CreateUserIdentityRequest)(nil), // 0: pb.CreateUserIdentityRequest
(*CreateUserIdentityResponse)(nil), // 1: pb.CreateUserIdentityResponse
@@ -778,32 +834,35 @@ var file_service_user_identity_proto_goTypes = []interface{}{
(*UpdateUserIdentityRequest)(nil), // 6: pb.UpdateUserIdentityRequest
(*SubmitUserIdentityRequest)(nil), // 7: pb.SubmitUserIdentityRequest
(*CancelUserIdentityRequest)(nil), // 8: pb.CancelUserIdentityRequest
(*RejectUserIdentityRequest)(nil), // 9: pb.RejectUserIdentityRequest
(*VerifyUserIdentityRequest)(nil), // 10: pb.VerifyUserIdentityRequest
(*UserIdentity)(nil), // 11: pb.UserIdentity
(*RPCSuccess)(nil), // 12: pb.RPCSuccess
(*ResetUserIdentityRequest)(nil), // 9: pb.ResetUserIdentityRequest
(*RejectUserIdentityRequest)(nil), // 10: pb.RejectUserIdentityRequest
(*VerifyUserIdentityRequest)(nil), // 11: pb.VerifyUserIdentityRequest
(*UserIdentity)(nil), // 12: pb.UserIdentity
(*RPCSuccess)(nil), // 13: pb.RPCSuccess
}
var file_service_user_identity_proto_depIdxs = []int32{
11, // 0: pb.FindEnabledUserIdentityResponse.userIdentity:type_name -> pb.UserIdentity
11, // 1: pb.FindEnabledUserIdentityWithOrgTypeResponse.userIdentity:type_name -> pb.UserIdentity
12, // 0: pb.FindEnabledUserIdentityResponse.userIdentity:type_name -> pb.UserIdentity
12, // 1: pb.FindEnabledUserIdentityWithOrgTypeResponse.userIdentity:type_name -> pb.UserIdentity
0, // 2: pb.UserIdentityService.createUserIdentity:input_type -> pb.CreateUserIdentityRequest
2, // 3: pb.UserIdentityService.findEnabledUserIdentity:input_type -> pb.FindEnabledUserIdentityRequest
4, // 4: pb.UserIdentityService.findEnabledUserIdentityWithOrgType:input_type -> pb.FindEnabledUserIdentityWithOrgTypeRequest
6, // 5: pb.UserIdentityService.updateUserIdentity:input_type -> pb.UpdateUserIdentityRequest
7, // 6: pb.UserIdentityService.submitUserIdentity:input_type -> pb.SubmitUserIdentityRequest
8, // 7: pb.UserIdentityService.cancelUserIdentity:input_type -> pb.CancelUserIdentityRequest
9, // 8: pb.UserIdentityService.rejectUserIdentity:input_type -> pb.RejectUserIdentityRequest
10, // 9: pb.UserIdentityService.verifyUserIdentity:input_type -> pb.VerifyUserIdentityRequest
1, // 10: pb.UserIdentityService.createUserIdentity:output_type -> pb.CreateUserIdentityResponse
3, // 11: pb.UserIdentityService.findEnabledUserIdentity:output_type -> pb.FindEnabledUserIdentityResponse
5, // 12: pb.UserIdentityService.findEnabledUserIdentityWithOrgType:output_type -> pb.FindEnabledUserIdentityWithOrgTypeResponse
12, // 13: pb.UserIdentityService.updateUserIdentity:output_type -> pb.RPCSuccess
12, // 14: pb.UserIdentityService.submitUserIdentity:output_type -> pb.RPCSuccess
12, // 15: pb.UserIdentityService.cancelUserIdentity:output_type -> pb.RPCSuccess
12, // 16: pb.UserIdentityService.rejectUserIdentity:output_type -> pb.RPCSuccess
12, // 17: pb.UserIdentityService.verifyUserIdentity:output_type -> pb.RPCSuccess
10, // [10:18] is the sub-list for method output_type
2, // [2:10] is the sub-list for method input_type
9, // 8: pb.UserIdentityService.resetUserIdentity:input_type -> pb.ResetUserIdentityRequest
10, // 9: pb.UserIdentityService.rejectUserIdentity:input_type -> pb.RejectUserIdentityRequest
11, // 10: pb.UserIdentityService.verifyUserIdentity:input_type -> pb.VerifyUserIdentityRequest
1, // 11: pb.UserIdentityService.createUserIdentity:output_type -> pb.CreateUserIdentityResponse
3, // 12: pb.UserIdentityService.findEnabledUserIdentity:output_type -> pb.FindEnabledUserIdentityResponse
5, // 13: pb.UserIdentityService.findEnabledUserIdentityWithOrgType:output_type -> pb.FindEnabledUserIdentityWithOrgTypeResponse
13, // 14: pb.UserIdentityService.updateUserIdentity:output_type -> pb.RPCSuccess
13, // 15: pb.UserIdentityService.submitUserIdentity:output_type -> pb.RPCSuccess
13, // 16: pb.UserIdentityService.cancelUserIdentity:output_type -> pb.RPCSuccess
13, // 17: pb.UserIdentityService.resetUserIdentity:output_type -> pb.RPCSuccess
13, // 18: pb.UserIdentityService.rejectUserIdentity:output_type -> pb.RPCSuccess
13, // 19: pb.UserIdentityService.verifyUserIdentity:output_type -> pb.RPCSuccess
11, // [11:20] is the sub-list for method output_type
2, // [2:11] 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
@@ -926,7 +985,7 @@ func file_service_user_identity_proto_init() {
}
}
file_service_user_identity_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RejectUserIdentityRequest); i {
switch v := v.(*ResetUserIdentityRequest); i {
case 0:
return &v.state
case 1:
@@ -938,6 +997,18 @@ func file_service_user_identity_proto_init() {
}
}
file_service_user_identity_proto_msgTypes[10].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[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*VerifyUserIdentityRequest); i {
case 0:
return &v.state
@@ -956,7 +1027,7 @@ func file_service_user_identity_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_service_user_identity_proto_rawDesc,
NumEnums: 0,
NumMessages: 11,
NumMessages: 12,
NumExtensions: 0,
NumServices: 1,
},
@@ -982,21 +1053,23 @@ const _ = grpc.SupportPackageIsVersion6
//
// 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)
// 查找单个身份认证信息
// 查找单个实名认证信息
FindEnabledUserIdentity(ctx context.Context, in *FindEnabledUserIdentityRequest, opts ...grpc.CallOption) (*FindEnabledUserIdentityResponse, error)
// 查看某个类型的身份认证信息
// 查看某个类型的实名认证信息
FindEnabledUserIdentityWithOrgType(ctx context.Context, in *FindEnabledUserIdentityWithOrgTypeRequest, opts ...grpc.CallOption) (*FindEnabledUserIdentityWithOrgTypeResponse, 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)
// 拒绝用户身份认证信息
// 重置用户实名认证信息
ResetUserIdentity(ctx context.Context, in *ResetUserIdentityRequest, 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)
}
@@ -1062,6 +1135,15 @@ func (c *userIdentityServiceClient) CancelUserIdentity(ctx context.Context, in *
return out, nil
}
func (c *userIdentityServiceClient) ResetUserIdentity(ctx context.Context, in *ResetUserIdentityRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.UserIdentityService/resetUserIdentity", 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...)
@@ -1082,21 +1164,23 @@ func (c *userIdentityServiceClient) VerifyUserIdentity(ctx context.Context, in *
// UserIdentityServiceServer is the server API for UserIdentityService service.
type UserIdentityServiceServer interface {
// 创建身份认证信息
// 创建实名认证信息
CreateUserIdentity(context.Context, *CreateUserIdentityRequest) (*CreateUserIdentityResponse, error)
// 查找单个身份认证信息
// 查找单个实名认证信息
FindEnabledUserIdentity(context.Context, *FindEnabledUserIdentityRequest) (*FindEnabledUserIdentityResponse, error)
// 查看某个类型的身份认证信息
// 查看某个类型的实名认证信息
FindEnabledUserIdentityWithOrgType(context.Context, *FindEnabledUserIdentityWithOrgTypeRequest) (*FindEnabledUserIdentityWithOrgTypeResponse, error)
// 修改身份认证信息
// 修改实名认证信息
UpdateUserIdentity(context.Context, *UpdateUserIdentityRequest) (*RPCSuccess, error)
// 提交审核身份认证信息
// 提交审核实名认证信息
SubmitUserIdentity(context.Context, *SubmitUserIdentityRequest) (*RPCSuccess, error)
// 取消提交身份审核认证信息
// 取消提交实名审核认证信息
CancelUserIdentity(context.Context, *CancelUserIdentityRequest) (*RPCSuccess, error)
// 拒绝用户身份认证信息
// 重置用户实名认证信息
ResetUserIdentity(context.Context, *ResetUserIdentityRequest) (*RPCSuccess, error)
// 拒绝用户实名认证信息
RejectUserIdentity(context.Context, *RejectUserIdentityRequest) (*RPCSuccess, error)
// 通过用户身份认证信息
// 通过用户实名认证信息
VerifyUserIdentity(context.Context, *VerifyUserIdentityRequest) (*RPCSuccess, error)
}
@@ -1122,6 +1206,9 @@ func (*UnimplementedUserIdentityServiceServer) SubmitUserIdentity(context.Contex
func (*UnimplementedUserIdentityServiceServer) CancelUserIdentity(context.Context, *CancelUserIdentityRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method CancelUserIdentity not implemented")
}
func (*UnimplementedUserIdentityServiceServer) ResetUserIdentity(context.Context, *ResetUserIdentityRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method ResetUserIdentity not implemented")
}
func (*UnimplementedUserIdentityServiceServer) RejectUserIdentity(context.Context, *RejectUserIdentityRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method RejectUserIdentity not implemented")
}
@@ -1241,6 +1328,24 @@ func _UserIdentityService_CancelUserIdentity_Handler(srv interface{}, ctx contex
return interceptor(ctx, in, info, handler)
}
func _UserIdentityService_ResetUserIdentity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ResetUserIdentityRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserIdentityServiceServer).ResetUserIdentity(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.UserIdentityService/ResetUserIdentity",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserIdentityServiceServer).ResetUserIdentity(ctx, req.(*ResetUserIdentityRequest))
}
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 {
@@ -1305,6 +1410,10 @@ var _UserIdentityService_serviceDesc = grpc.ServiceDesc{
MethodName: "cancelUserIdentity",
Handler: _UserIdentityService_CancelUserIdentity_Handler,
},
{
MethodName: "resetUserIdentity",
Handler: _UserIdentityService_ResetUserIdentity_Handler,
},
{
MethodName: "rejectUserIdentity",
Handler: _UserIdentityService_RejectUserIdentity_Handler,

View File

@@ -6,34 +6,37 @@ package pb;
import "models/model_user_identity.proto";
import "models/rpc_messages.proto";
// 用户身份认证服务
// 用户实名认证服务
service UserIdentityService {
// 创建身份认证信息
// 创建实名认证信息
rpc createUserIdentity(CreateUserIdentityRequest) returns (CreateUserIdentityResponse);
// 查找单个身份认证信息
// 查找单个实名认证信息
rpc findEnabledUserIdentity(FindEnabledUserIdentityRequest) returns (FindEnabledUserIdentityResponse);
// 查看某个类型的身份认证信息
// 查看某个类型的实名认证信息
rpc findEnabledUserIdentityWithOrgType(FindEnabledUserIdentityWithOrgTypeRequest) returns (FindEnabledUserIdentityWithOrgTypeResponse);
// 修改身份认证信息
// 修改实名认证信息
rpc updateUserIdentity(UpdateUserIdentityRequest) returns (RPCSuccess);
// 提交审核身份认证信息
// 提交审核实名认证信息
rpc submitUserIdentity(SubmitUserIdentityRequest) returns (RPCSuccess);
// 取消提交身份审核认证信息
// 取消提交实名审核认证信息
rpc cancelUserIdentity(CancelUserIdentityRequest) returns (RPCSuccess);
// 拒绝用户身份认证信息
// 重置用户实名认证信息
rpc resetUserIdentity(ResetUserIdentityRequest) returns (RPCSuccess);
// 拒绝用户实名认证信息
rpc rejectUserIdentity(RejectUserIdentityRequest) returns (RPCSuccess);
// 通过用户身份认证信息
// 通过用户实名认证信息
rpc verifyUserIdentity(VerifyUserIdentityRequest) returns (RPCSuccess);
}
// 创建身份认证信息
// 创建实名认证信息
message CreateUserIdentityRequest {
string orgType = 1;
string type = 2;
@@ -46,7 +49,7 @@ message CreateUserIdentityResponse {
int64 userIdentityId = 1;
}
// 查找单个身份认证信息
// 查找单个实名认证信息
message FindEnabledUserIdentityRequest {
int64 userIdentityId = 1;
}
@@ -55,7 +58,7 @@ message FindEnabledUserIdentityResponse {
UserIdentity userIdentity = 1;
}
// 查看某个类型的身份认证信息
// 查看某个类型的实名认证信息
message FindEnabledUserIdentityWithOrgTypeRequest {
int64 userId = 1; // 用户端不需要设置此参数
string orgType = 2; // 阻止类型
@@ -65,7 +68,7 @@ message FindEnabledUserIdentityWithOrgTypeResponse {
UserIdentity userIdentity = 1;
}
// 修改身份认证信息
// 修改实名认证信息
message UpdateUserIdentityRequest {
int64 userIdentityId = 1;
string type = 2;
@@ -74,7 +77,7 @@ message UpdateUserIdentityRequest {
repeated int64 fileIds = 5;
}
// 提交审核身份认证信息
// 提交审核实名认证信息
message SubmitUserIdentityRequest {
int64 userIdentityId = 1;
}
@@ -84,13 +87,18 @@ message CancelUserIdentityRequest {
int64 userIdentityId = 1;
}
// 拒绝用户身份认证信息
// 重置用户实名认证信息
message ResetUserIdentityRequest {
int64 userIdentityId = 1;
}
// 拒绝用户实名认证信息
message RejectUserIdentityRequest {
int64 userIdentityId = 1;
string reason = 2;
}
// 通过用户身份认证信息
// 通过用户实名认证信息
message VerifyUserIdentityRequest {
int64 userIdentityId = 1;
}