rni

package
v0.0.0-...-d044151 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func H5SASSRedirect

func H5SASSRedirect(token, doneUrl, failUrl string) string

Types

type H5SASSResultRequest

type H5SASSResultRequest struct {
	VerifyToken string `json:"verify_token"`
}

H5SASSResultRequest

type H5SASSResultResponse

type H5SASSResultResponse struct {
	Success bool `json:"success"`
	Result  struct {
		IdcardOcrResult struct {
			Name           string `json:"name"`
			Address        string `json:"address"`
			Birthday       string `json:"birthday"`
			IdCardNumber   string `json:"id_card_number"`
			Gender         string `json:"gender"`
			Nation         string `json:"nation"`
			ExpireTime     string `json:"expire_time"`
			IssueAuthority string `json:"issue_authority"`
			IssueTime      string `json:"issue_time"`
		} `json:"idcard_ocr_result"`
		VerifyResult struct {
			LivenessScore float64 `json:"liveness_score"`
			Score         float64 `json:"score"`
			Spoofing      float64 `json:"spoofing"`
		} `json:"verify_result"`
		IdcardConfirm struct {
			Name         string `json:"name"`
			IdcardNumber string `json:"idcard_number"`
		} `json:"idcard_confirm"`
	} `json:"result"`
}

H5SASSResultResponse

type H5SASSTokenRequest

type H5SASSTokenRequest struct {
	PlanId string `json:"plan_id"`
}

H5SASSTokenRequest

type H5SASSTokenResponse

type H5SASSTokenResponse struct {
	Success bool `json:"success"`
	Result  struct {
		VerifyToken string `json:"verify_token"`
	} `json:"result"`
}

H5SASSTokenResponse

type SDK

type SDK struct {
	// contains filtered or unexported fields
}

SDK

func NewSDK

func NewSDK(token string, err error) SDK

func (SDK) H5SASSResult

func (sdk SDK) H5SASSResult(token string) (*H5SASSResultResponse, error)

func (SDK) H5SASSToken

func (sdk SDK) H5SASSToken(planId string) (string, error)

Jump to

Keyboard shortcuts

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