online_service

package
v2.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_protobuf_service_online_service_f3s_proto protoreflect.FileDescriptor

Functions

func RegisterOperatorOnlineServiceF3SServer

func RegisterOperatorOnlineServiceF3SServer(s *grpc.Server, srv OperatorOnlineServiceF3SServer)

Types

type F3SDeployClientRequest

type F3SDeployClientRequest struct {
	ServiceId uint64              `protobuf:"varint,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	Token     string              `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	PartyInfo *protobuf.PartyInfo `protobuf:"bytes,3,opt,name=party_info,json=partyInfo,proto3" json:"party_info,omitempty"`
	// contains filtered or unexported fields
}

func (*F3SDeployClientRequest) Descriptor deprecated

func (*F3SDeployClientRequest) Descriptor() ([]byte, []int)

Deprecated: Use F3SDeployClientRequest.ProtoReflect.Descriptor instead.

func (*F3SDeployClientRequest) GetPartyInfo

func (x *F3SDeployClientRequest) GetPartyInfo() *protobuf.PartyInfo

func (*F3SDeployClientRequest) GetServiceId

func (x *F3SDeployClientRequest) GetServiceId() uint64

func (*F3SDeployClientRequest) GetToken

func (x *F3SDeployClientRequest) GetToken() string

func (*F3SDeployClientRequest) ProtoMessage

func (*F3SDeployClientRequest) ProtoMessage()

func (*F3SDeployClientRequest) ProtoReflect

func (x *F3SDeployClientRequest) ProtoReflect() protoreflect.Message

func (*F3SDeployClientRequest) Reset

func (x *F3SDeployClientRequest) Reset()

func (*F3SDeployClientRequest) String

func (x *F3SDeployClientRequest) String() string

type F3SDeployResponse

