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
|
const addAmoAccountUser = `-- name: AddAmoAccountUser :exec
|
||||||
INSERT INTO usersAmo (AmoID, AmoUserID, Name, Email, Role, "Group", Deleted, CreatedAt)
|
INSERT INTO usersAmo (AmoID, AmoUserID, Name, Email, Role, "Group")
|
||||||
VALUES ($1, $2, $3, $4, $5, $6, $7, $8)
|
VALUES ($1, $2, $3, $4, $5, $6)
|
||||||
`
|
`
|
||||||
|
|
||||||
type AddAmoAccountUserParams struct {
|
type AddAmoAccountUserParams struct {
|
||||||
Amoid int32 `db:"amoid" json:"amoid"`
|
Amoid int32 `db:"amoid" json:"amoid"`
|
||||||
Amouserid int32 `db:"amouserid" json:"amouserid"`
|
Amouserid int32 `db:"amouserid" json:"amouserid"`
|
||||||
Name string `db:"name" json:"name"`
|
Name string `db:"name" json:"name"`
|
||||||
Email string `db:"email" json:"email"`
|
Email string `db:"email" json:"email"`
|
||||||
Role int32 `db:"role" json:"role"`
|
Role int32 `db:"role" json:"role"`
|
||||||
Group int32 `db:"Group" json:"Group"`
|
Group int32 `db:"Group" json:"Group"`
|
||||||
Deleted bool `db:"deleted" json:"deleted"`
|
|
||||||
Createdat time.Time `db:"createdat" json:"createdat"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (q *Queries) AddAmoAccountUser(ctx context.Context, arg AddAmoAccountUserParams) error {
|
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.Email,
|
||||||
arg.Role,
|
arg.Role,
|
||||||
arg.Group,
|
arg.Group,
|
||||||
arg.Deleted,
|
|
||||||
arg.Createdat,
|
|
||||||
)
|
)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user