Documentation ¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type APIKey
- type Client
- func (c *Client) FaceRecognition(ctx context.Context, request FaceRecognitionReq) (res FaceRecognitionRes, err error)
- func (c *Client) FaceRegister(ctx context.Context, request FaceRegisterReq) (res FaceRegisterRes, err error)
- func (c *Client) FaceUnregister(ctx context.Context, request FaceUnregisterReq) (res FaceUnregisterRes, err error)
- func (c *Client) FaceVerification(ctx context.Context, request FaceVerificationReq) (res FaceVerificationRes, err error)
- func (c *Client) OCRecognition(ctx context.Context, request OCRInputForm) (res OCRecognitionRes, err error)
- type DocumentEnum
- type FaceAntiSpoofStatus
- func (s *FaceAntiSpoofStatus) Decode(d *jx.Decoder) error
- func (s FaceAntiSpoofStatus) Encode(e *jx.Encoder)
- func (s FaceAntiSpoofStatus) GetFakeCode() OptSpoofStatusEnum
- func (s FaceAntiSpoofStatus) GetFakeScore() OptFloat64
- func (s FaceAntiSpoofStatus) GetFakeType() OptFakeTypeEnum
- func (s FaceAntiSpoofStatus) GetLivenessCompareScores() OptString
- func (s FaceAntiSpoofStatus) GetStatus() OptSpoofStatusEnum
- func (s FaceAntiSpoofStatus) MarshalJSON() ([]byte, error)
- func (s *FaceAntiSpoofStatus) SetFakeCode(val OptSpoofStatusEnum)
- func (s *FaceAntiSpoofStatus) SetFakeScore(val OptFloat64)
- func (s *FaceAntiSpoofStatus) SetFakeType(val OptFakeTypeEnum)
- func (s *FaceAntiSpoofStatus) SetLivenessCompareScores(val OptString)
- func (s *FaceAntiSpoofStatus) SetStatus(val OptSpoofStatusEnum)
- func (s *FaceAntiSpoofStatus) UnmarshalJSON(data []byte) error
- func (s FaceAntiSpoofStatus) Validate() error
- type FaceFeature
- type FaceIDRecognitionInput
- func (s *FaceIDRecognitionInput) Decode(d *jx.Decoder) error
- func (s FaceIDRecognitionInput) Encode(e *jx.Encoder)
- func (s FaceIDRecognitionInput) GetImage() string
- func (s FaceIDRecognitionInput) GetRequestID() string
- func (s FaceIDRecognitionInput) MarshalJSON() ([]byte, error)
- func (s *FaceIDRecognitionInput) SetImage(val string)
- func (s *FaceIDRecognitionInput) SetRequestID(val string)
- func (s *FaceIDRecognitionInput) UnmarshalJSON(data []byte) error
- type FaceIDRecognitionInputForm
- type FaceIDRecognitionResult
- func (s *FaceIDRecognitionResult) Decode(d *jx.Decoder) error
- func (s FaceIDRecognitionResult) Encode(e *jx.Encoder)
- func (s FaceIDRecognitionResult) GetMessage() Message
- func (s FaceIDRecognitionResult) GetRecognitionResult() []FaceRecognitionResult
- func (s FaceIDRecognitionResult) GetRecognitionTime() OptFloat64
- func (s FaceIDRecognitionResult) MarshalJSON() ([]byte, error)
- func (s *FaceIDRecognitionResult) SetMessage(val Message)
- func (s *FaceIDRecognitionResult) SetRecognitionResult(val []FaceRecognitionResult)
- func (s *FaceIDRecognitionResult) SetRecognitionTime(val OptFloat64)
- func (s *FaceIDRecognitionResult) UnmarshalJSON(data []byte) error
- func (s FaceIDRecognitionResult) Validate() error
- type FaceIDRegisterInput
- func (s *FaceIDRegisterInput) Decode(d *jx.Decoder) error
- func (s FaceIDRegisterInput) Encode(e *jx.Encoder)
- func (s FaceIDRegisterInput) GetForce() OptInt
- func (s FaceIDRegisterInput) GetImage() string
- func (s FaceIDRegisterInput) GetPersonName() OptString
- func (s FaceIDRegisterInput) GetUniqueName() string
- func (s FaceIDRegisterInput) MarshalJSON() ([]byte, error)
- func (s *FaceIDRegisterInput) SetForce(val OptInt)
- func (s *FaceIDRegisterInput) SetImage(val string)
- func (s *FaceIDRegisterInput) SetPersonName(val OptString)
- func (s *FaceIDRegisterInput) SetUniqueName(val string)
- func (s *FaceIDRegisterInput) UnmarshalJSON(data []byte) error
- type FaceIDRegisterInputForm
- func (s FaceIDRegisterInputForm) GetForce() OptInt
- func (s FaceIDRegisterInputForm) GetImage() ht.MultipartFile
- func (s FaceIDRegisterInputForm) GetPersonName() OptString
- func (s FaceIDRegisterInputForm) GetUniqueName() string
- func (s *FaceIDRegisterInputForm) SetForce(val OptInt)
- func (s *FaceIDRegisterInputForm) SetImage(val ht.MultipartFile)
- func (s *FaceIDRegisterInputForm) SetPersonName(val OptString)
- func (s *FaceIDRegisterInputForm) SetUniqueName(val string)
- type FaceIDRegisterResult
- func (s *FaceIDRegisterResult) Decode(d *jx.Decoder) error
- func (s FaceIDRegisterResult) Encode(e *jx.Encoder)
- func (s FaceIDRegisterResult) GetFaceCardAngle() OptInt
- func (s FaceIDRegisterResult) GetFaceID() OptInt
- func (s FaceIDRegisterResult) GetFaceLoc() []int
- func (s FaceIDRegisterResult) GetMatchedScore() OptFloat64
- func (s FaceIDRegisterResult) GetMessage() Message
- func (s FaceIDRegisterResult) GetSamePersonThr() OptFloat64
- func (s FaceIDRegisterResult) GetUniqueName() OptString
- func (s FaceIDRegisterResult) MarshalJSON() ([]byte, error)
- func (s *FaceIDRegisterResult) SetFaceCardAngle(val OptInt)
- func (s *FaceIDRegisterResult) SetFaceID(val OptInt)
- func (s *FaceIDRegisterResult) SetFaceLoc(val []int)
- func (s *FaceIDRegisterResult) SetMatchedScore(val OptFloat64)
- func (s *FaceIDRegisterResult) SetMessage(val Message)
- func (s *FaceIDRegisterResult) SetSamePersonThr(val OptFloat64)
- func (s *FaceIDRegisterResult) SetUniqueName(val OptString)
- func (s *FaceIDRegisterResult) UnmarshalJSON(data []byte) error
- func (s FaceIDRegisterResult) Validate() error
- type FaceIDResult
- func (s *FaceIDResult) Decode(d *jx.Decoder) error
- func (s FaceIDResult) Encode(e *jx.Encoder)
- func (s FaceIDResult) GetCompareScore() float64
- func (s FaceIDResult) GetInfo() FaceIDResultInfo
- func (s FaceIDResult) GetPersonName() OptString
- func (s FaceIDResult) GetUniqueName() string
- func (s FaceIDResult) MarshalJSON() ([]byte, error)
- func (s *FaceIDResult) SetCompareScore(val float64)
- func (s *FaceIDResult) SetInfo(val FaceIDResultInfo)
- func (s *FaceIDResult) SetPersonName(val OptString)
- func (s *FaceIDResult) SetUniqueName(val string)
- func (s *FaceIDResult) UnmarshalJSON(data []byte) error
- func (s FaceIDResult) Validate() error
- type FaceIDResultInfo
- type FaceIDVerificationInput
- func (s *FaceIDVerificationInput) Decode(d *jx.Decoder) error
- func (s FaceIDVerificationInput) Encode(e *jx.Encoder)
- func (s FaceIDVerificationInput) GetCheck3RandomPose() OptInt
- func (s FaceIDVerificationInput) GetCheck3StraightPose() OptInt
- func (s FaceIDVerificationInput) GetFakeThreshold() OptFloat64
- func (s FaceIDVerificationInput) GetImageCard() string
- func (s FaceIDVerificationInput) GetImageLive() string
- func (s FaceIDVerificationInput) GetImageLive1() OptString
- func (s FaceIDVerificationInput) GetImageLive2() OptString
- func (s FaceIDVerificationInput) GetImageLive3() OptString
- func (s FaceIDVerificationInput) GetMaskThreshold() OptFloat64
- func (s FaceIDVerificationInput) GetRequestID() string
- func (s FaceIDVerificationInput) GetReturnFeature() OptInt
- func (s FaceIDVerificationInput) GetSimThresholdLevel1() OptFloat64
- func (s FaceIDVerificationInput) GetSimThresholdLevel2() OptFloat64
- func (s FaceIDVerificationInput) MarshalJSON() ([]byte, error)
- func (s *FaceIDVerificationInput) SetCheck3RandomPose(val OptInt)
- func (s *FaceIDVerificationInput) SetCheck3StraightPose(val OptInt)
- func (s *FaceIDVerificationInput) SetFakeThreshold(val OptFloat64)
- func (s *FaceIDVerificationInput) SetImageCard(val string)
- func (s *FaceIDVerificationInput) SetImageLive(val string)
- func (s *FaceIDVerificationInput) SetImageLive1(val OptString)
- func (s *FaceIDVerificationInput) SetImageLive2(val OptString)
- func (s *FaceIDVerificationInput) SetImageLive3(val OptString)
- func (s *FaceIDVerificationInput) SetMaskThreshold(val OptFloat64)
- func (s *FaceIDVerificationInput) SetRequestID(val string)
- func (s *FaceIDVerificationInput) SetReturnFeature(val OptInt)
- func (s *FaceIDVerificationInput) SetSimThresholdLevel1(val OptFloat64)
- func (s *FaceIDVerificationInput) SetSimThresholdLevel2(val OptFloat64)
- func (s *FaceIDVerificationInput) UnmarshalJSON(data []byte) error
- func (s FaceIDVerificationInput) Validate() error
- type FaceIDVerificationInputForm
- func (s FaceIDVerificationInputForm) GetCheck3RandomPose() OptInt
- func (s FaceIDVerificationInputForm) GetCheck3StraightPose() OptInt
- func (s FaceIDVerificationInputForm) GetFakeThreshold() OptFloat64
- func (s FaceIDVerificationInputForm) GetImageCard() ht.MultipartFile
- func (s FaceIDVerificationInputForm) GetImageLive() ht.MultipartFile
- func (s FaceIDVerificationInputForm) GetImageLive1() OptMultipartFile
- func (s FaceIDVerificationInputForm) GetImageLive2() OptMultipartFile
- func (s FaceIDVerificationInputForm) GetImageLive3() OptMultipartFile
- func (s FaceIDVerificationInputForm) GetMaskThreshold() OptFloat64
- func (s FaceIDVerificationInputForm) GetRequestID() string
- func (s FaceIDVerificationInputForm) GetReturnFeature() OptInt
- func (s FaceIDVerificationInputForm) GetSimThresholdLevel1() OptFloat64
- func (s FaceIDVerificationInputForm) GetSimThresholdLevel2() OptFloat64
- func (s *FaceIDVerificationInputForm) SetCheck3RandomPose(val OptInt)
- func (s *FaceIDVerificationInputForm) SetCheck3StraightPose(val OptInt)
- func (s *FaceIDVerificationInputForm) SetFakeThreshold(val OptFloat64)
- func (s *FaceIDVerificationInputForm) SetImageCard(val ht.MultipartFile)
- func (s *FaceIDVerificationInputForm) SetImageLive(val ht.MultipartFile)
- func (s *FaceIDVerificationInputForm) SetImageLive1(val OptMultipartFile)
- func (s *FaceIDVerificationInputForm) SetImageLive2(val OptMultipartFile)
- func (s *FaceIDVerificationInputForm) SetImageLive3(val OptMultipartFile)
- func (s *FaceIDVerificationInputForm) SetMaskThreshold(val OptFloat64)
- func (s *FaceIDVerificationInputForm) SetRequestID(val string)
- func (s *FaceIDVerificationInputForm) SetReturnFeature(val OptInt)
- func (s *FaceIDVerificationInputForm) SetSimThresholdLevel1(val OptFloat64)
- func (s *FaceIDVerificationInputForm) SetSimThresholdLevel2(val OptFloat64)
- func (s FaceIDVerificationInputForm) Validate() error
- type FaceIDVerificationResult
- func (s *FaceIDVerificationResult) Decode(d *jx.Decoder) error
- func (s FaceIDVerificationResult) Encode(e *jx.Encoder)
- func (s FaceIDVerificationResult) GetFaceAntiSpoofStatus() OptFaceAntiSpoofStatus
- func (s FaceIDVerificationResult) GetFaceCardAngle() OptInt
- func (s FaceIDVerificationResult) GetFaceLiveAngle() OptInt
- func (s FaceIDVerificationResult) GetFaceLocCard() *FaceLocation
- func (s FaceIDVerificationResult) GetFaceLocLive() *FaceLocation
- func (s FaceIDVerificationResult) GetFeatureVectorFaceCard() *FaceFeature
- func (s FaceIDVerificationResult) GetFeatureVectorFaceLive() *FaceFeature
- func (s FaceIDVerificationResult) GetMessage() Message
- func (s FaceIDVerificationResult) GetRequestID() string
- func (s FaceIDVerificationResult) GetSim() OptFloat64
- func (s FaceIDVerificationResult) GetVerificationTime() OptFloat64
- func (s FaceIDVerificationResult) GetVerifyResult() OptFaceVerifyResultEnum
- func (s FaceIDVerificationResult) GetVerifyResultText() OptString
- func (s FaceIDVerificationResult) GetWearingMask() OptMaskResultEnum
- func (s FaceIDVerificationResult) GetWearingMaskScore() OptFloat64
- func (s FaceIDVerificationResult) MarshalJSON() ([]byte, error)
- func (s *FaceIDVerificationResult) SetFaceAntiSpoofStatus(val OptFaceAntiSpoofStatus)
- func (s *FaceIDVerificationResult) SetFaceCardAngle(val OptInt)
- func (s *FaceIDVerificationResult) SetFaceLiveAngle(val OptInt)
- func (s *FaceIDVerificationResult) SetFaceLocCard(val *FaceLocation)
- func (s *FaceIDVerificationResult) SetFaceLocLive(val *FaceLocation)
- func (s *FaceIDVerificationResult) SetFeatureVectorFaceCard(val *FaceFeature)
- func (s *FaceIDVerificationResult) SetFeatureVectorFaceLive(val *FaceFeature)
- func (s *FaceIDVerificationResult) SetMessage(val Message)
- func (s *FaceIDVerificationResult) SetRequestID(val string)
- func (s *FaceIDVerificationResult) SetSim(val OptFloat64)
- func (s *FaceIDVerificationResult) SetVerificationTime(val OptFloat64)
- func (s *FaceIDVerificationResult) SetVerifyResult(val OptFaceVerifyResultEnum)
- func (s *FaceIDVerificationResult) SetVerifyResultText(val OptString)
- func (s *FaceIDVerificationResult) SetWearingMask(val OptMaskResultEnum)
- func (s *FaceIDVerificationResult) SetWearingMaskScore(val OptFloat64)
- func (s *FaceIDVerificationResult) UnmarshalJSON(data []byte) error
- func (s FaceIDVerificationResult) Validate() error
- type FaceLocation
- type FaceRecognitionReq
- type FaceRecognitionRes
- type FaceRecognitionResult
- func (s *FaceRecognitionResult) Decode(d *jx.Decoder) error
- func (s FaceRecognitionResult) Encode(e *jx.Encoder)
- func (s FaceRecognitionResult) GetFaceLoc() FaceLocation
- func (s FaceRecognitionResult) GetFaceSize() int
- func (s FaceRecognitionResult) GetTopK() []FaceIDResult
- func (s FaceRecognitionResult) MarshalJSON() ([]byte, error)
- func (s *FaceRecognitionResult) SetFaceLoc(val FaceLocation)
- func (s *FaceRecognitionResult) SetFaceSize(val int)
- func (s *FaceRecognitionResult) SetTopK(val []FaceIDResult)
- func (s *FaceRecognitionResult) UnmarshalJSON(data []byte) error
- func (s FaceRecognitionResult) Validate() error
- type FaceRegisterReq
- type FaceRegisterRes
- type FaceUnregisterOK
- func (s *FaceUnregisterOK) Decode(d *jx.Decoder) error
- func (s FaceUnregisterOK) Encode(e *jx.Encoder)
- func (s FaceUnregisterOK) GetMessage() Message
- func (s FaceUnregisterOK) MarshalJSON() ([]byte, error)
- func (s *FaceUnregisterOK) SetMessage(val Message)
- func (s *FaceUnregisterOK) UnmarshalJSON(data []byte) error
- type FaceUnregisterReq
- func (s *FaceUnregisterReq) Decode(d *jx.Decoder) error
- func (s FaceUnregisterReq) Encode(e *jx.Encoder)
- func (s FaceUnregisterReq) GetFaceID() OptString
- func (s FaceUnregisterReq) GetUniqueName() string
- func (s FaceUnregisterReq) MarshalJSON() ([]byte, error)
- func (s *FaceUnregisterReq) SetFaceID(val OptString)
- func (s *FaceUnregisterReq) SetUniqueName(val string)
- func (s *FaceUnregisterReq) UnmarshalJSON(data []byte) error
- type FaceUnregisterRes
- type FaceVerificationReq
- type FaceVerificationRes
- type FaceVerifyResultEnum
- type FakeTypeEnum
- type GatewayError
- type IDCheckEnum
- type IDTypeEnum
- type MaskResultEnum
- type Message
- func (s *Message) Decode(d *jx.Decoder) error
- func (s Message) Encode(e *jx.Encoder)
- func (s Message) GetAPIVersion() OptString
- func (s Message) GetCopyRight() OptString
- func (s Message) GetErrorCode() string
- func (s Message) GetErrorMessage() string
- func (s Message) GetInfo() OptString
- func (s Message) MarshalJSON() ([]byte, error)
- func (s *Message) SetAPIVersion(val OptString)
- func (s *Message) SetCopyRight(val OptString)
- func (s *Message) SetErrorCode(val string)
- func (s *Message) SetErrorMessage(val string)
- func (s *Message) SetInfo(val OptString)
- func (s *Message) UnmarshalJSON(data []byte) error
- type OCRInput
- type OCRInputForm
- func (s OCRInputForm) GetIDFullThr() OptFloat32
- func (s OCRInputForm) GetImage() ht.MultipartFile
- func (s OCRInputForm) GetRequestID() string
- func (s *OCRInputForm) SetIDFullThr(val OptFloat32)
- func (s *OCRInputForm) SetImage(val ht.MultipartFile)
- func (s *OCRInputForm) SetRequestID(val string)
- func (s OCRInputForm) Validate() error
- type OCRResult
- func (s *OCRResult) Decode(d *jx.Decoder) error
- func (s OCRResult) Encode(e *jx.Encoder)
- func (s OCRResult) GetAddress() OptString
- func (s OCRResult) GetAddressconf() OptString
- func (s OCRResult) GetBirthday() OptString
- func (s OCRResult) GetBirthdayconf() OptString
- func (s OCRResult) GetCharacteristics() OptString
- func (s OCRResult) GetCharacteristicsConf() OptString
- func (s OCRResult) GetClass() OptString
- func (s OCRResult) GetCopyright() OptString
- func (s OCRResult) GetCountry() OptString
- func (s OCRResult) GetDistrict() OptString
- func (s OCRResult) GetDocument() OptDocumentEnum
- func (s OCRResult) GetEthnicity() OptString
- func (s OCRResult) GetEthnicityconf() OptString
- func (s OCRResult) GetExpiry() OptString
- func (s OCRResult) GetExpiryconf() OptString
- func (s OCRResult) GetHometown() OptString
- func (s OCRResult) GetHometownconf() OptString
- func (s OCRResult) GetID() OptString
- func (s OCRResult) GetIDCheck() OptIDCheckEnum
- func (s OCRResult) GetIDFull() OptInt
- func (s OCRResult) GetIDLogic() OptString
- func (s OCRResult) GetIDLogicMessage() OptString
- func (s OCRResult) GetIDType() OptIDTypeEnum
- func (s OCRResult) GetIdconf() OptString
- func (s OCRResult) GetIssueBy() OptString
- func (s OCRResult) GetIssueByConf() OptString
- func (s OCRResult) GetIssueDate() OptString
- func (s OCRResult) GetIssueDateConf() OptString
- func (s OCRResult) GetName() OptString
- func (s OCRResult) GetNameconf() OptString
- func (s OCRResult) GetNational() OptString
- func (s OCRResult) GetOptinalData() OptString
- func (s OCRResult) GetOptionalData() OptString
- func (s OCRResult) GetPassportType() OptString
- func (s OCRResult) GetPrecinct() OptString
- func (s OCRResult) GetProvince() OptString
- func (s OCRResult) GetReligion() OptString
- func (s OCRResult) GetReligionconf() OptString
- func (s OCRResult) GetResultCode() OptOCRResultResultCode
- func (s OCRResult) GetServerName() OptString
- func (s OCRResult) GetServerVer() OptString
- func (s OCRResult) GetSex() OptString
- func (s OCRResult) GetSexconf() OptString
- func (s OCRResult) GetStreet() OptString
- func (s OCRResult) GetStreetName() OptString
- func (s OCRResult) MarshalJSON() ([]byte, error)
- func (s *OCRResult) SetAddress(val OptString)
- func (s *OCRResult) SetAddressconf(val OptString)
- func (s *OCRResult) SetBirthday(val OptString)
- func (s *OCRResult) SetBirthdayconf(val OptString)
- func (s *OCRResult) SetCharacteristics(val OptString)
- func (s *OCRResult) SetCharacteristicsConf(val OptString)
- func (s *OCRResult) SetClass(val OptString)
- func (s *OCRResult) SetCopyright(val OptString)
- func (s *OCRResult) SetCountry(val OptString)
- func (s *OCRResult) SetDistrict(val OptString)
- func (s *OCRResult) SetDocument(val OptDocumentEnum)
- func (s *OCRResult) SetEthnicity(val OptString)
- func (s *OCRResult) SetEthnicityconf(val OptString)
- func (s *OCRResult) SetExpiry(val OptString)
- func (s *OCRResult) SetExpiryconf(val OptString)
- func (s *OCRResult) SetHometown(val OptString)
- func (s *OCRResult) SetHometownconf(val OptString)
- func (s *OCRResult) SetID(val OptString)
- func (s *OCRResult) SetIDCheck(val OptIDCheckEnum)
- func (s *OCRResult) SetIDFull(val OptInt)
- func (s *OCRResult) SetIDLogic(val OptString)
- func (s *OCRResult) SetIDLogicMessage(val OptString)
- func (s *OCRResult) SetIDType(val OptIDTypeEnum)
- func (s *OCRResult) SetIdconf(val OptString)
- func (s *OCRResult) SetIssueBy(val OptString)
- func (s *OCRResult) SetIssueByConf(val OptString)
- func (s *OCRResult) SetIssueDate(val OptString)
- func (s *OCRResult) SetIssueDateConf(val OptString)
- func (s *OCRResult) SetName(val OptString)
- func (s *OCRResult) SetNameconf(val OptString)
- func (s *OCRResult) SetNational(val OptString)
- func (s *OCRResult) SetOptinalData(val OptString)
- func (s *OCRResult) SetOptionalData(val OptString)
- func (s *OCRResult) SetPassportType(val OptString)
- func (s *OCRResult) SetPrecinct(val OptString)
- func (s *OCRResult) SetProvince(val OptString)
- func (s *OCRResult) SetReligion(val OptString)
- func (s *OCRResult) SetReligionconf(val OptString)
- func (s *OCRResult) SetResultCode(val OptOCRResultResultCode)
- func (s *OCRResult) SetServerName(val OptString)
- func (s *OCRResult) SetServerVer(val OptString)
- func (s *OCRResult) SetSex(val OptString)
- func (s *OCRResult) SetSexconf(val OptString)
- func (s *OCRResult) SetStreet(val OptString)
- func (s *OCRResult) SetStreetName(val OptString)
- func (s *OCRResult) UnmarshalJSON(data []byte) error
- func (s OCRResult) Validate() error
- type OCRResultResultCode
- type OCRecognitionRes
- type OptDocumentEnum
- func (o *OptDocumentEnum) Decode(d *jx.Decoder) error
- func (o OptDocumentEnum) Encode(e *jx.Encoder)
- func (o OptDocumentEnum) Get() (v DocumentEnum, ok bool)
- func (o OptDocumentEnum) IsSet() bool
- func (s OptDocumentEnum) MarshalJSON() ([]byte, error)
- func (o OptDocumentEnum) Or(d DocumentEnum) DocumentEnum
- func (o *OptDocumentEnum) Reset()
- func (o *OptDocumentEnum) SetTo(v DocumentEnum)
- func (s *OptDocumentEnum) UnmarshalJSON(data []byte) error
- type OptFaceAntiSpoofStatus
- func (o *OptFaceAntiSpoofStatus) Decode(d *jx.Decoder) error
- func (o OptFaceAntiSpoofStatus) Encode(e *jx.Encoder)
- func (o OptFaceAntiSpoofStatus) Get() (v FaceAntiSpoofStatus, ok bool)
- func (o OptFaceAntiSpoofStatus) IsSet() bool
- func (s OptFaceAntiSpoofStatus) MarshalJSON() ([]byte, error)
- func (o OptFaceAntiSpoofStatus) Or(d FaceAntiSpoofStatus) FaceAntiSpoofStatus
- func (o *OptFaceAntiSpoofStatus) Reset()
- func (o *OptFaceAntiSpoofStatus) SetTo(v FaceAntiSpoofStatus)
- func (s *OptFaceAntiSpoofStatus) UnmarshalJSON(data []byte) error
- type OptFaceVerifyResultEnum
- func (o *OptFaceVerifyResultEnum) Decode(d *jx.Decoder) error
- func (o OptFaceVerifyResultEnum) Encode(e *jx.Encoder)
- func (o OptFaceVerifyResultEnum) Get() (v FaceVerifyResultEnum, ok bool)
- func (o OptFaceVerifyResultEnum) IsSet() bool
- func (s OptFaceVerifyResultEnum) MarshalJSON() ([]byte, error)
- func (o OptFaceVerifyResultEnum) Or(d FaceVerifyResultEnum) FaceVerifyResultEnum
- func (o *OptFaceVerifyResultEnum) Reset()
- func (o *OptFaceVerifyResultEnum) SetTo(v FaceVerifyResultEnum)
- func (s *OptFaceVerifyResultEnum) UnmarshalJSON(data []byte) error
- type OptFakeTypeEnum
- func (o *OptFakeTypeEnum) Decode(d *jx.Decoder) error
- func (o OptFakeTypeEnum) Encode(e *jx.Encoder)
- func (o OptFakeTypeEnum) Get() (v FakeTypeEnum, ok bool)
- func (o OptFakeTypeEnum) IsSet() bool
- func (s OptFakeTypeEnum) MarshalJSON() ([]byte, error)
- func (o OptFakeTypeEnum) Or(d FakeTypeEnum) FakeTypeEnum
- func (o *OptFakeTypeEnum) Reset()
- func (o *OptFakeTypeEnum) SetTo(v FakeTypeEnum)
- func (s *OptFakeTypeEnum) UnmarshalJSON(data []byte) error
- type OptFloat32
- type OptFloat64
- func (o *OptFloat64) Decode(d *jx.Decoder) error
- func (o OptFloat64) Encode(e *jx.Encoder)
- func (o OptFloat64) Get() (v float64, ok bool)
- func (o OptFloat64) IsSet() bool
- func (s OptFloat64) MarshalJSON() ([]byte, error)
- func (o OptFloat64) Or(d float64) float64
- func (o *OptFloat64) Reset()
- func (o *OptFloat64) SetTo(v float64)
- func (s *OptFloat64) UnmarshalJSON(data []byte) error
- type OptIDCheckEnum
- func (o *OptIDCheckEnum) Decode(d *jx.Decoder) error
- func (o OptIDCheckEnum) Encode(e *jx.Encoder)
- func (o OptIDCheckEnum) Get() (v IDCheckEnum, ok bool)
- func (o OptIDCheckEnum) IsSet() bool
- func (s OptIDCheckEnum) MarshalJSON() ([]byte, error)
- func (o OptIDCheckEnum) Or(d IDCheckEnum) IDCheckEnum
- func (o *OptIDCheckEnum) Reset()
- func (o *OptIDCheckEnum) SetTo(v IDCheckEnum)
- func (s *OptIDCheckEnum) UnmarshalJSON(data []byte) error
- type OptIDTypeEnum
- func (o *OptIDTypeEnum) Decode(d *jx.Decoder) error
- func (o OptIDTypeEnum) Encode(e *jx.Encoder)
- func (o OptIDTypeEnum) Get() (v IDTypeEnum, ok bool)
- func (o OptIDTypeEnum) IsSet() bool
- func (s OptIDTypeEnum) MarshalJSON() ([]byte, error)
- func (o OptIDTypeEnum) Or(d IDTypeEnum) IDTypeEnum
- func (o *OptIDTypeEnum) Reset()
- func (o *OptIDTypeEnum) SetTo(v IDTypeEnum)
- func (s *OptIDTypeEnum) UnmarshalJSON(data []byte) error
- type OptInt
- func (o *OptInt) Decode(d *jx.Decoder) error
- func (o OptInt) Encode(e *jx.Encoder)
- func (o OptInt) Get() (v int, ok bool)
- func (o OptInt) IsSet() bool
- func (s OptInt) MarshalJSON() ([]byte, error)
- func (o OptInt) Or(d int) int
- func (o *OptInt) Reset()
- func (o *OptInt) SetTo(v int)
- func (s *OptInt) UnmarshalJSON(data []byte) error
- type OptMaskResultEnum
- func (o *OptMaskResultEnum) Decode(d *jx.Decoder) error
- func (o OptMaskResultEnum) Encode(e *jx.Encoder)
- func (o OptMaskResultEnum) Get() (v MaskResultEnum, ok bool)
- func (o OptMaskResultEnum) IsSet() bool
- func (s OptMaskResultEnum) MarshalJSON() ([]byte, error)
- func (o OptMaskResultEnum) Or(d MaskResultEnum) MaskResultEnum
- func (o *OptMaskResultEnum) Reset()
- func (o *OptMaskResultEnum) SetTo(v MaskResultEnum)
- func (s *OptMaskResultEnum) UnmarshalJSON(data []byte) error
- type OptMultipartFile
- type OptOCRResultResultCode
- func (o *OptOCRResultResultCode) Decode(d *jx.Decoder) error
- func (o OptOCRResultResultCode) Encode(e *jx.Encoder)
- func (o OptOCRResultResultCode) Get() (v OCRResultResultCode, ok bool)
- func (o OptOCRResultResultCode) IsSet() bool
- func (s OptOCRResultResultCode) MarshalJSON() ([]byte, error)
- func (o OptOCRResultResultCode) Or(d OCRResultResultCode) OCRResultResultCode
- func (o *OptOCRResultResultCode) Reset()
- func (o *OptOCRResultResultCode) SetTo(v OCRResultResultCode)
- func (s *OptOCRResultResultCode) UnmarshalJSON(data []byte) error
- type OptSpoofStatusEnum
- func (o *OptSpoofStatusEnum) Decode(d *jx.Decoder) error
- func (o OptSpoofStatusEnum) Encode(e *jx.Encoder)
- func (o OptSpoofStatusEnum) Get() (v SpoofStatusEnum, ok bool)
- func (o OptSpoofStatusEnum) IsSet() bool
- func (s OptSpoofStatusEnum) MarshalJSON() ([]byte, error)
- func (o OptSpoofStatusEnum) Or(d SpoofStatusEnum) SpoofStatusEnum
- func (o *OptSpoofStatusEnum) Reset()
- func (o *OptSpoofStatusEnum) SetTo(v SpoofStatusEnum)
- func (s *OptSpoofStatusEnum) UnmarshalJSON(data []byte) error
- type OptString
- func (o *OptString) Decode(d *jx.Decoder) error
- func (o OptString) Encode(e *jx.Encoder)
- func (o OptString) Get() (v string, ok bool)
- func (o OptString) IsSet() bool
- func (s OptString) MarshalJSON() ([]byte, error)
- func (o OptString) Or(d string) string
- func (o *OptString) Reset()
- func (o *OptString) SetTo(v string)
- func (s *OptString) UnmarshalJSON(data []byte) error
- type Option
- type SecuritySource
- type SpoofStatusEnum
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements OAS client.
func NewClient ¶
func NewClient(serverURL string, sec SecuritySource, opts ...Option) (*Client, error)
NewClient initializes new Client defined by OAS.
func (*Client) FaceRecognition ¶
func (c *Client) FaceRecognition(ctx context.Context, request FaceRecognitionReq) (res FaceRecognitionRes, err error)
FaceRecognition invokes faceRecognition operation.
A facial recognition system is a technology capable of identifying or verifying a person from a digital image or a video frame from a video source.
POST /v3.2/faceid/recognition
func (*Client) FaceRegister ¶
func (c *Client) FaceRegister(ctx context.Context, request FaceRegisterReq) (res FaceRegisterRes, err error)
FaceRegister invokes faceRegister operation.
Register image of consumer into database. System can not registerer if image is exist.
POST /v3.2/faceid/register
func (*Client) FaceUnregister ¶
func (c *Client) FaceUnregister(ctx context.Context, request FaceUnregisterReq) (res FaceUnregisterRes, err error)
FaceUnregister invokes faceUnregister operation.
Delete information image of consumer registered database.
POST /v3.2/faceid/delete
func (*Client) FaceVerification ¶
func (c *Client) FaceVerification(ctx context.Context, request FaceVerificationReq) (res FaceVerificationRes, err error)
FaceVerification invokes faceVerification operation.
Face verification is the task of comparing a candidate face to another, and verifying whether it is a match. It is a one-to-one mapping: you have to check if this person is the correct one.
POST /v3.2/faceid/verification
func (*Client) OCRecognition ¶
func (c *Client) OCRecognition(ctx context.Context, request OCRInputForm) (res OCRecognitionRes, err error)
OCRecognition invokes OCRecognition operation.
Cung cấp phương thức để trích xuất thông tin trên các văn bản tài liệu như: Giấy phép lái xe (GPLX), Passport, CMND, Căn cước công dân (CCCD) ...
POST /v3.2/ocr/recognition
type DocumentEnum ¶
type DocumentEnum string
Thông tin mô tả các loại giấy tờ: * `CCCD` - (Căn cước công dân) * `NEW ID` - (CMT 12 số) * `OLD ID` - (CMT 9 số) * `PASSPORT` * `DRIVER LICENSE OLD` * `DRIVER LICENSE PET` * `CHIP ID` * `POLICE ID` * `ARMY ID` *Chú ý*: Không phân biệt được mặt sau của CMT 12 số và CCCD -> mặt sau của 2 loại giấy tờ này hoàn toàn giống nhau về mặt hình ảnh và ý nghĩa. Ref: #/components/schemas/DocumentEnum
const ( DocumentEnumCCCD DocumentEnum = "CCCD" DocumentEnumNEWID DocumentEnum = "NEW ID" DocumentEnumOLDID DocumentEnum = "OLD ID" DocumentEnumPASSPORT DocumentEnum = "PASSPORT" DocumentEnumDRIVERLICENSEOLD DocumentEnum = "DRIVER LICENSE OLD" DocumentEnumDRIVERLICENSEPET DocumentEnum = "DRIVER LICENSE PET" DocumentEnumCHIPID DocumentEnum = "CHIP ID" DocumentEnumPOLICEID DocumentEnum = "POLICE ID" DocumentEnumARMYID DocumentEnum = "ARMY ID" )
func (*DocumentEnum) Decode ¶
func (s *DocumentEnum) Decode(d *jx.Decoder) error
Decode decodes DocumentEnum from json.
func (DocumentEnum) Encode ¶
func (s DocumentEnum) Encode(e *jx.Encoder)
Encode encodes DocumentEnum as json.
func (DocumentEnum) MarshalJSON ¶
func (s DocumentEnum) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*DocumentEnum) UnmarshalJSON ¶
func (s *DocumentEnum) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (DocumentEnum) Validate ¶
func (s DocumentEnum) Validate() error
type FaceAntiSpoofStatus ¶
type FaceAntiSpoofStatus struct { Status OptSpoofStatusEnum `json:"status"` FakeCode OptSpoofStatusEnum `json:"fake_code"` // Mức độ giả mạo ảnh chụp chân dung, khoảng giá trị [0-1.0]: // - 1.0: ảnh giả // - 0.0: ảnh thật // NOTE: By our experiments, threshold to judge an image is fake is fake_score > 0.63. FakeScore OptFloat64 `json:"fake_score"` FakeType OptFakeTypeEnum `json:"fake_type"` // Trả về khi check_3_random_pose==1. Score matching giữa ảnh live với 3 ảnh đưa vào // kiểm tra. LivenessCompareScores OptString `json:"liveness_compare_scores"` }
Thông tin đánh giá giả mạo khuôn mặt. Có thể kiểm tra thêm 3 random pose hoặc 3 ảnh thẳng mặt liên tiếp. ``` { "fake_code": "REAL", "fake_score": 0.0, "status": "REAL", "liveness_compare_scores": [float] } ```. Ref: #/components/schemas/FaceAntiSpoofStatus
func (*FaceAntiSpoofStatus) Decode ¶
func (s *FaceAntiSpoofStatus) Decode(d *jx.Decoder) error
Decode decodes FaceAntiSpoofStatus from json.
func (FaceAntiSpoofStatus) Encode ¶
func (s FaceAntiSpoofStatus) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (FaceAntiSpoofStatus) GetFakeCode ¶
func (s FaceAntiSpoofStatus) GetFakeCode() OptSpoofStatusEnum
GetFakeCode returns the value of FakeCode.
func (FaceAntiSpoofStatus) GetFakeScore ¶
func (s FaceAntiSpoofStatus) GetFakeScore() OptFloat64
GetFakeScore returns the value of FakeScore.
func (FaceAntiSpoofStatus) GetFakeType ¶
func (s FaceAntiSpoofStatus) GetFakeType() OptFakeTypeEnum
GetFakeType returns the value of FakeType.
func (FaceAntiSpoofStatus) GetLivenessCompareScores ¶
func (s FaceAntiSpoofStatus) GetLivenessCompareScores() OptString
GetLivenessCompareScores returns the value of LivenessCompareScores.
func (FaceAntiSpoofStatus) GetStatus ¶
func (s FaceAntiSpoofStatus) GetStatus() OptSpoofStatusEnum
GetStatus returns the value of Status.
func (FaceAntiSpoofStatus) MarshalJSON ¶
func (s FaceAntiSpoofStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FaceAntiSpoofStatus) SetFakeCode ¶
func (s *FaceAntiSpoofStatus) SetFakeCode(val OptSpoofStatusEnum)
SetFakeCode sets the value of FakeCode.
func (*FaceAntiSpoofStatus) SetFakeScore ¶
func (s *FaceAntiSpoofStatus) SetFakeScore(val OptFloat64)
SetFakeScore sets the value of FakeScore.
func (*FaceAntiSpoofStatus) SetFakeType ¶
func (s *FaceAntiSpoofStatus) SetFakeType(val OptFakeTypeEnum)
SetFakeType sets the value of FakeType.
func (*FaceAntiSpoofStatus) SetLivenessCompareScores ¶
func (s *FaceAntiSpoofStatus) SetLivenessCompareScores(val OptString)
SetLivenessCompareScores sets the value of LivenessCompareScores.
func (*FaceAntiSpoofStatus) SetStatus ¶
func (s *FaceAntiSpoofStatus) SetStatus(val OptSpoofStatusEnum)
SetStatus sets the value of Status.
func (*FaceAntiSpoofStatus) UnmarshalJSON ¶
func (s *FaceAntiSpoofStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (FaceAntiSpoofStatus) Validate ¶
func (s FaceAntiSpoofStatus) Validate() error
type FaceFeature ¶
type FaceFeature []float64
func (*FaceFeature) Decode ¶
func (s *FaceFeature) Decode(d *jx.Decoder) error
Decode decodes FaceFeature from json.
func (FaceFeature) Encode ¶
func (s FaceFeature) Encode(e *jx.Encoder)
Encode encodes FaceFeature as json.
func (FaceFeature) MarshalJSON ¶
func (s FaceFeature) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FaceFeature) UnmarshalJSON ¶
func (s *FaceFeature) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (FaceFeature) Validate ¶
func (s FaceFeature) Validate() error
type FaceIDRecognitionInput ¶
type FaceIDRecognitionInput struct { RequestID string `json:"request_id"` Image string `json:"image"` }
Ref: #/components/schemas/FaceIDRecognitionInput
func (*FaceIDRecognitionInput) Decode ¶
func (s *FaceIDRecognitionInput) Decode(d *jx.Decoder) error
Decode decodes FaceIDRecognitionInput from json.
func (FaceIDRecognitionInput) Encode ¶
func (s FaceIDRecognitionInput) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (FaceIDRecognitionInput) GetImage ¶
func (s FaceIDRecognitionInput) GetImage() string
GetImage returns the value of Image.
func (FaceIDRecognitionInput) GetRequestID ¶
func (s FaceIDRecognitionInput) GetRequestID() string
GetRequestID returns the value of RequestID.
func (FaceIDRecognitionInput) MarshalJSON ¶
func (s FaceIDRecognitionInput) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FaceIDRecognitionInput) SetImage ¶
func (s *FaceIDRecognitionInput) SetImage(val string)
SetImage sets the value of Image.
func (*FaceIDRecognitionInput) SetRequestID ¶
func (s *FaceIDRecognitionInput) SetRequestID(val string)
SetRequestID sets the value of RequestID.
func (*FaceIDRecognitionInput) UnmarshalJSON ¶
func (s *FaceIDRecognitionInput) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type FaceIDRecognitionInputForm ¶
type FaceIDRecognitionInputForm struct { RequestID string `json:"request_id"` Image ht.MultipartFile `json:"image"` }
Ref: #/components/schemas/FaceIDRecognitionInput
func (FaceIDRecognitionInputForm) GetImage ¶
func (s FaceIDRecognitionInputForm) GetImage() ht.MultipartFile
GetImage returns the value of Image.
func (FaceIDRecognitionInputForm) GetRequestID ¶
func (s FaceIDRecognitionInputForm) GetRequestID() string
GetRequestID returns the value of RequestID.
func (*FaceIDRecognitionInputForm) SetImage ¶
func (s *FaceIDRecognitionInputForm) SetImage(val ht.MultipartFile)
SetImage sets the value of Image.
func (*FaceIDRecognitionInputForm) SetRequestID ¶
func (s *FaceIDRecognitionInputForm) SetRequestID(val string)
SetRequestID sets the value of RequestID.
type FaceIDRecognitionResult ¶
type FaceIDRecognitionResult struct { Message Message `json:"message"` // List of photos with faces similar to the one imported. RecognitionResult []FaceRecognitionResult `json:"recognition_result"` // Time handle request. RecognitionTime OptFloat64 `json:"recognition_time"` }
Ref: #/components/schemas/FaceIDRecognitionResult
func (*FaceIDRecognitionResult) Decode ¶
func (s *FaceIDRecognitionResult) Decode(d *jx.Decoder) error
Decode decodes FaceIDRecognitionResult from json.
func (FaceIDRecognitionResult) Encode ¶
func (s FaceIDRecognitionResult) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (FaceIDRecognitionResult) GetMessage ¶
func (s FaceIDRecognitionResult) GetMessage() Message
GetMessage returns the value of Message.
func (FaceIDRecognitionResult) GetRecognitionResult ¶
func (s FaceIDRecognitionResult) GetRecognitionResult() []FaceRecognitionResult
GetRecognitionResult returns the value of RecognitionResult.
func (FaceIDRecognitionResult) GetRecognitionTime ¶
func (s FaceIDRecognitionResult) GetRecognitionTime() OptFloat64
GetRecognitionTime returns the value of RecognitionTime.
func (FaceIDRecognitionResult) MarshalJSON ¶
func (s FaceIDRecognitionResult) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FaceIDRecognitionResult) SetMessage ¶
func (s *FaceIDRecognitionResult) SetMessage(val Message)
SetMessage sets the value of Message.
func (*FaceIDRecognitionResult) SetRecognitionResult ¶
func (s *FaceIDRecognitionResult) SetRecognitionResult(val []FaceRecognitionResult)
SetRecognitionResult sets the value of RecognitionResult.
func (*FaceIDRecognitionResult) SetRecognitionTime ¶
func (s *FaceIDRecognitionResult) SetRecognitionTime(val OptFloat64)
SetRecognitionTime sets the value of RecognitionTime.
func (*FaceIDRecognitionResult) UnmarshalJSON ¶
func (s *FaceIDRecognitionResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (FaceIDRecognitionResult) Validate ¶
func (s FaceIDRecognitionResult) Validate() error
type FaceIDRegisterInput ¶
type FaceIDRegisterInput struct { // Customer is unique name. Used in case many customers have the same real name. UniqueName string `json:"unique_name"` // Image of consumer. Image string `json:"image"` // Name of consumer. PersonName OptString `json:"person_name"` // Optional field,request system overrides customer registration. Used in case this photo or similar // photo of the customer has been previously registered. // * `0` - Default registration is not required // * `1` - Registration required. Force OptInt `json:"force"` }
Merged schema. Ref: #/components/schemas/FaceIDRegisterInput
func (*FaceIDRegisterInput) Decode ¶
func (s *FaceIDRegisterInput) Decode(d *jx.Decoder) error
Decode decodes FaceIDRegisterInput from json.
func (FaceIDRegisterInput) Encode ¶
func (s FaceIDRegisterInput) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (FaceIDRegisterInput) GetForce ¶
func (s FaceIDRegisterInput) GetForce() OptInt
GetForce returns the value of Force.
func (FaceIDRegisterInput) GetImage ¶
func (s FaceIDRegisterInput) GetImage() string
GetImage returns the value of Image.
func (FaceIDRegisterInput) GetPersonName ¶
func (s FaceIDRegisterInput) GetPersonName() OptString
GetPersonName returns the value of PersonName.
func (FaceIDRegisterInput) GetUniqueName ¶
func (s FaceIDRegisterInput) GetUniqueName() string
GetUniqueName returns the value of UniqueName.
func (FaceIDRegisterInput) MarshalJSON ¶
func (s FaceIDRegisterInput) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FaceIDRegisterInput) SetForce ¶
func (s *FaceIDRegisterInput) SetForce(val OptInt)
SetForce sets the value of Force.
func (*FaceIDRegisterInput) SetImage ¶
func (s *FaceIDRegisterInput) SetImage(val string)
SetImage sets the value of Image.
func (*FaceIDRegisterInput) SetPersonName ¶
func (s *FaceIDRegisterInput) SetPersonName(val OptString)
SetPersonName sets the value of PersonName.
func (*FaceIDRegisterInput) SetUniqueName ¶
func (s *FaceIDRegisterInput) SetUniqueName(val string)
SetUniqueName sets the value of UniqueName.
func (*FaceIDRegisterInput) UnmarshalJSON ¶
func (s *FaceIDRegisterInput) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type FaceIDRegisterInputForm ¶
type FaceIDRegisterInputForm struct { // Customer is unique name. Used in case many customers have the same real name. UniqueName string `json:"unique_name"` // Image of consumer. Image ht.MultipartFile `json:"image"` // Name of consumer. PersonName OptString `json:"person_name"` // Optional field,request system overrides customer registration. Used in case this photo or similar // photo of the customer has been previously registered. // * `0` - Default registration is not required // * `1` - Registration required. Force OptInt `json:"force"` }
Merged schema. Ref: #/components/schemas/FaceIDRegisterInput
func (FaceIDRegisterInputForm) GetForce ¶
func (s FaceIDRegisterInputForm) GetForce() OptInt
GetForce returns the value of Force.
func (FaceIDRegisterInputForm) GetImage ¶
func (s FaceIDRegisterInputForm) GetImage() ht.MultipartFile
GetImage returns the value of Image.
func (FaceIDRegisterInputForm) GetPersonName ¶
func (s FaceIDRegisterInputForm) GetPersonName() OptString
GetPersonName returns the value of PersonName.
func (FaceIDRegisterInputForm) GetUniqueName ¶
func (s FaceIDRegisterInputForm) GetUniqueName() string
GetUniqueName returns the value of UniqueName.
func (*FaceIDRegisterInputForm) SetForce ¶
func (s *FaceIDRegisterInputForm) SetForce(val OptInt)
SetForce sets the value of Force.
func (*FaceIDRegisterInputForm) SetImage ¶
func (s *FaceIDRegisterInputForm) SetImage(val ht.MultipartFile)
SetImage sets the value of Image.
func (*FaceIDRegisterInputForm) SetPersonName ¶
func (s *FaceIDRegisterInputForm) SetPersonName(val OptString)
SetPersonName sets the value of PersonName.
func (*FaceIDRegisterInputForm) SetUniqueName ¶
func (s *FaceIDRegisterInputForm) SetUniqueName(val string)
SetUniqueName sets the value of UniqueName.
type FaceIDRegisterResult ¶
type FaceIDRegisterResult struct { // Góc nghiêng của khuôn mặt ở ảnh. FaceCardAngle OptInt `json:"face_card_angle"` // Position of faces in photos. Format: [left, top, right, bottom]. FaceLoc []int `json:"face_loc"` Message Message `json:"message"` UniqueName OptString `json:"unique_name"` // ID of face register in database. FaceID OptInt `json:"face_id"` MatchedScore OptFloat64 `json:"matched_score"` SamePersonThr OptFloat64 `json:"same_person_thr"` }
Ref: #/components/schemas/FaceIDRegisterResult
func (*FaceIDRegisterResult) Decode ¶
func (s *FaceIDRegisterResult) Decode(d *jx.Decoder) error
Decode decodes FaceIDRegisterResult from json.
func (FaceIDRegisterResult) Encode ¶
func (s FaceIDRegisterResult) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (FaceIDRegisterResult) GetFaceCardAngle ¶
func (s FaceIDRegisterResult) GetFaceCardAngle() OptInt
GetFaceCardAngle returns the value of FaceCardAngle.
func (FaceIDRegisterResult) GetFaceID ¶
func (s FaceIDRegisterResult) GetFaceID() OptInt
GetFaceID returns the value of FaceID.
func (FaceIDRegisterResult) GetFaceLoc ¶
func (s FaceIDRegisterResult) GetFaceLoc() []int
GetFaceLoc returns the value of FaceLoc.
func (FaceIDRegisterResult) GetMatchedScore ¶
func (s FaceIDRegisterResult) GetMatchedScore() OptFloat64
GetMatchedScore returns the value of MatchedScore.
func (FaceIDRegisterResult) GetMessage ¶
func (s FaceIDRegisterResult) GetMessage() Message
GetMessage returns the value of Message.
func (FaceIDRegisterResult) GetSamePersonThr ¶
func (s FaceIDRegisterResult) GetSamePersonThr() OptFloat64
GetSamePersonThr returns the value of SamePersonThr.
func (FaceIDRegisterResult) GetUniqueName ¶
func (s FaceIDRegisterResult) GetUniqueName() OptString
GetUniqueName returns the value of UniqueName.
func (FaceIDRegisterResult) MarshalJSON ¶
func (s FaceIDRegisterResult) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FaceIDRegisterResult) SetFaceCardAngle ¶
func (s *FaceIDRegisterResult) SetFaceCardAngle(val OptInt)
SetFaceCardAngle sets the value of FaceCardAngle.
func (*FaceIDRegisterResult) SetFaceID ¶
func (s *FaceIDRegisterResult) SetFaceID(val OptInt)
SetFaceID sets the value of FaceID.
func (*FaceIDRegisterResult) SetFaceLoc ¶
func (s *FaceIDRegisterResult) SetFaceLoc(val []int)
SetFaceLoc sets the value of FaceLoc.
func (*FaceIDRegisterResult) SetMatchedScore ¶
func (s *FaceIDRegisterResult) SetMatchedScore(val OptFloat64)
SetMatchedScore sets the value of MatchedScore.
func (*FaceIDRegisterResult) SetMessage ¶
func (s *FaceIDRegisterResult) SetMessage(val Message)
SetMessage sets the value of Message.
func (*FaceIDRegisterResult) SetSamePersonThr ¶
func (s *FaceIDRegisterResult) SetSamePersonThr(val OptFloat64)
SetSamePersonThr sets the value of SamePersonThr.
func (*FaceIDRegisterResult) SetUniqueName ¶
func (s *FaceIDRegisterResult) SetUniqueName(val OptString)
SetUniqueName sets the value of UniqueName.
func (*FaceIDRegisterResult) UnmarshalJSON ¶
func (s *FaceIDRegisterResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (FaceIDRegisterResult) Validate ¶
func (s FaceIDRegisterResult) Validate() error
type FaceIDResult ¶
type FaceIDResult struct { // Customer is unique name. Used in case many customers have the same real name. UniqueName string `json:"unique_name"` CompareScore float64 `json:"compare_score"` Info FaceIDResultInfo `json:"info"` // Name of consumer. PersonName OptString `json:"person_name"` }
Merged schema. Ref: #/components/schemas/FaceIDResult
func (*FaceIDResult) Decode ¶
func (s *FaceIDResult) Decode(d *jx.Decoder) error
Decode decodes FaceIDResult from json.
func (FaceIDResult) Encode ¶
func (s FaceIDResult) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (FaceIDResult) GetCompareScore ¶
func (s FaceIDResult) GetCompareScore() float64
GetCompareScore returns the value of CompareScore.
func (FaceIDResult) GetInfo ¶
func (s FaceIDResult) GetInfo() FaceIDResultInfo
GetInfo returns the value of Info.
func (FaceIDResult) GetPersonName ¶
func (s FaceIDResult) GetPersonName() OptString
GetPersonName returns the value of PersonName.
func (FaceIDResult) GetUniqueName ¶
func (s FaceIDResult) GetUniqueName() string
GetUniqueName returns the value of UniqueName.
func (FaceIDResult) MarshalJSON ¶
func (s FaceIDResult) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FaceIDResult) SetCompareScore ¶
func (s *FaceIDResult) SetCompareScore(val float64)
SetCompareScore sets the value of CompareScore.
func (*FaceIDResult) SetInfo ¶
func (s *FaceIDResult) SetInfo(val FaceIDResultInfo)
SetInfo sets the value of Info.
func (*FaceIDResult) SetPersonName ¶
func (s *FaceIDResult) SetPersonName(val OptString)
SetPersonName sets the value of PersonName.
func (*FaceIDResult) SetUniqueName ¶
func (s *FaceIDResult) SetUniqueName(val string)
SetUniqueName sets the value of UniqueName.
func (*FaceIDResult) UnmarshalJSON ¶
func (s *FaceIDResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (FaceIDResult) Validate ¶
func (s FaceIDResult) Validate() error
type FaceIDResultInfo ¶
func (*FaceIDResultInfo) Decode ¶
func (s *FaceIDResultInfo) Decode(d *jx.Decoder) error
Decode decodes FaceIDResultInfo from json.
func (FaceIDResultInfo) Encode ¶
func (s FaceIDResultInfo) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (FaceIDResultInfo) MarshalJSON ¶
func (s FaceIDResultInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FaceIDResultInfo) UnmarshalJSON ¶
func (s *FaceIDResultInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type FaceIDVerificationInput ¶
type FaceIDVerificationInput struct { // Request ID. RequestID string `json:"request_id"` // Ảnh card id (chứng minh thư, căn cước công dân) của người dùng. ImageCard string `json:"image_card"` // Ảnh chụp khuôn mặt. ImageLive string `json:"image_live"` // Ảnh chụp khuôn mặt ở các góc độ khác nhau để tăng độ chính xác khi xác // thực khuôn mặt. ImageLive1 OptString `json:"image_live1"` // Ảnh chụp khuôn mặt ở các góc độ khác nhau để tăng độ chính xác khi xác // thực khuôn mặt. ImageLive2 OptString `json:"image_live2"` // Ảnh chụp khuôn mặt ở các góc độ khác nhau để tăng độ chính xác khi xác // thực khuôn mặt. ImageLive3 OptString `json:"image_live3"` // Kiểm tra các ảnh live image có phải cùng một khuôn mặt hay không. Check3RandomPose OptInt `json:"check_3_random_pose"` // Kiểm tra các ảnh khuôn mặt có fake hay không. Check3StraightPose OptInt `json:"check_3_straight_pose"` // Trả về face feature vector hay không. ReturnFeature OptInt `json:"return_feature"` // Threshold để kiểm tra xem có đeo khẩu trang hay không. MaskThreshold OptFloat64 `json:"mask_threshold"` // Giá trị dùng để check xem khuôn mặt live có phải fake. FakeThreshold OptFloat64 `json:"fake_threshold"` // Độ tương đồng <= sim_threshold_level1 => không cùng 1 người sim_threshold_level1 < // độ tương đồng < sim_threshold_level2 ==> có thể cùng 1 người độ tương đồng // >= sim_threshold_level2 ==> cùng 1 người. SimThresholdLevel1 OptFloat64 `json:"sim_threshold_level1"` // Độ tương đồng <= sim_threshold_level1 => không cùng 1 người sim_threshold_level1 < // độ tương đồng < sim_threshold_level2 ==> có thể cùng 1 người độ tương đồng // >= sim_threshold_level2 ==> cùng 1 người. SimThresholdLevel2 OptFloat64 `json:"sim_threshold_level2"` }
Ref: #/components/schemas/FaceIDVerificationInput
func (*FaceIDVerificationInput) Decode ¶
func (s *FaceIDVerificationInput) Decode(d *jx.Decoder) error
Decode decodes FaceIDVerificationInput from json.
func (FaceIDVerificationInput) Encode ¶
func (s FaceIDVerificationInput) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (FaceIDVerificationInput) GetCheck3RandomPose ¶
func (s FaceIDVerificationInput) GetCheck3RandomPose() OptInt
GetCheck3RandomPose returns the value of Check3RandomPose.
func (FaceIDVerificationInput) GetCheck3StraightPose ¶
func (s FaceIDVerificationInput) GetCheck3StraightPose() OptInt
GetCheck3StraightPose returns the value of Check3StraightPose.
func (FaceIDVerificationInput) GetFakeThreshold ¶
func (s FaceIDVerificationInput) GetFakeThreshold() OptFloat64
GetFakeThreshold returns the value of FakeThreshold.
func (FaceIDVerificationInput) GetImageCard ¶
func (s FaceIDVerificationInput) GetImageCard() string
GetImageCard returns the value of ImageCard.
func (FaceIDVerificationInput) GetImageLive ¶
func (s FaceIDVerificationInput) GetImageLive() string
GetImageLive returns the value of ImageLive.
func (FaceIDVerificationInput) GetImageLive1 ¶
func (s FaceIDVerificationInput) GetImageLive1() OptString
GetImageLive1 returns the value of ImageLive1.
func (FaceIDVerificationInput) GetImageLive2 ¶
func (s FaceIDVerificationInput) GetImageLive2() OptString
GetImageLive2 returns the value of ImageLive2.
func (FaceIDVerificationInput) GetImageLive3 ¶
func (s FaceIDVerificationInput) GetImageLive3() OptString
GetImageLive3 returns the value of ImageLive3.
func (FaceIDVerificationInput) GetMaskThreshold ¶
func (s FaceIDVerificationInput) GetMaskThreshold() OptFloat64
GetMaskThreshold returns the value of MaskThreshold.
func (FaceIDVerificationInput) GetRequestID ¶
func (s FaceIDVerificationInput) GetRequestID() string
GetRequestID returns the value of RequestID.
func (FaceIDVerificationInput) GetReturnFeature ¶
func (s FaceIDVerificationInput) GetReturnFeature() OptInt
GetReturnFeature returns the value of ReturnFeature.
func (FaceIDVerificationInput) GetSimThresholdLevel1 ¶
func (s FaceIDVerificationInput) GetSimThresholdLevel1() OptFloat64
GetSimThresholdLevel1 returns the value of SimThresholdLevel1.
func (FaceIDVerificationInput) GetSimThresholdLevel2 ¶
func (s FaceIDVerificationInput) GetSimThresholdLevel2() OptFloat64
GetSimThresholdLevel2 returns the value of SimThresholdLevel2.
func (FaceIDVerificationInput) MarshalJSON ¶
func (s FaceIDVerificationInput) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FaceIDVerificationInput) SetCheck3RandomPose ¶
func (s *FaceIDVerificationInput) SetCheck3RandomPose(val OptInt)
SetCheck3RandomPose sets the value of Check3RandomPose.
func (*FaceIDVerificationInput) SetCheck3StraightPose ¶
func (s *FaceIDVerificationInput) SetCheck3StraightPose(val OptInt)
SetCheck3StraightPose sets the value of Check3StraightPose.
func (*FaceIDVerificationInput) SetFakeThreshold ¶
func (s *FaceIDVerificationInput) SetFakeThreshold(val OptFloat64)
SetFakeThreshold sets the value of FakeThreshold.
func (*FaceIDVerificationInput) SetImageCard ¶
func (s *FaceIDVerificationInput) SetImageCard(val string)
SetImageCard sets the value of ImageCard.
func (*FaceIDVerificationInput) SetImageLive ¶
func (s *FaceIDVerificationInput) SetImageLive(val string)
SetImageLive sets the value of ImageLive.
func (*FaceIDVerificationInput) SetImageLive1 ¶
func (s *FaceIDVerificationInput) SetImageLive1(val OptString)
SetImageLive1 sets the value of ImageLive1.
func (*FaceIDVerificationInput) SetImageLive2 ¶
func (s *FaceIDVerificationInput) SetImageLive2(val OptString)
SetImageLive2 sets the value of ImageLive2.
func (*FaceIDVerificationInput) SetImageLive3 ¶
func (s *FaceIDVerificationInput) SetImageLive3(val OptString)
SetImageLive3 sets the value of ImageLive3.
func (*FaceIDVerificationInput) SetMaskThreshold ¶
func (s *FaceIDVerificationInput) SetMaskThreshold(val OptFloat64)
SetMaskThreshold sets the value of MaskThreshold.
func (*FaceIDVerificationInput) SetRequestID ¶
func (s *FaceIDVerificationInput) SetRequestID(val string)
SetRequestID sets the value of RequestID.
func (*FaceIDVerificationInput) SetReturnFeature ¶
func (s *FaceIDVerificationInput) SetReturnFeature(val OptInt)
SetReturnFeature sets the value of ReturnFeature.
func (*FaceIDVerificationInput) SetSimThresholdLevel1 ¶
func (s *FaceIDVerificationInput) SetSimThresholdLevel1(val OptFloat64)
SetSimThresholdLevel1 sets the value of SimThresholdLevel1.
func (*FaceIDVerificationInput) SetSimThresholdLevel2 ¶
func (s *FaceIDVerificationInput) SetSimThresholdLevel2(val OptFloat64)
SetSimThresholdLevel2 sets the value of SimThresholdLevel2.
func (*FaceIDVerificationInput) UnmarshalJSON ¶
func (s *FaceIDVerificationInput) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (FaceIDVerificationInput) Validate ¶
func (s FaceIDVerificationInput) Validate() error
type FaceIDVerificationInputForm ¶
type FaceIDVerificationInputForm struct { // Request ID. RequestID string `json:"request_id"` // Ảnh card id (chứng minh thư, căn cước công dân) của người dùng. ImageCard ht.MultipartFile `json:"image_card"` // Ảnh chụp khuôn mặt. ImageLive ht.MultipartFile `json:"image_live"` // Ảnh chụp khuôn mặt ở các góc độ khác nhau để tăng độ chính xác khi xác // thực khuôn mặt. ImageLive1 OptMultipartFile `json:"image_live1"` // Ảnh chụp khuôn mặt ở các góc độ khác nhau để tăng độ chính xác khi xác // thực khuôn mặt. ImageLive2 OptMultipartFile `json:"image_live2"` // Ảnh chụp khuôn mặt ở các góc độ khác nhau để tăng độ chính xác khi xác // thực khuôn mặt. ImageLive3 OptMultipartFile `json:"image_live3"` // Kiểm tra các ảnh live image có phải cùng một khuôn mặt hay không. Check3RandomPose OptInt `json:"check_3_random_pose"` // Kiểm tra các ảnh khuôn mặt có fake hay không. Check3StraightPose OptInt `json:"check_3_straight_pose"` // Trả về face feature vector hay không. ReturnFeature OptInt `json:"return_feature"` // Threshold để kiểm tra xem có đeo khẩu trang hay không. MaskThreshold OptFloat64 `json:"mask_threshold"` // Giá trị dùng để check xem khuôn mặt live có phải fake. FakeThreshold OptFloat64 `json:"fake_threshold"` // Độ tương đồng <= sim_threshold_level1 => không cùng 1 người sim_threshold_level1 < // độ tương đồng < sim_threshold_level2 ==> có thể cùng 1 người độ tương đồng // >= sim_threshold_level2 ==> cùng 1 người. SimThresholdLevel1 OptFloat64 `json:"sim_threshold_level1"` // Độ tương đồng <= sim_threshold_level1 => không cùng 1 người sim_threshold_level1 < // độ tương đồng < sim_threshold_level2 ==> có thể cùng 1 người độ tương đồng // >= sim_threshold_level2 ==> cùng 1 người. SimThresholdLevel2 OptFloat64 `json:"sim_threshold_level2"` }
Ref: #/components/schemas/FaceIDVerificationInput
func (FaceIDVerificationInputForm) GetCheck3RandomPose ¶
func (s FaceIDVerificationInputForm) GetCheck3RandomPose() OptInt
GetCheck3RandomPose returns the value of Check3RandomPose.
func (FaceIDVerificationInputForm) GetCheck3StraightPose ¶
func (s FaceIDVerificationInputForm) GetCheck3StraightPose() OptInt
GetCheck3StraightPose returns the value of Check3StraightPose.
func (FaceIDVerificationInputForm) GetFakeThreshold ¶
func (s FaceIDVerificationInputForm) GetFakeThreshold() OptFloat64
GetFakeThreshold returns the value of FakeThreshold.
func (FaceIDVerificationInputForm) GetImageCard ¶
func (s FaceIDVerificationInputForm) GetImageCard() ht.MultipartFile
GetImageCard returns the value of ImageCard.
func (FaceIDVerificationInputForm) GetImageLive ¶
func (s FaceIDVerificationInputForm) GetImageLive() ht.MultipartFile
GetImageLive returns the value of ImageLive.
func (FaceIDVerificationInputForm) GetImageLive1 ¶
func (s FaceIDVerificationInputForm) GetImageLive1() OptMultipartFile
GetImageLive1 returns the value of ImageLive1.
func (FaceIDVerificationInputForm) GetImageLive2 ¶
func (s FaceIDVerificationInputForm) GetImageLive2() OptMultipartFile
GetImageLive2 returns the value of ImageLive2.
func (FaceIDVerificationInputForm) GetImageLive3 ¶
func (s FaceIDVerificationInputForm) GetImageLive3() OptMultipartFile
GetImageLive3 returns the value of ImageLive3.
func (FaceIDVerificationInputForm) GetMaskThreshold ¶
func (s FaceIDVerificationInputForm) GetMaskThreshold() OptFloat64
GetMaskThreshold returns the value of MaskThreshold.
func (FaceIDVerificationInputForm) GetRequestID ¶
func (s FaceIDVerificationInputForm) GetRequestID() string
GetRequestID returns the value of RequestID.
func (FaceIDVerificationInputForm) GetReturnFeature ¶
func (s FaceIDVerificationInputForm) GetReturnFeature() OptInt
GetReturnFeature returns the value of ReturnFeature.
func (FaceIDVerificationInputForm) GetSimThresholdLevel1 ¶
func (s FaceIDVerificationInputForm) GetSimThresholdLevel1() OptFloat64
GetSimThresholdLevel1 returns the value of SimThresholdLevel1.
func (FaceIDVerificationInputForm) GetSimThresholdLevel2 ¶
func (s FaceIDVerificationInputForm) GetSimThresholdLevel2() OptFloat64
GetSimThresholdLevel2 returns the value of SimThresholdLevel2.
func (*FaceIDVerificationInputForm) SetCheck3RandomPose ¶
func (s *FaceIDVerificationInputForm) SetCheck3RandomPose(val OptInt)
SetCheck3RandomPose sets the value of Check3RandomPose.
func (*FaceIDVerificationInputForm) SetCheck3StraightPose ¶
func (s *FaceIDVerificationInputForm) SetCheck3StraightPose(val OptInt)
SetCheck3StraightPose sets the value of Check3StraightPose.
func (*FaceIDVerificationInputForm) SetFakeThreshold ¶
func (s *FaceIDVerificationInputForm) SetFakeThreshold(val OptFloat64)
SetFakeThreshold sets the value of FakeThreshold.
func (*FaceIDVerificationInputForm) SetImageCard ¶
func (s *FaceIDVerificationInputForm) SetImageCard(val ht.MultipartFile)
SetImageCard sets the value of ImageCard.
func (*FaceIDVerificationInputForm) SetImageLive ¶
func (s *FaceIDVerificationInputForm) SetImageLive(val ht.MultipartFile)
SetImageLive sets the value of ImageLive.
func (*FaceIDVerificationInputForm) SetImageLive1 ¶
func (s *FaceIDVerificationInputForm) SetImageLive1(val OptMultipartFile)
SetImageLive1 sets the value of ImageLive1.
func (*FaceIDVerificationInputForm) SetImageLive2 ¶
func (s *FaceIDVerificationInputForm) SetImageLive2(val OptMultipartFile)
SetImageLive2 sets the value of ImageLive2.
func (*FaceIDVerificationInputForm) SetImageLive3 ¶
func (s *FaceIDVerificationInputForm) SetImageLive3(val OptMultipartFile)
SetImageLive3 sets the value of ImageLive3.
func (*FaceIDVerificationInputForm) SetMaskThreshold ¶
func (s *FaceIDVerificationInputForm) SetMaskThreshold(val OptFloat64)
SetMaskThreshold sets the value of MaskThreshold.
func (*FaceIDVerificationInputForm) SetRequestID ¶
func (s *FaceIDVerificationInputForm) SetRequestID(val string)
SetRequestID sets the value of RequestID.
func (*FaceIDVerificationInputForm) SetReturnFeature ¶
func (s *FaceIDVerificationInputForm) SetReturnFeature(val OptInt)
SetReturnFeature sets the value of ReturnFeature.
func (*FaceIDVerificationInputForm) SetSimThresholdLevel1 ¶
func (s *FaceIDVerificationInputForm) SetSimThresholdLevel1(val OptFloat64)
SetSimThresholdLevel1 sets the value of SimThresholdLevel1.
func (*FaceIDVerificationInputForm) SetSimThresholdLevel2 ¶
func (s *FaceIDVerificationInputForm) SetSimThresholdLevel2(val OptFloat64)
SetSimThresholdLevel2 sets the value of SimThresholdLevel2.
func (FaceIDVerificationInputForm) Validate ¶
func (s FaceIDVerificationInputForm) Validate() error
type FaceIDVerificationResult ¶
type FaceIDVerificationResult struct { Message Message `json:"message"` // Request ID. RequestID string `json:"request_id"` VerifyResult OptFaceVerifyResultEnum `json:"verify_result"` // Kết quả xác thực dạng text. VerifyResultText OptString `json:"verify_result_text"` // Độ tương đồng của ảnh khuôn mặt từ thẻ và ảnh chân dung [0-1]. Sim OptFloat64 `json:"sim"` // Vị trí của khuôn mặt detect được trong ảnh card id. FaceLocCard *FaceLocation `json:"face_loc_card"` // Góc nghiêng của khuôn mặt ở ảnh card id. FaceCardAngle OptInt `json:"face_card_angle"` // Vị trí của khuôn mặt detect được trong ảnh chụp chân dung. FaceLocLive *FaceLocation `json:"face_loc_live"` // Góc nghiêng của khuôn mặt ở ảnh chụp chân dung. FaceLiveAngle OptInt `json:"face_live_angle"` // Feature vector của khuôn mặt ở ảnh thẻ. FeatureVectorFaceCard *FaceFeature `json:"feature_vector_face_card"` // Feature vector của khuôn mặt ở ảnh chụp chân dung. FeatureVectorFaceLive *FaceFeature `json:"feature_vector_face_live"` FaceAntiSpoofStatus OptFaceAntiSpoofStatus `json:"face_anti_spoof_status"` // Thời gian thực hiện việc xác thực ở phía server (đơn vị mili giây - ms). VerificationTime OptFloat64 `json:"verification_time"` WearingMask OptMaskResultEnum `json:"wearing_mask"` // Điểm score khi nhận dạng khẩu trang, điểm càng cao thì độ tin tưởng đeo // khẩu trang càng lớn score trong khoảng [0-1]. WearingMaskScore OptFloat64 `json:"wearing_mask_score"` }
Ref: #/components/schemas/FaceIDVerificationResult
func (*FaceIDVerificationResult) Decode ¶
func (s *FaceIDVerificationResult) Decode(d *jx.Decoder) error
Decode decodes FaceIDVerificationResult from json.
func (FaceIDVerificationResult) Encode ¶
func (s FaceIDVerificationResult) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (FaceIDVerificationResult) GetFaceAntiSpoofStatus ¶
func (s FaceIDVerificationResult) GetFaceAntiSpoofStatus() OptFaceAntiSpoofStatus
GetFaceAntiSpoofStatus returns the value of FaceAntiSpoofStatus.
func (FaceIDVerificationResult) GetFaceCardAngle ¶
func (s FaceIDVerificationResult) GetFaceCardAngle() OptInt
GetFaceCardAngle returns the value of FaceCardAngle.
func (FaceIDVerificationResult) GetFaceLiveAngle ¶
func (s FaceIDVerificationResult) GetFaceLiveAngle() OptInt
GetFaceLiveAngle returns the value of FaceLiveAngle.
func (FaceIDVerificationResult) GetFaceLocCard ¶
func (s FaceIDVerificationResult) GetFaceLocCard() *FaceLocation
GetFaceLocCard returns the value of FaceLocCard.
func (FaceIDVerificationResult) GetFaceLocLive ¶
func (s FaceIDVerificationResult) GetFaceLocLive() *FaceLocation
GetFaceLocLive returns the value of FaceLocLive.
func (FaceIDVerificationResult) GetFeatureVectorFaceCard ¶
func (s FaceIDVerificationResult) GetFeatureVectorFaceCard() *FaceFeature
GetFeatureVectorFaceCard returns the value of FeatureVectorFaceCard.
func (FaceIDVerificationResult) GetFeatureVectorFaceLive ¶
func (s FaceIDVerificationResult) GetFeatureVectorFaceLive() *FaceFeature
GetFeatureVectorFaceLive returns the value of FeatureVectorFaceLive.
func (FaceIDVerificationResult) GetMessage ¶
func (s FaceIDVerificationResult) GetMessage() Message
GetMessage returns the value of Message.
func (FaceIDVerificationResult) GetRequestID ¶
func (s FaceIDVerificationResult) GetRequestID() string
GetRequestID returns the value of RequestID.
func (FaceIDVerificationResult) GetSim ¶
func (s FaceIDVerificationResult) GetSim() OptFloat64
GetSim returns the value of Sim.
func (FaceIDVerificationResult) GetVerificationTime ¶
func (s FaceIDVerificationResult) GetVerificationTime() OptFloat64
GetVerificationTime returns the value of VerificationTime.
func (FaceIDVerificationResult) GetVerifyResult ¶
func (s FaceIDVerificationResult) GetVerifyResult() OptFaceVerifyResultEnum
GetVerifyResult returns the value of VerifyResult.
func (FaceIDVerificationResult) GetVerifyResultText ¶
func (s FaceIDVerificationResult) GetVerifyResultText() OptString
GetVerifyResultText returns the value of VerifyResultText.
func (FaceIDVerificationResult) GetWearingMask ¶
func (s FaceIDVerificationResult) GetWearingMask() OptMaskResultEnum
GetWearingMask returns the value of WearingMask.
func (FaceIDVerificationResult) GetWearingMaskScore ¶
func (s FaceIDVerificationResult) GetWearingMaskScore() OptFloat64
GetWearingMaskScore returns the value of WearingMaskScore.
func (FaceIDVerificationResult) MarshalJSON ¶
func (s FaceIDVerificationResult) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FaceIDVerificationResult) SetFaceAntiSpoofStatus ¶
func (s *FaceIDVerificationResult) SetFaceAntiSpoofStatus(val OptFaceAntiSpoofStatus)
SetFaceAntiSpoofStatus sets the value of FaceAntiSpoofStatus.
func (*FaceIDVerificationResult) SetFaceCardAngle ¶
func (s *FaceIDVerificationResult) SetFaceCardAngle(val OptInt)
SetFaceCardAngle sets the value of FaceCardAngle.
func (*FaceIDVerificationResult) SetFaceLiveAngle ¶
func (s *FaceIDVerificationResult) SetFaceLiveAngle(val OptInt)
SetFaceLiveAngle sets the value of FaceLiveAngle.
func (*FaceIDVerificationResult) SetFaceLocCard ¶
func (s *FaceIDVerificationResult) SetFaceLocCard(val *FaceLocation)
SetFaceLocCard sets the value of FaceLocCard.
func (*FaceIDVerificationResult) SetFaceLocLive ¶
func (s *FaceIDVerificationResult) SetFaceLocLive(val *FaceLocation)
SetFaceLocLive sets the value of FaceLocLive.
func (*FaceIDVerificationResult) SetFeatureVectorFaceCard ¶
func (s *FaceIDVerificationResult) SetFeatureVectorFaceCard(val *FaceFeature)
SetFeatureVectorFaceCard sets the value of FeatureVectorFaceCard.
func (*FaceIDVerificationResult) SetFeatureVectorFaceLive ¶
func (s *FaceIDVerificationResult) SetFeatureVectorFaceLive(val *FaceFeature)
SetFeatureVectorFaceLive sets the value of FeatureVectorFaceLive.
func (*FaceIDVerificationResult) SetMessage ¶
func (s *FaceIDVerificationResult) SetMessage(val Message)
SetMessage sets the value of Message.
func (*FaceIDVerificationResult) SetRequestID ¶
func (s *FaceIDVerificationResult) SetRequestID(val string)
SetRequestID sets the value of RequestID.
func (*FaceIDVerificationResult) SetSim ¶
func (s *FaceIDVerificationResult) SetSim(val OptFloat64)
SetSim sets the value of Sim.
func (*FaceIDVerificationResult) SetVerificationTime ¶
func (s *FaceIDVerificationResult) SetVerificationTime(val OptFloat64)
SetVerificationTime sets the value of VerificationTime.
func (*FaceIDVerificationResult) SetVerifyResult ¶
func (s *FaceIDVerificationResult) SetVerifyResult(val OptFaceVerifyResultEnum)
SetVerifyResult sets the value of VerifyResult.
func (*FaceIDVerificationResult) SetVerifyResultText ¶
func (s *FaceIDVerificationResult) SetVerifyResultText(val OptString)
SetVerifyResultText sets the value of VerifyResultText.
func (*FaceIDVerificationResult) SetWearingMask ¶
func (s *FaceIDVerificationResult) SetWearingMask(val OptMaskResultEnum)
SetWearingMask sets the value of WearingMask.
func (*FaceIDVerificationResult) SetWearingMaskScore ¶
func (s *FaceIDVerificationResult) SetWearingMaskScore(val OptFloat64)
SetWearingMaskScore sets the value of WearingMaskScore.
func (*FaceIDVerificationResult) UnmarshalJSON ¶
func (s *FaceIDVerificationResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (FaceIDVerificationResult) Validate ¶
func (s FaceIDVerificationResult) Validate() error
type FaceLocation ¶
type FaceLocation []int
func (*FaceLocation) Decode ¶
func (s *FaceLocation) Decode(d *jx.Decoder) error
Decode decodes FaceLocation from json.
func (FaceLocation) Encode ¶
func (s FaceLocation) Encode(e *jx.Encoder)
Encode encodes FaceLocation as json.
func (FaceLocation) MarshalJSON ¶
func (s FaceLocation) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FaceLocation) UnmarshalJSON ¶
func (s *FaceLocation) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (FaceLocation) Validate ¶
func (s FaceLocation) Validate() error
type FaceRecognitionReq ¶
type FaceRecognitionReq interface {
// contains filtered or unexported methods
}
type FaceRecognitionRes ¶
type FaceRecognitionRes interface {
// contains filtered or unexported methods
}
type FaceRecognitionResult ¶
type FaceRecognitionResult struct { FaceLoc FaceLocation `json:"face_loc"` // Size of face in pixels. FaceSize int `json:"face_size"` // List of top-k faces with highest confidence. TopK []FaceIDResult `json:"top_k"` }
Ref: #/components/schemas/FaceRecognitionResult
func (*FaceRecognitionResult) Decode ¶
func (s *FaceRecognitionResult) Decode(d *jx.Decoder) error
Decode decodes FaceRecognitionResult from json.
func (FaceRecognitionResult) Encode ¶
func (s FaceRecognitionResult) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (FaceRecognitionResult) GetFaceLoc ¶
func (s FaceRecognitionResult) GetFaceLoc() FaceLocation
GetFaceLoc returns the value of FaceLoc.
func (FaceRecognitionResult) GetFaceSize ¶
func (s FaceRecognitionResult) GetFaceSize() int
GetFaceSize returns the value of FaceSize.
func (FaceRecognitionResult) GetTopK ¶
func (s FaceRecognitionResult) GetTopK() []FaceIDResult
GetTopK returns the value of TopK.
func (FaceRecognitionResult) MarshalJSON ¶
func (s FaceRecognitionResult) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FaceRecognitionResult) SetFaceLoc ¶
func (s *FaceRecognitionResult) SetFaceLoc(val FaceLocation)
SetFaceLoc sets the value of FaceLoc.
func (*FaceRecognitionResult) SetFaceSize ¶
func (s *FaceRecognitionResult) SetFaceSize(val int)
SetFaceSize sets the value of FaceSize.
func (*FaceRecognitionResult) SetTopK ¶
func (s *FaceRecognitionResult) SetTopK(val []FaceIDResult)
SetTopK sets the value of TopK.
func (*FaceRecognitionResult) UnmarshalJSON ¶
func (s *FaceRecognitionResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (FaceRecognitionResult) Validate ¶
func (s FaceRecognitionResult) Validate() error
type FaceRegisterReq ¶
type FaceRegisterReq interface {
// contains filtered or unexported methods
}
type FaceRegisterRes ¶
type FaceRegisterRes interface {
// contains filtered or unexported methods
}
type FaceUnregisterOK ¶
type FaceUnregisterOK struct {
Message Message `json:"message"`
}
func (*FaceUnregisterOK) Decode ¶
func (s *FaceUnregisterOK) Decode(d *jx.Decoder) error
Decode decodes FaceUnregisterOK from json.
func (FaceUnregisterOK) Encode ¶
func (s FaceUnregisterOK) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (FaceUnregisterOK) GetMessage ¶
func (s FaceUnregisterOK) GetMessage() Message
GetMessage returns the value of Message.
func (FaceUnregisterOK) MarshalJSON ¶
func (s FaceUnregisterOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FaceUnregisterOK) SetMessage ¶
func (s *FaceUnregisterOK) SetMessage(val Message)
SetMessage sets the value of Message.
func (*FaceUnregisterOK) UnmarshalJSON ¶
func (s *FaceUnregisterOK) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type FaceUnregisterReq ¶
type FaceUnregisterReq struct { // Customer is unique name. Used in case many customers have the same real name. UniqueName string `json:"unique_name"` // Customer is Face ID, returned in the result when registering a Customer is photo of the face in // the system. If face_id is not provided, all customer photos with unique_name will be removed from // the system. FaceID OptString `json:"face_id"` }
Merged schema.
func (*FaceUnregisterReq) Decode ¶
func (s *FaceUnregisterReq) Decode(d *jx.Decoder) error
Decode decodes FaceUnregisterReq from json.
func (FaceUnregisterReq) Encode ¶
func (s FaceUnregisterReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (FaceUnregisterReq) GetFaceID ¶
func (s FaceUnregisterReq) GetFaceID() OptString
GetFaceID returns the value of FaceID.
func (FaceUnregisterReq) GetUniqueName ¶
func (s FaceUnregisterReq) GetUniqueName() string
GetUniqueName returns the value of UniqueName.
func (FaceUnregisterReq) MarshalJSON ¶
func (s FaceUnregisterReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FaceUnregisterReq) SetFaceID ¶
func (s *FaceUnregisterReq) SetFaceID(val OptString)
SetFaceID sets the value of FaceID.
func (*FaceUnregisterReq) SetUniqueName ¶
func (s *FaceUnregisterReq) SetUniqueName(val string)
SetUniqueName sets the value of UniqueName.
func (*FaceUnregisterReq) UnmarshalJSON ¶
func (s *FaceUnregisterReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type FaceUnregisterRes ¶
type FaceUnregisterRes interface {
// contains filtered or unexported methods
}
type FaceVerificationReq ¶
type FaceVerificationReq interface {
// contains filtered or unexported methods
}
type FaceVerificationRes ¶
type FaceVerificationRes interface {
// contains filtered or unexported methods
}
type FaceVerifyResultEnum ¶
type FaceVerifyResultEnum int
Kết quả xác thực dạng số: * `0` - not same * `1` - may be same * `2` - same person. Ref: #/components/schemas/FaceVerifyResultEnum
const ( FaceVerifyResultEnum0 FaceVerifyResultEnum = 0 FaceVerifyResultEnum1 FaceVerifyResultEnum = 1 FaceVerifyResultEnum2 FaceVerifyResultEnum = 2 )
func (*FaceVerifyResultEnum) Decode ¶
func (s *FaceVerifyResultEnum) Decode(d *jx.Decoder) error
Decode decodes FaceVerifyResultEnum from json.
func (FaceVerifyResultEnum) Encode ¶
func (s FaceVerifyResultEnum) Encode(e *jx.Encoder)
Encode encodes FaceVerifyResultEnum as json.
func (FaceVerifyResultEnum) MarshalJSON ¶
func (s FaceVerifyResultEnum) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FaceVerifyResultEnum) UnmarshalJSON ¶
func (s *FaceVerifyResultEnum) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (FaceVerifyResultEnum) Validate ¶
func (s FaceVerifyResultEnum) Validate() error
type FakeTypeEnum ¶
type FakeTypeEnum string
Trả về loại lỗi giả mạo * `N/A` - ảnh selfie là ảnh thật * `SCREEN` - ảnh chụp lại từ màn hình * `RANDOM_POSE` - ảnh giả mạo do kiểm tra với 3 ảnh chụp quay các hướng * `STRAIGHT_POSE` - ảnh giả mạo do kiểm tra 3 ảnh chụp thẳng liên tiếp. Ref: #/components/schemas/FakeTypeEnum
const ( FakeTypeEnumNA FakeTypeEnum = "N/A" FakeTypeEnumSCREEN FakeTypeEnum = "SCREEN" FakeTypeEnumRANDOMPOSE FakeTypeEnum = "RANDOM_POSE" FakeTypeEnumSTRAIGHTPOSE FakeTypeEnum = "STRAIGHT_POSE" )
func (*FakeTypeEnum) Decode ¶
func (s *FakeTypeEnum) Decode(d *jx.Decoder) error
Decode decodes FakeTypeEnum from json.
func (FakeTypeEnum) Encode ¶
func (s FakeTypeEnum) Encode(e *jx.Encoder)
Encode encodes FakeTypeEnum as json.
func (FakeTypeEnum) MarshalJSON ¶
func (s FakeTypeEnum) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FakeTypeEnum) UnmarshalJSON ¶
func (s *FakeTypeEnum) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (FakeTypeEnum) Validate ¶
func (s FakeTypeEnum) Validate() error
type GatewayError ¶
type GatewayError struct { // Thông điệp lỗi. Message string `json:"message"` }
Thông báo lỗi trả về từ Gateway. Ref: #/components/schemas/GatewayError
func (*GatewayError) Decode ¶
func (s *GatewayError) Decode(d *jx.Decoder) error
Decode decodes GatewayError from json.
func (GatewayError) Encode ¶
func (s GatewayError) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (GatewayError) GetMessage ¶
func (s GatewayError) GetMessage() string
GetMessage returns the value of Message.
func (GatewayError) MarshalJSON ¶
func (s GatewayError) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GatewayError) SetMessage ¶
func (s *GatewayError) SetMessage(val string)
SetMessage sets the value of Message.
func (*GatewayError) UnmarshalJSON ¶
func (s *GatewayError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type IDCheckEnum ¶
type IDCheckEnum string
Kết quả kiểm tra văn bản: * `FAKE` - giả mạo * `CONER` * `REAL` - giấy tờ thực * `PUNCH` - Đục lỗ * `BW` - photocopy đen trắng * `REAL` - giấy tờ OK. Ref: #/components/schemas/IDCheckEnum
const ( IDCheckEnumBW IDCheckEnum = "BW" IDCheckEnumCONER IDCheckEnum = "CONER" IDCheckEnumFAKE IDCheckEnum = "FAKE" IDCheckEnumPUNCH IDCheckEnum = "PUNCH" IDCheckEnumREAL IDCheckEnum = "REAL" )
func (*IDCheckEnum) Decode ¶
func (s *IDCheckEnum) Decode(d *jx.Decoder) error
Decode decodes IDCheckEnum from json.
func (IDCheckEnum) Encode ¶
func (s IDCheckEnum) Encode(e *jx.Encoder)
Encode encodes IDCheckEnum as json.
func (IDCheckEnum) MarshalJSON ¶
func (s IDCheckEnum) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IDCheckEnum) UnmarshalJSON ¶
func (s *IDCheckEnum) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (IDCheckEnum) Validate ¶
func (s IDCheckEnum) Validate() error
type IDTypeEnum ¶
type IDTypeEnum string
Phân biệt mặt trước/mặt sau: * `0` - mặt trước * `1` - mặt sau. Ref: #/components/schemas/IDTypeEnum
const ( IDTypeEnum0 IDTypeEnum = "0" IDTypeEnum1 IDTypeEnum = "1" )
func (*IDTypeEnum) Decode ¶
func (s *IDTypeEnum) Decode(d *jx.Decoder) error
Decode decodes IDTypeEnum from json.
func (IDTypeEnum) Encode ¶
func (s IDTypeEnum) Encode(e *jx.Encoder)
Encode encodes IDTypeEnum as json.
func (IDTypeEnum) MarshalJSON ¶
func (s IDTypeEnum) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IDTypeEnum) UnmarshalJSON ¶
func (s *IDTypeEnum) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (IDTypeEnum) Validate ¶
func (s IDTypeEnum) Validate() error
type MaskResultEnum ¶
type MaskResultEnum string
Ref: #/components/schemas/MaskResultEnum
const ( MaskResultEnumYES MaskResultEnum = "YES" MaskResultEnumNO MaskResultEnum = "NO" )
func (*MaskResultEnum) Decode ¶
func (s *MaskResultEnum) Decode(d *jx.Decoder) error
Decode decodes MaskResultEnum from json.
func (MaskResultEnum) Encode ¶
func (s MaskResultEnum) Encode(e *jx.Encoder)
Encode encodes MaskResultEnum as json.
func (MaskResultEnum) MarshalJSON ¶
func (s MaskResultEnum) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*MaskResultEnum) UnmarshalJSON ¶
func (s *MaskResultEnum) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (MaskResultEnum) Validate ¶
func (s MaskResultEnum) Validate() error
type Message ¶
type Message struct { // Mã lỗi. ErrorCode string `json:"error_code"` // Mô tả lỗi. ErrorMessage string `json:"error_message"` // API version. APIVersion OptString `json:"api_version"` // Copyright. CopyRight OptString `json:"copy_right"` // Information. Info OptString `json:"info"` }
Thông tin thêm về kết quả trả về. Ví dụ: ```{"error_message": "000", "error_code": "OK"}```. Ref: #/components/schemas/Message
func (Message) GetAPIVersion ¶
GetAPIVersion returns the value of APIVersion.
func (Message) GetCopyRight ¶
GetCopyRight returns the value of CopyRight.
func (Message) GetErrorCode ¶
GetErrorCode returns the value of ErrorCode.
func (Message) GetErrorMessage ¶
GetErrorMessage returns the value of ErrorMessage.
func (Message) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Message) SetAPIVersion ¶
SetAPIVersion sets the value of APIVersion.
func (*Message) SetCopyRight ¶
SetCopyRight sets the value of CopyRight.
func (*Message) SetErrorCode ¶
SetErrorCode sets the value of ErrorCode.
func (*Message) SetErrorMessage ¶
SetErrorMessage sets the value of ErrorMessage.
func (*Message) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OCRInput ¶
type OCRInput struct { RequestID string `json:"request_id"` Image string `json:"image"` // Giá trị ngưỡng để kiểm tra id_full về mặt đầy đủ thông tin công dân, CMND.. // ) yêu cầu request_id của mặt trước và hay không. IDFullThr OptFloat32 `json:"id_full_thr"` }
Ref: #/components/schemas/OCRInput
func (OCRInput) GetIDFullThr ¶
func (s OCRInput) GetIDFullThr() OptFloat32
GetIDFullThr returns the value of IDFullThr.
func (OCRInput) GetRequestID ¶
GetRequestID returns the value of RequestID.
func (*OCRInput) SetIDFullThr ¶
func (s *OCRInput) SetIDFullThr(val OptFloat32)
SetIDFullThr sets the value of IDFullThr.
func (*OCRInput) SetRequestID ¶
SetRequestID sets the value of RequestID.
type OCRInputForm ¶
type OCRInputForm struct { RequestID string `json:"request_id"` Image ht.MultipartFile `json:"image"` // Giá trị ngưỡng để kiểm tra id_full về mặt đầy đủ thông tin công dân, CMND.. // ) yêu cầu request_id của mặt trước và hay không. IDFullThr OptFloat32 `json:"id_full_thr"` }
Ref: #/components/schemas/OCRInput
func (OCRInputForm) GetIDFullThr ¶
func (s OCRInputForm) GetIDFullThr() OptFloat32
GetIDFullThr returns the value of IDFullThr.
func (OCRInputForm) GetImage ¶
func (s OCRInputForm) GetImage() ht.MultipartFile
GetImage returns the value of Image.
func (OCRInputForm) GetRequestID ¶
func (s OCRInputForm) GetRequestID() string
GetRequestID returns the value of RequestID.
func (*OCRInputForm) SetIDFullThr ¶
func (s *OCRInputForm) SetIDFullThr(val OptFloat32)
SetIDFullThr sets the value of IDFullThr.
func (*OCRInputForm) SetImage ¶
func (s *OCRInputForm) SetImage(val ht.MultipartFile)
SetImage sets the value of Image.
func (*OCRInputForm) SetRequestID ¶
func (s *OCRInputForm) SetRequestID(val string)
SetRequestID sets the value of RequestID.
func (OCRInputForm) Validate ¶
func (s OCRInputForm) Validate() error
type OCRResult ¶
type OCRResult struct { Document OptDocumentEnum `json:"document"` // Mã kết quả. ResultCode OptOCRResultResultCode `json:"result_code"` // Container id. ServerName OptString `json:"server_name"` // Server version. ServerVer OptString `json:"server_ver"` IDCheck OptIDCheckEnum `json:"id_check"` // Check xem giấy tờ có full về mặt THÔNG TIN hay không // * `1` - Full // * `0` - Không full; bị chụp thiếu // Note: trường hợp số ID bị che (dẫn tới score < id_full_thr (mặc định 0.8) --> // not full) Giấy tờ có thể không đầy đủ về mặt hình ảnh(ví dụ không có // hình ảnh khuôn mặt), nhưng nếu vẫn đầy đủ thông tin -- > id_full =1. IDFull OptInt `json:"id_full"` // ID logic: // * `0` - check not OK // * `1` - check OK. IDLogic OptString `json:"id_logic"` // Nội dung kiểm tra logic: // * `OK` - logic trên giấy tờ đúng theo quy định // * `ID is expired` - giấy tờ đã hết hạn // * `Not match province code` - sai mã tỉnh // * `Not match sex code` - Giới tính trên giấy tờ và trong số ID không trùng khớp // * `Not match year code` - Năm sinh trên giấy tờ và trong số ID không trùng khớp // * `Expiry subtract birthday not good` - Ngày tháng năm sinh và ngày tháng hết hạn không // hợp lệ (đối với CCCD; ngày hết hạn là khi công dân đủ 25, 40, 60 tuổi hoặc // không có thời hạn) // * `ID can be fake` - trường hợp có thể đang bị giả mạo về chữ "CĂN CƯỚC // CÔNG DÂN/CHỨNG MINH NHÂN DÂN" đối với giấy tờ thẻ cứng. IDLogicMessage OptString `json:"id_logic_message"` IDType OptIDTypeEnum `json:"id_type"` ID OptString `json:"id"` // Độ tin tưởng của trường ID (là chuỗi string của 1 mảng các giá trị float // từ 0-1) // *Chú ý*: độ tin tưởng của ký tự bất kì < 0.8 --> cảnh báo đầu vào kém. Idconf OptString `json:"idconf"` // Tên khách hàng trên giấy tờ. Name OptString `json:"name"` // Độ tin tưởng trường họ tên (là chuỗi string của 1 mảng các giá trị float // từ 0-1). Nameconf OptString `json:"nameconf"` // Ngày sinh. Birthday OptString `json:"birthday"` // Độ tin tưởng trường ngày tháng năm sinh (là chuỗi string của 1 mảng các giá // trị float từ 0-1). Birthdayconf OptString `json:"birthdayconf"` // Giới tính. Sex OptString `json:"sex"` // Độ tin tưởng trường giới tính (là chuỗi string của 1 mảng các giá trị float // từ 0-1). Sexconf OptString `json:"sexconf"` // Nguyên quán. Hometown OptString `json:"hometown"` // Độ tin tưởng trường nguyên quán (là chuỗi string của 1 mảng các giá trị // float từ 0-1). Hometownconf OptString `json:"hometownconf"` // Địa chỉ thường trú. Address OptString `json:"address"` // Độ tin tưởng trường địa chỉ thường trú (là chuỗi string của 1 mảng các // giá trị float từ 0-1). Addressconf OptString `json:"addressconf"` // Thời hạn giấy tờ (Với BLX có trường hợp không thời hạn). Chú ý: trường // ngày hết hạn có dạng dd-mm-yyyy hoặc Không thời hạn --> nếu không phù hợp // với các dạng này(bị che, tẩy xóa) --> giá trị nhận dạng là N/A. Expiry OptString `json:"expiry"` // Độ tin tưởng của trường hết hạn (là chuỗi string của 1 mảng các giá trị // float từ 0-1). Expiryconf OptString `json:"expiryconf"` // Tôn giáo. Religion OptString `json:"religion"` // Độ tin tưởng của trường tôn giáo (là chuỗi string của 1 mảng các giá trị // float từ 0-1). Religionconf OptString `json:"religionconf"` // Ngày cấp *Chú ý*: trường ngày cấp có dạng dd-mm-yyyy --> nếu không phù hợp // với các dạng này(bị che, tẩy xóa) --> giá trị nhận dạng là N/A. IssueDate OptString `json:"issue_date"` // Độ tin tưởng của trường ngày cấp (là chuỗi string của 1 mảng các giá trị // float từ 0-1). IssueDateConf OptString `json:"issue_date_conf"` // Nơi cấp. IssueBy OptString `json:"issue_by"` // Độ tin tưởng của trường nơi cấp (là chuỗi string của 1 mảng các giá trị // float từ 0-1). IssueByConf OptString `json:"issue_by_conf"` // Dân tộc. Ethnicity OptString `json:"ethnicity"` // Độ tin tưởng của trường dân tộc (là chuỗi string của 1 mảng các giá trị // float từ 0-1). Ethnicityconf OptString `json:"ethnicityconf"` // Đặt điểm. Characteristics OptString `json:"characteristics"` // Độ tin tưởng của trường đặt điểm (là chuỗi string của 1 mảng các giá // trị float từ 0-1). CharacteristicsConf OptString `json:"characteristics_conf"` // Đường phố. Street OptString `json:"street"` // Tên đường. StreetName OptString `json:"street_name"` // Quốc gia. Country OptString `json:"country"` // Quốc gia. National OptString `json:"national"` // Loại BLX. Class OptString `json:"class"` // Chỉ có ý nghĩa với passport. Số CMT của Vietnam. OptinalData OptString `json:"optinal_data"` // Loại Passport (công vụ/thường - PK/P). PassportType OptString `json:"passport_type"` // Tỉnh/TP. Province OptString `json:"province"` // Quận/Huyện. District OptString `json:"district"` Precinct OptString `json:"precinct"` OptionalData OptString `json:"optional_data"` Copyright OptString `json:"copyright"` }
Ref: #/components/schemas/OCRResult
func (OCRResult) GetAddress ¶
GetAddress returns the value of Address.
func (OCRResult) GetAddressconf ¶
GetAddressconf returns the value of Addressconf.
func (OCRResult) GetBirthday ¶
GetBirthday returns the value of Birthday.
func (OCRResult) GetBirthdayconf ¶
GetBirthdayconf returns the value of Birthdayconf.
func (OCRResult) GetCharacteristics ¶
GetCharacteristics returns the value of Characteristics.
func (OCRResult) GetCharacteristicsConf ¶
GetCharacteristicsConf returns the value of CharacteristicsConf.
func (OCRResult) GetCopyright ¶
GetCopyright returns the value of Copyright.
func (OCRResult) GetCountry ¶
GetCountry returns the value of Country.
func (OCRResult) GetDistrict ¶
GetDistrict returns the value of District.
func (OCRResult) GetDocument ¶
func (s OCRResult) GetDocument() OptDocumentEnum
GetDocument returns the value of Document.
func (OCRResult) GetEthnicity ¶
GetEthnicity returns the value of Ethnicity.
func (OCRResult) GetEthnicityconf ¶
GetEthnicityconf returns the value of Ethnicityconf.
func (OCRResult) GetExpiryconf ¶
GetExpiryconf returns the value of Expiryconf.
func (OCRResult) GetHometown ¶
GetHometown returns the value of Hometown.
func (OCRResult) GetHometownconf ¶
GetHometownconf returns the value of Hometownconf.
func (OCRResult) GetIDCheck ¶
func (s OCRResult) GetIDCheck() OptIDCheckEnum
GetIDCheck returns the value of IDCheck.
func (OCRResult) GetIDLogic ¶
GetIDLogic returns the value of IDLogic.
func (OCRResult) GetIDLogicMessage ¶
GetIDLogicMessage returns the value of IDLogicMessage.
func (OCRResult) GetIDType ¶
func (s OCRResult) GetIDType() OptIDTypeEnum
GetIDType returns the value of IDType.
func (OCRResult) GetIssueBy ¶
GetIssueBy returns the value of IssueBy.
func (OCRResult) GetIssueByConf ¶
GetIssueByConf returns the value of IssueByConf.
func (OCRResult) GetIssueDate ¶
GetIssueDate returns the value of IssueDate.
func (OCRResult) GetIssueDateConf ¶
GetIssueDateConf returns the value of IssueDateConf.
func (OCRResult) GetNameconf ¶
GetNameconf returns the value of Nameconf.
func (OCRResult) GetNational ¶
GetNational returns the value of National.
func (OCRResult) GetOptinalData ¶
GetOptinalData returns the value of OptinalData.
func (OCRResult) GetOptionalData ¶
GetOptionalData returns the value of OptionalData.
func (OCRResult) GetPassportType ¶
GetPassportType returns the value of PassportType.
func (OCRResult) GetPrecinct ¶
GetPrecinct returns the value of Precinct.
func (OCRResult) GetProvince ¶
GetProvince returns the value of Province.
func (OCRResult) GetReligion ¶
GetReligion returns the value of Religion.
func (OCRResult) GetReligionconf ¶
GetReligionconf returns the value of Religionconf.
func (OCRResult) GetResultCode ¶
func (s OCRResult) GetResultCode() OptOCRResultResultCode
GetResultCode returns the value of ResultCode.
func (OCRResult) GetServerName ¶
GetServerName returns the value of ServerName.
func (OCRResult) GetServerVer ¶
GetServerVer returns the value of ServerVer.
func (OCRResult) GetSexconf ¶
GetSexconf returns the value of Sexconf.
func (OCRResult) GetStreetName ¶
GetStreetName returns the value of StreetName.
func (OCRResult) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OCRResult) SetAddress ¶
SetAddress sets the value of Address.
func (*OCRResult) SetAddressconf ¶
SetAddressconf sets the value of Addressconf.
func (*OCRResult) SetBirthday ¶
SetBirthday sets the value of Birthday.
func (*OCRResult) SetBirthdayconf ¶
SetBirthdayconf sets the value of Birthdayconf.
func (*OCRResult) SetCharacteristics ¶
SetCharacteristics sets the value of Characteristics.
func (*OCRResult) SetCharacteristicsConf ¶
SetCharacteristicsConf sets the value of CharacteristicsConf.
func (*OCRResult) SetCopyright ¶
SetCopyright sets the value of Copyright.
func (*OCRResult) SetCountry ¶
SetCountry sets the value of Country.
func (*OCRResult) SetDistrict ¶
SetDistrict sets the value of District.
func (*OCRResult) SetDocument ¶
func (s *OCRResult) SetDocument(val OptDocumentEnum)
SetDocument sets the value of Document.
func (*OCRResult) SetEthnicity ¶
SetEthnicity sets the value of Ethnicity.
func (*OCRResult) SetEthnicityconf ¶
SetEthnicityconf sets the value of Ethnicityconf.
func (*OCRResult) SetExpiryconf ¶
SetExpiryconf sets the value of Expiryconf.
func (*OCRResult) SetHometown ¶
SetHometown sets the value of Hometown.
func (*OCRResult) SetHometownconf ¶
SetHometownconf sets the value of Hometownconf.
func (*OCRResult) SetIDCheck ¶
func (s *OCRResult) SetIDCheck(val OptIDCheckEnum)
SetIDCheck sets the value of IDCheck.
func (*OCRResult) SetIDLogic ¶
SetIDLogic sets the value of IDLogic.
func (*OCRResult) SetIDLogicMessage ¶
SetIDLogicMessage sets the value of IDLogicMessage.
func (*OCRResult) SetIDType ¶
func (s *OCRResult) SetIDType(val OptIDTypeEnum)
SetIDType sets the value of IDType.
func (*OCRResult) SetIssueBy ¶
SetIssueBy sets the value of IssueBy.
func (*OCRResult) SetIssueByConf ¶
SetIssueByConf sets the value of IssueByConf.
func (*OCRResult) SetIssueDate ¶
SetIssueDate sets the value of IssueDate.
func (*OCRResult) SetIssueDateConf ¶
SetIssueDateConf sets the value of IssueDateConf.
func (*OCRResult) SetNameconf ¶
SetNameconf sets the value of Nameconf.
func (*OCRResult) SetNational ¶
SetNational sets the value of National.
func (*OCRResult) SetOptinalData ¶
SetOptinalData sets the value of OptinalData.
func (*OCRResult) SetOptionalData ¶
SetOptionalData sets the value of OptionalData.
func (*OCRResult) SetPassportType ¶
SetPassportType sets the value of PassportType.
func (*OCRResult) SetPrecinct ¶
SetPrecinct sets the value of Precinct.
func (*OCRResult) SetProvince ¶
SetProvince sets the value of Province.
func (*OCRResult) SetReligion ¶
SetReligion sets the value of Religion.
func (*OCRResult) SetReligionconf ¶
SetReligionconf sets the value of Religionconf.
func (*OCRResult) SetResultCode ¶
func (s *OCRResult) SetResultCode(val OptOCRResultResultCode)
SetResultCode sets the value of ResultCode.
func (*OCRResult) SetServerName ¶
SetServerName sets the value of ServerName.
func (*OCRResult) SetServerVer ¶
SetServerVer sets the value of ServerVer.
func (*OCRResult) SetSexconf ¶
SetSexconf sets the value of Sexconf.
func (*OCRResult) SetStreetName ¶
SetStreetName sets the value of StreetName.
func (*OCRResult) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OCRResultResultCode ¶
type OCRResultResultCode int
Mã kết quả.
const ( OCRResultResultCode200 OCRResultResultCode = 200 OCRResultResultCode500 OCRResultResultCode = 500 OCRResultResultCode501 OCRResultResultCode = 501 OCRResultResultCode401 OCRResultResultCode = 401 OCRResultResultCode402 OCRResultResultCode = 402 OCRResultResultCode201 OCRResultResultCode = 201 )
func (*OCRResultResultCode) Decode ¶
func (s *OCRResultResultCode) Decode(d *jx.Decoder) error
Decode decodes OCRResultResultCode from json.
func (OCRResultResultCode) Encode ¶
func (s OCRResultResultCode) Encode(e *jx.Encoder)
Encode encodes OCRResultResultCode as json.
func (OCRResultResultCode) MarshalJSON ¶
func (s OCRResultResultCode) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OCRResultResultCode) UnmarshalJSON ¶
func (s *OCRResultResultCode) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (OCRResultResultCode) Validate ¶
func (s OCRResultResultCode) Validate() error
type OCRecognitionRes ¶
type OCRecognitionRes interface {
// contains filtered or unexported methods
}
type OptDocumentEnum ¶
type OptDocumentEnum struct { Value DocumentEnum Set bool }
OptDocumentEnum is optional DocumentEnum.
func NewOptDocumentEnum ¶
func NewOptDocumentEnum(v DocumentEnum) OptDocumentEnum
NewOptDocumentEnum returns new OptDocumentEnum with value set to v.
func (*OptDocumentEnum) Decode ¶
func (o *OptDocumentEnum) Decode(d *jx.Decoder) error
Decode decodes DocumentEnum from json.
func (OptDocumentEnum) Encode ¶
func (o OptDocumentEnum) Encode(e *jx.Encoder)
Encode encodes DocumentEnum as json.
func (OptDocumentEnum) Get ¶
func (o OptDocumentEnum) Get() (v DocumentEnum, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptDocumentEnum) IsSet ¶
func (o OptDocumentEnum) IsSet() bool
IsSet returns true if OptDocumentEnum was set.
func (OptDocumentEnum) MarshalJSON ¶
func (s OptDocumentEnum) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptDocumentEnum) Or ¶
func (o OptDocumentEnum) Or(d DocumentEnum) DocumentEnum
Or returns value if set, or given parameter if does not.
func (*OptDocumentEnum) SetTo ¶
func (o *OptDocumentEnum) SetTo(v DocumentEnum)
SetTo sets value to v.
func (*OptDocumentEnum) UnmarshalJSON ¶
func (s *OptDocumentEnum) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptFaceAntiSpoofStatus ¶
type OptFaceAntiSpoofStatus struct { Value FaceAntiSpoofStatus Set bool }
OptFaceAntiSpoofStatus is optional FaceAntiSpoofStatus.
func NewOptFaceAntiSpoofStatus ¶
func NewOptFaceAntiSpoofStatus(v FaceAntiSpoofStatus) OptFaceAntiSpoofStatus
NewOptFaceAntiSpoofStatus returns new OptFaceAntiSpoofStatus with value set to v.
func (*OptFaceAntiSpoofStatus) Decode ¶
func (o *OptFaceAntiSpoofStatus) Decode(d *jx.Decoder) error
Decode decodes FaceAntiSpoofStatus from json.
func (OptFaceAntiSpoofStatus) Encode ¶
func (o OptFaceAntiSpoofStatus) Encode(e *jx.Encoder)
Encode encodes FaceAntiSpoofStatus as json.
func (OptFaceAntiSpoofStatus) Get ¶
func (o OptFaceAntiSpoofStatus) Get() (v FaceAntiSpoofStatus, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptFaceAntiSpoofStatus) IsSet ¶
func (o OptFaceAntiSpoofStatus) IsSet() bool
IsSet returns true if OptFaceAntiSpoofStatus was set.
func (OptFaceAntiSpoofStatus) MarshalJSON ¶
func (s OptFaceAntiSpoofStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptFaceAntiSpoofStatus) Or ¶
func (o OptFaceAntiSpoofStatus) Or(d FaceAntiSpoofStatus) FaceAntiSpoofStatus
Or returns value if set, or given parameter if does not.
func (*OptFaceAntiSpoofStatus) SetTo ¶
func (o *OptFaceAntiSpoofStatus) SetTo(v FaceAntiSpoofStatus)
SetTo sets value to v.
func (*OptFaceAntiSpoofStatus) UnmarshalJSON ¶
func (s *OptFaceAntiSpoofStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptFaceVerifyResultEnum ¶
type OptFaceVerifyResultEnum struct { Value FaceVerifyResultEnum Set bool }
OptFaceVerifyResultEnum is optional FaceVerifyResultEnum.
func NewOptFaceVerifyResultEnum ¶
func NewOptFaceVerifyResultEnum(v FaceVerifyResultEnum) OptFaceVerifyResultEnum
NewOptFaceVerifyResultEnum returns new OptFaceVerifyResultEnum with value set to v.
func (*OptFaceVerifyResultEnum) Decode ¶
func (o *OptFaceVerifyResultEnum) Decode(d *jx.Decoder) error
Decode decodes FaceVerifyResultEnum from json.
func (OptFaceVerifyResultEnum) Encode ¶
func (o OptFaceVerifyResultEnum) Encode(e *jx.Encoder)
Encode encodes FaceVerifyResultEnum as json.
func (OptFaceVerifyResultEnum) Get ¶
func (o OptFaceVerifyResultEnum) Get() (v FaceVerifyResultEnum, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptFaceVerifyResultEnum) IsSet ¶
func (o OptFaceVerifyResultEnum) IsSet() bool
IsSet returns true if OptFaceVerifyResultEnum was set.
func (OptFaceVerifyResultEnum) MarshalJSON ¶
func (s OptFaceVerifyResultEnum) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptFaceVerifyResultEnum) Or ¶
func (o OptFaceVerifyResultEnum) Or(d FaceVerifyResultEnum) FaceVerifyResultEnum
Or returns value if set, or given parameter if does not.
func (*OptFaceVerifyResultEnum) Reset ¶
func (o *OptFaceVerifyResultEnum) Reset()
Reset unsets value.
func (*OptFaceVerifyResultEnum) SetTo ¶
func (o *OptFaceVerifyResultEnum) SetTo(v FaceVerifyResultEnum)
SetTo sets value to v.
func (*OptFaceVerifyResultEnum) UnmarshalJSON ¶
func (s *OptFaceVerifyResultEnum) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptFakeTypeEnum ¶
type OptFakeTypeEnum struct { Value FakeTypeEnum Set bool }
OptFakeTypeEnum is optional FakeTypeEnum.
func NewOptFakeTypeEnum ¶
func NewOptFakeTypeEnum(v FakeTypeEnum) OptFakeTypeEnum
NewOptFakeTypeEnum returns new OptFakeTypeEnum with value set to v.
func (*OptFakeTypeEnum) Decode ¶
func (o *OptFakeTypeEnum) Decode(d *jx.Decoder) error
Decode decodes FakeTypeEnum from json.
func (OptFakeTypeEnum) Encode ¶
func (o OptFakeTypeEnum) Encode(e *jx.Encoder)
Encode encodes FakeTypeEnum as json.
func (OptFakeTypeEnum) Get ¶
func (o OptFakeTypeEnum) Get() (v FakeTypeEnum, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptFakeTypeEnum) IsSet ¶
func (o OptFakeTypeEnum) IsSet() bool
IsSet returns true if OptFakeTypeEnum was set.
func (OptFakeTypeEnum) MarshalJSON ¶
func (s OptFakeTypeEnum) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptFakeTypeEnum) Or ¶
func (o OptFakeTypeEnum) Or(d FakeTypeEnum) FakeTypeEnum
Or returns value if set, or given parameter if does not.
func (*OptFakeTypeEnum) SetTo ¶
func (o *OptFakeTypeEnum) SetTo(v FakeTypeEnum)
SetTo sets value to v.
func (*OptFakeTypeEnum) UnmarshalJSON ¶
func (s *OptFakeTypeEnum) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptFloat32 ¶
OptFloat32 is optional float32.
func NewOptFloat32 ¶
func NewOptFloat32(v float32) OptFloat32
NewOptFloat32 returns new OptFloat32 with value set to v.
func (OptFloat32) Get ¶
func (o OptFloat32) Get() (v float32, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptFloat32) IsSet ¶
func (o OptFloat32) IsSet() bool
IsSet returns true if OptFloat32 was set.
func (OptFloat32) Or ¶
func (o OptFloat32) Or(d float32) float32
Or returns value if set, or given parameter if does not.
type OptFloat64 ¶
OptFloat64 is optional float64.
func NewOptFloat64 ¶
func NewOptFloat64(v float64) OptFloat64
NewOptFloat64 returns new OptFloat64 with value set to v.
func (*OptFloat64) Decode ¶
func (o *OptFloat64) Decode(d *jx.Decoder) error
Decode decodes float64 from json.
func (OptFloat64) Encode ¶
func (o OptFloat64) Encode(e *jx.Encoder)
Encode encodes float64 as json.
func (OptFloat64) Get ¶
func (o OptFloat64) Get() (v float64, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptFloat64) IsSet ¶
func (o OptFloat64) IsSet() bool
IsSet returns true if OptFloat64 was set.
func (OptFloat64) MarshalJSON ¶
func (s OptFloat64) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptFloat64) Or ¶
func (o OptFloat64) Or(d float64) float64
Or returns value if set, or given parameter if does not.
func (*OptFloat64) UnmarshalJSON ¶
func (s *OptFloat64) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptIDCheckEnum ¶
type OptIDCheckEnum struct { Value IDCheckEnum Set bool }
OptIDCheckEnum is optional IDCheckEnum.
func NewOptIDCheckEnum ¶
func NewOptIDCheckEnum(v IDCheckEnum) OptIDCheckEnum
NewOptIDCheckEnum returns new OptIDCheckEnum with value set to v.
func (*OptIDCheckEnum) Decode ¶
func (o *OptIDCheckEnum) Decode(d *jx.Decoder) error
Decode decodes IDCheckEnum from json.
func (OptIDCheckEnum) Encode ¶
func (o OptIDCheckEnum) Encode(e *jx.Encoder)
Encode encodes IDCheckEnum as json.
func (OptIDCheckEnum) Get ¶
func (o OptIDCheckEnum) Get() (v IDCheckEnum, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptIDCheckEnum) IsSet ¶
func (o OptIDCheckEnum) IsSet() bool
IsSet returns true if OptIDCheckEnum was set.
func (OptIDCheckEnum) MarshalJSON ¶
func (s OptIDCheckEnum) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptIDCheckEnum) Or ¶
func (o OptIDCheckEnum) Or(d IDCheckEnum) IDCheckEnum
Or returns value if set, or given parameter if does not.
func (*OptIDCheckEnum) UnmarshalJSON ¶
func (s *OptIDCheckEnum) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptIDTypeEnum ¶
type OptIDTypeEnum struct { Value IDTypeEnum Set bool }
OptIDTypeEnum is optional IDTypeEnum.
func NewOptIDTypeEnum ¶
func NewOptIDTypeEnum(v IDTypeEnum) OptIDTypeEnum
NewOptIDTypeEnum returns new OptIDTypeEnum with value set to v.
func (*OptIDTypeEnum) Decode ¶
func (o *OptIDTypeEnum) Decode(d *jx.Decoder) error
Decode decodes IDTypeEnum from json.
func (OptIDTypeEnum) Encode ¶
func (o OptIDTypeEnum) Encode(e *jx.Encoder)
Encode encodes IDTypeEnum as json.
func (OptIDTypeEnum) Get ¶
func (o OptIDTypeEnum) Get() (v IDTypeEnum, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptIDTypeEnum) IsSet ¶
func (o OptIDTypeEnum) IsSet() bool
IsSet returns true if OptIDTypeEnum was set.
func (OptIDTypeEnum) MarshalJSON ¶
func (s OptIDTypeEnum) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptIDTypeEnum) Or ¶
func (o OptIDTypeEnum) Or(d IDTypeEnum) IDTypeEnum
Or returns value if set, or given parameter if does not.
func (*OptIDTypeEnum) UnmarshalJSON ¶
func (s *OptIDTypeEnum) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInt ¶
OptInt is optional int.
func (OptInt) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptMaskResultEnum ¶
type OptMaskResultEnum struct { Value MaskResultEnum Set bool }
OptMaskResultEnum is optional MaskResultEnum.
func NewOptMaskResultEnum ¶
func NewOptMaskResultEnum(v MaskResultEnum) OptMaskResultEnum
NewOptMaskResultEnum returns new OptMaskResultEnum with value set to v.
func (*OptMaskResultEnum) Decode ¶
func (o *OptMaskResultEnum) Decode(d *jx.Decoder) error
Decode decodes MaskResultEnum from json.
func (OptMaskResultEnum) Encode ¶
func (o OptMaskResultEnum) Encode(e *jx.Encoder)
Encode encodes MaskResultEnum as json.
func (OptMaskResultEnum) Get ¶
func (o OptMaskResultEnum) Get() (v MaskResultEnum, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptMaskResultEnum) IsSet ¶
func (o OptMaskResultEnum) IsSet() bool
IsSet returns true if OptMaskResultEnum was set.
func (OptMaskResultEnum) MarshalJSON ¶
func (s OptMaskResultEnum) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptMaskResultEnum) Or ¶
func (o OptMaskResultEnum) Or(d MaskResultEnum) MaskResultEnum
Or returns value if set, or given parameter if does not.
func (*OptMaskResultEnum) SetTo ¶
func (o *OptMaskResultEnum) SetTo(v MaskResultEnum)
SetTo sets value to v.
func (*OptMaskResultEnum) UnmarshalJSON ¶
func (s *OptMaskResultEnum) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptMultipartFile ¶
type OptMultipartFile struct { Value ht.MultipartFile Set bool }
OptMultipartFile is optional ht.MultipartFile.
func NewOptMultipartFile ¶
func NewOptMultipartFile(v ht.MultipartFile) OptMultipartFile
NewOptMultipartFile returns new OptMultipartFile with value set to v.
func (OptMultipartFile) Get ¶
func (o OptMultipartFile) Get() (v ht.MultipartFile, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptMultipartFile) IsSet ¶
func (o OptMultipartFile) IsSet() bool
IsSet returns true if OptMultipartFile was set.
func (OptMultipartFile) Or ¶
func (o OptMultipartFile) Or(d ht.MultipartFile) ht.MultipartFile
Or returns value if set, or given parameter if does not.
func (*OptMultipartFile) SetTo ¶
func (o *OptMultipartFile) SetTo(v ht.MultipartFile)
SetTo sets value to v.
type OptOCRResultResultCode ¶
type OptOCRResultResultCode struct { Value OCRResultResultCode Set bool }
OptOCRResultResultCode is optional OCRResultResultCode.
func NewOptOCRResultResultCode ¶
func NewOptOCRResultResultCode(v OCRResultResultCode) OptOCRResultResultCode
NewOptOCRResultResultCode returns new OptOCRResultResultCode with value set to v.
func (*OptOCRResultResultCode) Decode ¶
func (o *OptOCRResultResultCode) Decode(d *jx.Decoder) error
Decode decodes OCRResultResultCode from json.
func (OptOCRResultResultCode) Encode ¶
func (o OptOCRResultResultCode) Encode(e *jx.Encoder)
Encode encodes OCRResultResultCode as json.
func (OptOCRResultResultCode) Get ¶
func (o OptOCRResultResultCode) Get() (v OCRResultResultCode, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptOCRResultResultCode) IsSet ¶
func (o OptOCRResultResultCode) IsSet() bool
IsSet returns true if OptOCRResultResultCode was set.
func (OptOCRResultResultCode) MarshalJSON ¶
func (s OptOCRResultResultCode) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptOCRResultResultCode) Or ¶
func (o OptOCRResultResultCode) Or(d OCRResultResultCode) OCRResultResultCode
Or returns value if set, or given parameter if does not.
func (*OptOCRResultResultCode) SetTo ¶
func (o *OptOCRResultResultCode) SetTo(v OCRResultResultCode)
SetTo sets value to v.
func (*OptOCRResultResultCode) UnmarshalJSON ¶
func (s *OptOCRResultResultCode) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSpoofStatusEnum ¶
type OptSpoofStatusEnum struct { Value SpoofStatusEnum Set bool }
OptSpoofStatusEnum is optional SpoofStatusEnum.
func NewOptSpoofStatusEnum ¶
func NewOptSpoofStatusEnum(v SpoofStatusEnum) OptSpoofStatusEnum
NewOptSpoofStatusEnum returns new OptSpoofStatusEnum with value set to v.
func (*OptSpoofStatusEnum) Decode ¶
func (o *OptSpoofStatusEnum) Decode(d *jx.Decoder) error
Decode decodes SpoofStatusEnum from json.
func (OptSpoofStatusEnum) Encode ¶
func (o OptSpoofStatusEnum) Encode(e *jx.Encoder)
Encode encodes SpoofStatusEnum as json.
func (OptSpoofStatusEnum) Get ¶
func (o OptSpoofStatusEnum) Get() (v SpoofStatusEnum, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSpoofStatusEnum) IsSet ¶
func (o OptSpoofStatusEnum) IsSet() bool
IsSet returns true if OptSpoofStatusEnum was set.
func (OptSpoofStatusEnum) MarshalJSON ¶
func (s OptSpoofStatusEnum) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptSpoofStatusEnum) Or ¶
func (o OptSpoofStatusEnum) Or(d SpoofStatusEnum) SpoofStatusEnum
Or returns value if set, or given parameter if does not.
func (*OptSpoofStatusEnum) SetTo ¶
func (o *OptSpoofStatusEnum) SetTo(v SpoofStatusEnum)
SetTo sets value to v.
func (*OptSpoofStatusEnum) UnmarshalJSON ¶
func (s *OptSpoofStatusEnum) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptString ¶
OptString is optional string.
func NewOptString ¶
NewOptString returns new OptString with value set to v.
func (OptString) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptString) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option is config option.
func WithMeterProvider ¶
func WithMeterProvider(provider metric.MeterProvider) Option
WithMeterProvider specifies a meter provider to use for creating a meter.
If none is specified, the metric.NewNoopMeterProvider is used.
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) Option
WithTracerProvider specifies a tracer provider to use for creating a tracer.
If none is specified, the global provider is used.
type SecuritySource ¶
type SecuritySource interface { // APIKey provides api_key security value. APIKey(ctx context.Context, operationName string) (APIKey, error) }
SecuritySource is provider of security values (tokens, passwords, etc.).
type SpoofStatusEnum ¶
type SpoofStatusEnum string
Ref: #/components/schemas/SpoofStatusEnum
const ( SpoofStatusEnumFAKE SpoofStatusEnum = "FAKE" SpoofStatusEnumREAL SpoofStatusEnum = "REAL" )
func (*SpoofStatusEnum) Decode ¶
func (s *SpoofStatusEnum) Decode(d *jx.Decoder) error
Decode decodes SpoofStatusEnum from json.
func (SpoofStatusEnum) Encode ¶
func (s SpoofStatusEnum) Encode(e *jx.Encoder)
Encode encodes SpoofStatusEnum as json.
func (SpoofStatusEnum) MarshalJSON ¶
func (s SpoofStatusEnum) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SpoofStatusEnum) UnmarshalJSON ¶
func (s *SpoofStatusEnum) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (SpoofStatusEnum) Validate ¶
func (s SpoofStatusEnum) Validate() error