feat: add TuxNumber field

This commit is contained in:
Maxim Dolgushin 2023-10-25 14:58:55 +07:00
parent 30f2a790e2
commit c900abb9b3
4 changed files with 10 additions and 5 deletions

@ -94,6 +94,9 @@ paths:
type: string
accepted:
type: boolean
taxnumber:
type: string
description: ИНН пользователя
responses:
"200":
description: успешное подтверждение или отклонение верификации

@ -26,7 +26,7 @@ func (r *VerificationController) GetRoutes() []Route {
{"GET", "/verification/:userID", "GetVerification", r.GetVerification},
{"POST", "/verification", "CreateVerification", r.CreateVerification},
{"PATCH", "/verification", "SetVerificationStatus", r.SetVerificationStatus},
{Method: "PATCH", Path: "/verification/file", Name: "SetVerificationFile", Handler: r.SetVerificationFile},
{"PATCH", "/verification/file", "SetVerificationFile", r.SetVerificationFile},
}
}

@ -9,4 +9,5 @@ type ReqSetVerification struct {
Status string `json:"status"`
Comment string `json:"comment"`
Accepted bool `json:"accepted"`
TaxNumber string `json:"taxnumber"`
}

@ -10,6 +10,7 @@ type Verification struct {
UpdatedAt time.Time `json:"updated_at" bson:"updated_at"`
Comment string `json:"comment" bson:"comment,omitempty"`
Files []VerificationFile `json:"files" bson:"files,omitempty"`
TaxNumber string `json:"taxnumber" bson:"taxnumber,omitempty"`
}
type VerificationFile struct {