bind email

This commit is contained in:
yangduo 2024-09-12 17:04:46 +08:00
parent 53f84a4473
commit 17ebffa157

View File

@ -21,12 +21,13 @@ func (this *VIPApi) Info(c *gin.Context) {
ContributionPoint string `json:"contribution_point"`
Info struct {
BindPassport string `json:"bind_passport_address"`
Email string `json:"bind_email"`
} `json:"info"`
}{}
{
var dbErr error
sql := "SELECT passport_address FROM t_vip_bind WHERE account_address = ?;"
sql := "SELECT passport_address,lower_case_email FROM t_vip_bind WHERE account_address = ?;"
params := []string{
accountAddress,
}
@ -41,6 +42,7 @@ func (this *VIPApi) Info(c *gin.Context) {
}
if ds.Next() {
rspObj.Info.BindPassport = ds.GetByIndex(0)
rspObj.Info.Email = ds.GetByIndex(1)
}
})