update api
This commit is contained in:
@@ -3,15 +3,15 @@ package contract
|
||||
// FaceMatchRequest is the inbound payload from clients of this service to
|
||||
// trigger a Dukcapil 1:N face recognition lookup.
|
||||
//
|
||||
// Image must already be a base64 (no data:image prefix) representation of a
|
||||
// jpg/png file. Threshold is forwarded to Dukcapil (1..20). IP is optional;
|
||||
// when empty the configured default IP will be used.
|
||||
// Only the image file is required from the client. All other parameters
|
||||
// (transaction_id, transaction_source, threshold, ip) are generated or
|
||||
// retrieved from configuration in the backend.
|
||||
type FaceMatchRequest struct {
|
||||
TransactionID string `json:"transaction_id" validate:"required,max=20"`
|
||||
TransactionSource string `json:"transaction_source" validate:"required,max=50"`
|
||||
Threshold string `json:"threshold" validate:"required"`
|
||||
Image string `json:"image" validate:"required"`
|
||||
IP string `json:"ip,omitempty"`
|
||||
TransactionID string `json:"transaction_id"`
|
||||
TransactionSource string `json:"transaction_source"`
|
||||
Threshold string `json:"threshold"`
|
||||
Image string `json:"image"`
|
||||
IP string `json:"ip"`
|
||||
}
|
||||
|
||||
// DukcapilFaceRequest is the exact JSON body sent to the Dukcapil
|
||||
|
||||
Reference in New Issue
Block a user