feat: add kyc layer service

This commit is contained in:
2025-09-14 16:17:29 +03:30
parent 667d2ce2f4
commit 2da912739b
6 changed files with 159 additions and 59 deletions
+3 -1
View File
@@ -10,7 +10,7 @@ type User struct {
PubKey string
Name string
LastName string
//TODO: add Kyc Embedded struct
KYCLevel int
//TODO: add NFT Embedded struct
Phone string
NationalID string
@@ -30,6 +30,7 @@ func CastUserToStorage(u domain.User) *User {
PubKey: u.PubKey,
Name: u.Name,
LastName: u.LastName,
KYCLevel: int(u.KYCLevel),
Phone: u.PhoneNumber,
NationalID: u.NationalID,
Email: u.Email,
@@ -44,6 +45,7 @@ func CastUserToDomain(u User) *domain.User {
PubKey: u.PubKey,
Name: u.Name,
LastName: u.LastName,
KYCLevel: domain.KYCLevel(u.KYCLevel),
PhoneNumber: u.Phone,
NationalID: u.NationalID,
Email: u.Email,