feat: add middleware to kyc route
This commit is contained in:
+14
-14
@@ -147,7 +147,7 @@ const docTemplate = `{
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/dto.KYCVerifyResponse"
|
||||
"$ref": "#/definitions/dto.APIResponse"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
@@ -225,6 +225,18 @@ const docTemplate = `{
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"dto.APIResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {},
|
||||
"message": {
|
||||
"type": "string"
|
||||
},
|
||||
"success": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.AuthenticateRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -283,8 +295,7 @@ const docTemplate = `{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"birthDate",
|
||||
"nationalId",
|
||||
"userId"
|
||||
"nationalId"
|
||||
],
|
||||
"properties": {
|
||||
"birthDate": {
|
||||
@@ -292,17 +303,6 @@ const docTemplate = `{
|
||||
},
|
||||
"nationalId": {
|
||||
"type": "string"
|
||||
},
|
||||
"userId": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.KYCVerifyResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"message": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
+14
-14
@@ -136,7 +136,7 @@
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/dto.KYCVerifyResponse"
|
||||
"$ref": "#/definitions/dto.APIResponse"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
@@ -214,6 +214,18 @@
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"dto.APIResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {},
|
||||
"message": {
|
||||
"type": "string"
|
||||
},
|
||||
"success": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.AuthenticateRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -272,8 +284,7 @@
|
||||
"type": "object",
|
||||
"required": [
|
||||
"birthDate",
|
||||
"nationalId",
|
||||
"userId"
|
||||
"nationalId"
|
||||
],
|
||||
"properties": {
|
||||
"birthDate": {
|
||||
@@ -281,17 +292,6 @@
|
||||
},
|
||||
"nationalId": {
|
||||
"type": "string"
|
||||
},
|
||||
"userId": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.KYCVerifyResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"message": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
+9
-9
@@ -1,4 +1,12 @@
|
||||
definitions:
|
||||
dto.APIResponse:
|
||||
properties:
|
||||
data: {}
|
||||
message:
|
||||
type: string
|
||||
success:
|
||||
type: boolean
|
||||
type: object
|
||||
dto.AuthenticateRequest:
|
||||
properties:
|
||||
pubKey:
|
||||
@@ -40,17 +48,9 @@ definitions:
|
||||
type: string
|
||||
nationalId:
|
||||
type: string
|
||||
userId:
|
||||
type: string
|
||||
required:
|
||||
- birthDate
|
||||
- nationalId
|
||||
- userId
|
||||
type: object
|
||||
dto.KYCVerifyResponse:
|
||||
properties:
|
||||
message:
|
||||
type: string
|
||||
type: object
|
||||
dto.OTPProviderReq:
|
||||
properties:
|
||||
@@ -166,7 +166,7 @@ paths:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/dto.KYCVerifyResponse'
|
||||
$ref: '#/definitions/dto.APIResponse'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
|
||||
Reference in New Issue
Block a user