type F3SDeployResponse struct {
	ServiceId uint64 `protobuf:"varint,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// 桶总数,deploy完成返回;存于PartyKnowledge的context字段中
	BucketNum uint64 `protobuf:"varint,2,opt,name=bucket_num,json=bucketNum,proto3" json:"bucket_num,omitempty"`
	// contains filtered or unexported fields
}

func (*F3SDeployResponse) Descriptor deprecated

func (*F3SDeployResponse) Descriptor() ([]byte, []int)

Deprecated: Use F3SDeployResponse.ProtoReflect.Descriptor instead.

func (*F3SDeployResponse) GetBucketNum

func (x *F3SDeployResponse) GetBucketNum() uint64

func (*F3SDeployResponse) GetServiceId

func (x *F3SDeployResponse) GetServiceId() uint64

func (*F3SDeployResponse) ProtoMessage

func (*F3SDeployResponse) ProtoMessage()

func (*F3SDeployResponse) ProtoReflect

func (x *F3SDeployResponse) ProtoReflect() protoreflect.Message

func (*F3SDeployResponse) Reset

func (x *F3SDeployResponse) Reset()

func (*F3SDeployResponse) String

func (x *F3SDeployResponse) String() string

type F3SDeployServerRequest

type F3SDeployServerRequest struct {
	ServiceId uint64 `protobuf:"varint,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// 原始数据路径 e.g. db1.bank_0109
	OriginData *infra_adapter.DataLocation `protobuf:"bytes,2,opt,name=origin_data,json=originData,proto3" json:"origin_data,omitempty"`
	// 预处理后可存放的数据路径  e.g. sudo_output.bank_0109
	OutputData *infra_adapter.DataLocation `protobuf:"bytes,3,opt,name=output_data,json=outputData,proto3" json:"output_data,omitempty"`
	// 匹配列
	KeyColumns []string `protobuf:"bytes,4,rep,name=key_columns,json=keyColumns,proto3" json:"key_columns,omitempty"`
	// 不可区分度
	IndiscernibilityDegree uint64 `` /* 128-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*F3SDeployServerRequest) Descriptor deprecated

func (*F3SDeployServerRequest) Descriptor() ([]byte, []int)

Deprecated: Use F3SDeployServerRequest.ProtoReflect.Descriptor instead.

func (*F3SDeployServerRequest) GetIndiscernibilityDegree

func (x *F3SDeployServerRequest) GetIndiscernibilityDegree() uint64

func (*F3SDeployServerRequest) GetKeyColumns

func (x *F3SDeployServerRequest) GetKeyColumns() []string

func (*F3SDeployServerRequest) GetOriginData

func (*F3SDeployServerRequest) GetOutputData

func (*F3SDeployServerRequest) GetServiceId

func (x *F3SDeployServerRequest) GetServiceId() uint64

func (*F3SDeployServerRequest) ProtoMessage

func (*F3SDeployServerRequest) ProtoMessage()

func (*F3SDeployServerRequest) ProtoReflect

func (x *F3SDeployServerRequest) ProtoReflect() protoreflect.Message

func (*F3SDeployServerRequest) Reset

func (x *F3SDeployServerRequest) Reset()

func (*F3SDeployServerRequest) String

func (x *F3SDeployServerRequest) String() string

type F3SRequest

type F3SRequest struct {
	ServiceId uint64                 `protobuf:"varint,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	Token     string                 `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	Knowledge *PartyKnowledge        `protobuf:"bytes,3,opt,name=knowledge,proto3" json:"knowledge,omitempty"`
	Params    []*Factor3SVerifyParam `protobuf:"bytes,4,rep,name=params,proto3" json:"params,omitempty"`
	DataMode  enums.DataMode         `` /* 128-byte string literal not displayed */
	RequestId string                 `protobuf:"bytes,6,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

func (*F3SRequest) Descriptor deprecated

func (*F3SRequest) Descriptor() ([]byte, []int)

Deprecated: Use F3SRequest.ProtoReflect.Descriptor instead.

func (*F3SRequest) GetDataMode

func (x *F3SRequest) GetDataMode() enums.DataMode

func (*F3SRequest) GetKnowledge

func (x *F3SRequest) GetKnowledge() *PartyKnowledge

func (*F3SRequest) GetParams

func (x *F3SRequest) GetParams() []*Factor3SVerifyParam

func (*F3SRequest) GetRequestId

func (x *F3SRequest) GetRequestId() string

func (*F3SRequest) GetServiceId

func (x *F3SRequest) GetServiceId() uint64

func (*F3SRequest) GetToken

func (x *F3SRequest) GetToken() string

func (*F3SRequest) ProtoMessage

func (*F3SRequest) ProtoMessage()

func (*F3SRequest) ProtoReflect

func (x *F3SRequest) ProtoReflect() protoreflect.Message

func (*F3SRequest) Reset

func (x *F3SRequest) Reset()

func (*F3SRequest) String

func (x *F3SRequest) String() string

type F3SResponse

type F3SResponse struct {
	Results []*Factor3SVerifyResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*F3SResponse) Descriptor deprecated

func (*F3SResponse) Descriptor() ([]byte, []int)

Deprecated: Use F3SResponse.ProtoReflect.Descriptor instead.

func (*F3SResponse) GetResults

func (x *F3SResponse) GetResults() []*Factor3SVerifyResult

func (*F3SResponse) ProtoMessage

func (*F3SResponse) ProtoMessage()

func (*F3SResponse) ProtoReflect

func (x *F3SResponse) ProtoReflect() protoreflect.Message

func (*F3SResponse) Reset

func (x *F3SResponse) Reset()

func (*F3SResponse) String

func (x *F3SResponse) String() string

type Factor3SVerifyParam

type Factor3SVerifyParam struct {
	PhoneMd5 string `protobuf:"bytes,1,opt,name=phone_md5,json=phoneMd5,proto3" json:"phone_md5,omitempty"`
	IdMd5    string `protobuf:"bytes,2,opt,name=id_md5,json=idMd5,proto3" json:"id_md5,omitempty"`
	NameMd5  string `protobuf:"bytes,3,opt,name=name_md5,json=nameMd5,proto3" json:"name_md5,omitempty"`
	// contains filtered or unexported fields
}

func (*Factor3SVerifyParam) Descriptor deprecated

func (*Factor3SVerifyParam) Descriptor() ([]byte, []int)

Deprecated: Use Factor3SVerifyParam.ProtoReflect.Descriptor instead.

func (*Factor3SVerifyParam) GetIdMd5

func (x *Factor3SVerifyParam) GetIdMd5() string

func (*Factor3SVerifyParam) GetNameMd5

func (x *Factor3SVerifyParam) GetNameMd5() string

func (*Factor3SVerifyParam) GetPhoneMd5

func (x *Factor3SVerifyParam) GetPhoneMd5() string

func (*Factor3SVerifyParam) ProtoMessage

func (*Factor3SVerifyParam) ProtoMessage()

func (*Factor3SVerifyParam) ProtoReflect

func (x *Factor3SVerifyParam) ProtoReflect() protoreflect.Message

func (*Factor3SVerifyParam) Reset

func (x *Factor3SVerifyParam) Reset()

func (*Factor3SVerifyParam) String

func (x *Factor3SVerifyParam) String() string

type Factor3SVerifyRequest

type Factor3SVerifyRequest struct {
	PhoneMd5 string `protobuf:"bytes,1,opt,name=phoneMd5,proto3" json:"phoneMd5,omitempty"`              // 手机号md5,必填
	IdMd5    string `protobuf:"bytes,2,opt,name=idMd5,proto3" json:"idMd5,omitempty"`                    // 身份证md5
	NameMd5  string `protobuf:"bytes,3,opt,name=nameMd5,proto3" json:"nameMd5,omitempty"`                // 姓名md5
	Prefix   uint64 `protobuf:"varint,4,opt,name=prefix,proto3" json:"prefix,omitempty"`                 // 手机号前三位
	SubPath  string `protobuf:"bytes,5,opt,name=sub_path,json=subPath,proto3" json:"sub_path,omitempty"` // 三要素核验在线服务子路径
	// contains filtered or unexported fields
}

三要素核验查询 (用于前端与paas后端)

func (*Factor3SVerifyRequest) Descriptor deprecated

func (*Factor3SVerifyRequest) Descriptor() ([]byte, []int)

Deprecated: Use Factor3SVerifyRequest.ProtoReflect.Descriptor instead.

func (*Factor3SVerifyRequest) GetIdMd5

func (x *Factor3SVerifyRequest) GetIdMd5() string

func (*Factor3SVerifyRequest) GetNameMd5

func (x *Factor3SVerifyRequest) GetNameMd5() string

func (*Factor3SVerifyRequest) GetPhoneMd5

func (x *Factor3SVerifyRequest) GetPhoneMd5() string

func (*Factor3SVerifyRequest) GetPrefix

func (x *Factor3SVerifyRequest) GetPrefix() uint64

func (*Factor3SVerifyRequest) GetSubPath

func (x *Factor3SVerifyRequest) GetSubPath() string

func (*Factor3SVerifyRequest) ProtoMessage

func (*Factor3SVerifyRequest) ProtoMessage()

func (*Factor3SVerifyRequest) ProtoReflect

func (x *Factor3SVerifyRequest) ProtoReflect() protoreflect.Message

func (*Factor3SVerifyRequest) Reset

func (x *Factor3SVerifyRequest) Reset()

func (*Factor3SVerifyRequest) String

func (x *Factor3SVerifyRequest) String() string

type Factor3SVerifyResponse

type Factor3SVerifyResponse struct {
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // 返回结果码,有返回码对照表一一对应
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`   // 返回错误描述,有返回码对照表一一对应
	// 可为空
	// 00: 手机号、证件号、姓名均一致
	// 01: 手机号一致,证件号和姓名不一致
	// 02: 手机号和证件号一致,姓名不一致
	// 03: 手机号和姓名一致,证件号不一致
	// 04: 其他不一致
	// 09: 手机号未查得
	// 97: 当前运营商侧针对本银行三要素核验功能关闭
	// 98: 银行测关闭三要素核验功能
	// 99: 计费中心网络故障
	CheckResult string `protobuf:"bytes,3,opt,name=checkResult,proto3" json:"checkResult,omitempty"`
	// contains filtered or unexported fields
}

