feat: add TuxNumber field
This commit is contained in:
parent
30f2a790e2
commit
c900abb9b3
@ -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},
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,8 +5,9 @@ type ReqCreateVerification struct {
|
||||
}
|
||||
|
||||
type ReqSetVerification struct {
|
||||
ID string `json:"id"`
|
||||
Status string `json:"status"`
|
||||
Comment string `json:"comment"`
|
||||
Accepted bool `json:"accepted"`
|
||||
ID string `json:"id"`
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user