diff --git a/dal/sqlcgen/queries.sql.go b/dal/sqlcgen/queries.sql.go index 6b6d223..3fbd37c 100644 --- a/dal/sqlcgen/queries.sql.go +++ b/dal/sqlcgen/queries.sql.go @@ -3508,16 +3508,17 @@ func (q *Queries) UpdateAmoAccountUser(ctx context.Context, arg UpdateAmoAccount } const updateAmoContact = `-- name: UpdateAmoContact :exec -UPDATE amoContact SET Field = $1 WHERE ID = $2 +UPDATE amoContact SET Field = $1,AmoID=$3 WHERE ID = $2 ` type UpdateAmoContactParams struct { Field string `db:"field" json:"field"` ID int64 `db:"id" json:"id"` + Amoid int32 `db:"amoid" json:"amoid"` } func (q *Queries) UpdateAmoContact(ctx context.Context, arg UpdateAmoContactParams) error { - _, err := q.db.ExecContext(ctx, updateAmoContact, arg.Field, arg.ID) + _, err := q.db.ExecContext(ctx, updateAmoContact, arg.Field, arg.ID, arg.Amoid) return err }