update sqlc gen
This commit is contained in:
parent
391f9df624
commit
429052cf2e
@ -61,19 +61,17 @@ func (q *Queries) AccountPagination(ctx context.Context, arg AccountPaginationPa
|
||||
}
|
||||
|
||||
const addAmoAccountUser = `-- name: AddAmoAccountUser :exec
|
||||
INSERT INTO usersAmo (AmoID, AmoUserID, Name, Email, Role, "Group", Deleted, CreatedAt)
|
||||
VALUES ($1, $2, $3, $4, $5, $6, $7, $8)
|
||||
INSERT INTO usersAmo (AmoID, AmoUserID, Name, Email, Role, "Group")
|
||||
VALUES ($1, $2, $3, $4, $5, $6)
|
||||
`
|
||||
|
||||
type AddAmoAccountUserParams struct {
|
||||
Amoid int32 `db:"amoid" json:"amoid"`
|
||||
Amouserid int32 `db:"amouserid" json:"amouserid"`
|
||||
Name string `db:"name" json:"name"`
|
||||
Email string `db:"email" json:"email"`
|
||||
Role int32 `db:"role" json:"role"`
|
||||
Group int32 `db:"Group" json:"Group"`
|
||||
Deleted bool `db:"deleted" json:"deleted"`
|
||||
Createdat time.Time `db:"createdat" json:"createdat"`
|
||||
Amoid int32 `db:"amoid" json:"amoid"`
|
||||
Amouserid int32 `db:"amouserid" json:"amouserid"`
|
||||
Name string `db:"name" json:"name"`
|
||||
Email string `db:"email" json:"email"`
|
||||
Role int32 `db:"role" json:"role"`
|
||||
Group int32 `db:"Group" json:"Group"`
|
||||
}
|
||||
|
||||
func (q *Queries) AddAmoAccountUser(ctx context.Context, arg AddAmoAccountUserParams) error {
|
||||
@ -84,8 +82,6 @@ func (q *Queries) AddAmoAccountUser(ctx context.Context, arg AddAmoAccountUserPa
|
||||
arg.Email,
|
||||
arg.Role,
|
||||
arg.Group,
|
||||
arg.Deleted,
|
||||
arg.Createdat,
|
||||
)
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user