三要素核验结果样例 { "code":"00", "errorDesc":"请求成功", "checkResult":"00" }

func (*Factor3SVerifyResponse) Descriptor deprecated

func (*Factor3SVerifyResponse) Descriptor() ([]byte, []int)

Deprecated: Use Factor3SVerifyResponse.ProtoReflect.Descriptor instead.

func (*Factor3SVerifyResponse) GetCheckResult

func (x *Factor3SVerifyResponse) GetCheckResult() string

func (*Factor3SVerifyResponse) GetCode

func (x *Factor3SVerifyResponse) GetCode() string

func (*Factor3SVerifyResponse) GetMsg

func (x *Factor3SVerifyResponse) GetMsg() string

func (*Factor3SVerifyResponse) ProtoMessage

func (*Factor3SVerifyResponse) ProtoMessage()

func (*Factor3SVerifyResponse) ProtoReflect

func (x *Factor3SVerifyResponse) ProtoReflect() protoreflect.Message

func (*Factor3SVerifyResponse) Reset

func (x *Factor3SVerifyResponse) Reset()

func (*Factor3SVerifyResponse) String

func (x *Factor3SVerifyResponse) String() string

type Factor3SVerifyResult

type Factor3SVerifyResult struct {

	// 0:  手机号、证件号、姓名均一致
	// 1:  手机号一致,证件号和姓名不一致
	// 2:  手机号和证件号一致,姓名不一致
	// 3:  手机号和姓名一致,证件号不一致
	// 4:  其他不一致
	// 9:  手机号未查得
	// 97: 当前运营商侧针对本银行三要素核验功能关闭(算子侧不会返回该错误码)
	// 98: 银行侧关闭三要素核验功能
	// 99: 计费中心网络故障
	Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*Factor3SVerifyResult) Descriptor deprecated

