update sqlc gen
This commit is contained in:
parent
bd9e81bf78
commit
56aa1da5d2
@ -3508,16 +3508,17 @@ func (q *Queries) UpdateAmoAccountUser(ctx context.Context, arg UpdateAmoAccount
|
|||||||
}
|
}
|
||||||
|
|
||||||
const updateAmoContact = `-- name: UpdateAmoContact :exec
|
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 {
|
type UpdateAmoContactParams struct {
|
||||||
Field string `db:"field" json:"field"`
|
Field string `db:"field" json:"field"`
|
||||||
ID int64 `db:"id" json:"id"`
|
ID int64 `db:"id" json:"id"`
|
||||||
|
Amoid int32 `db:"amoid" json:"amoid"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (q *Queries) UpdateAmoContact(ctx context.Context, arg UpdateAmoContactParams) error {
|
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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user