feat: add middleware to kyc route

This commit is contained in:
2025-09-16 11:35:36 +03:30
parent 7a365f57ec
commit f0914bcad9
6 changed files with 50 additions and 43 deletions
+6 -1
View File
@@ -43,7 +43,6 @@ type OTPVerifyResponse struct {
}
type KYCVerifyRequest struct {
UserID string `json:"userId" validate:"required,uuid"`
NationalID string `json:"nationalId" validate:"required"`
BirthDate string `json:"birthDate" validate:"required"`
}
@@ -51,3 +50,9 @@ type KYCVerifyRequest struct {
type KYCVerifyResponse struct {
Message string `json:"message"`
}
type APIResponse struct {
Success bool `json:"success"`
Message string `json:"message"`
Data any `json:"data,omitempty"`
}