func (*Factor3SVerifyResult) Descriptor() ([]byte, []int)

Deprecated: Use Factor3SVerifyResult.ProtoReflect.Descriptor instead.

func (*Factor3SVerifyResult) GetCode

func (x *Factor3SVerifyResult) GetCode() uint32

func (*Factor3SVerifyResult) ProtoMessage

func (*Factor3SVerifyResult) ProtoMessage()

func (*Factor3SVerifyResult) ProtoReflect

func (x *Factor3SVerifyResult) ProtoReflect() protoreflect.Message

func (*Factor3SVerifyResult) Reset

func (x *Factor3SVerifyResult) Reset()

func (*Factor3SVerifyResult) String

func (x *Factor3SVerifyResult) String() string

type OperatorOnlineServiceF3SClient

type OperatorOnlineServiceF3SClient interface {
	// 部署server端
	F3SDeployServer(ctx context.Context, in *F3SDeployServerRequest, opts ...grpc.CallOption) (*F3SDeployResponse, error)
	// F3S
	F3S(ctx context.Context, in *F3SRequest, opts ...grpc.CallOption) (*F3SResponse, error)
	// validate token,对于一个client对应同一个server的多个token的情况,不要重复调用deploy,而是校验token即可
	ValidateToken(ctx context.Context, in *service.ValidateTokenRequest, opts ...grpc.CallOption) (*service.ValidateTokenResponse, error)
}

OperatorOnlineServiceF3SClient is the client API for OperatorOnlineServiceF3S service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type OperatorOnlineServiceF3SServer

type OperatorOnlineServiceF3SServer interface {
	// 部署server端
	F3SDeployServer(context.Context, *F3SDeployServerRequest) (*F3SDeployResponse, error)
	// F3S
	F3S(context.Context, *F3SRequest) (*F3SResponse, error)
	// validate token,对于一个client对应同一个server的多个token的情况,不要重复调用deploy,而是校验token即可
	ValidateToken(context.Context, *service.ValidateTokenRequest) (*service.ValidateTokenResponse, error)
}

OperatorOnlineServiceF3SServer is the server API for OperatorOnlineServiceF3S service.

type PartyKnowledge

type PartyKnowledge struct {
	PartyInfo *protobuf.PartyInfo `protobuf:"bytes,1,opt,name=party_info,json=partyInfo,proto3" json:"party_info,omitempty"`
	// 原始数据路径 e.g. db1.bank_0109
	OriginData *infra_adapter.DataLocation `protobuf:"bytes,2,opt,name=origin_data,json=originData,proto3" json:"origin_data,omitempty"`
	// 预处理后可存放的数据路径  e.g. sudo_output.bank_0109
	OutputData *infra_adapter.DataLocation `protobuf:"bytes,3,opt,name=output_data,json=outputData,proto3" json:"output_data,omitempty"`
	// 存放业务属性
	Context map[string]string `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

提供所有这个参与方需要知道的非业务信息

func (*PartyKnowledge) Descriptor deprecated

func (*PartyKnowledge) Descriptor() ([]byte, []int)

Deprecated: Use PartyKnowledge.ProtoReflect.Descriptor instead.

func (*PartyKnowledge) GetContext

func (x *PartyKnowledge) GetContext() map[string]string

func (*PartyKnowledge) GetOriginData

func (x *PartyKnowledge) GetOriginData() *infra_adapter.DataLocation

func (*PartyKnowledge) GetOutputData

func (x *PartyKnowledge) GetOutputData() *infra_adapter.DataLocation

func (*PartyKnowledge) GetPartyInfo

func (x *PartyKnowledge) GetPartyInfo() *protobuf.PartyInfo

func (*PartyKnowledge) ProtoMessage

func (*PartyKnowledge) ProtoMessage()

func (*PartyKnowledge) ProtoReflect

func (x *PartyKnowledge) ProtoReflect() protoreflect.Message

func (*PartyKnowledge) Reset

func (x *PartyKnowledge) Reset()

func (*PartyKnowledge) String

func (x *PartyKnowledge) String() string

type UnimplementedOperatorOnlineServiceF3SServer

type UnimplementedOperatorOnlineServiceF3SServer struct {
}

UnimplementedOperatorOnlineServiceF3SServer can be embedded to have forward compatible implementations.

func (*UnimplementedOperatorOnlineServiceF3SServer) F3S

func (*UnimplementedOperatorOnlineServiceF3SServer) F3SDeployServer

func (*UnimplementedOperatorOnlineServiceF3SServer) ValidateToken

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL