u
This commit is contained in:
1 parent
cb4562361a
commit
b38583a9fe
11 files changed
+174
-85
No files matched your search
@@ -18,13 +18,23 @@ type BatchInsertMoneyUserCategoriesParams struct {
|
||||
SortNumber int32
|
||||
}
|
||||
|
||||
const deleteUserMoneyCategoryById = `-- name: DeleteUserMoneyCategoryById :exec
|
||||
const deleteMoneyCategoryById = `-- name: DeleteMoneyCategoryById :exec
|
||||
DELETE FROM money_user_category
|
||||
WHERE id = $1
|
||||
`
|
||||
|
||||
func (q *Queries) DeleteUserMoneyCategoryById(ctx context.Context, id int64) error {
|
||||
_, err := q.db.Exec(ctx, deleteUserMoneyCategoryById, id)
|
||||
func (q *Queries) DeleteMoneyCategoryById(ctx context.Context, id int64) error {
|
||||
_, err := q.db.Exec(ctx, deleteMoneyCategoryById, id)
|
||||
return err
|
||||
}
|
||||
|
||||
const deleteMoneyCategoryByUserId = `-- name: DeleteMoneyCategoryByUserId :exec
|
||||
DELETE FROM money_user_category
|
||||
WHERE user_id = $1
|
||||
`
|
||||
|
||||
func (q *Queries) DeleteMoneyCategoryByUserId(ctx context.Context, userID int64) error {
|
||||
_, err := q.db.Exec(ctx, deleteMoneyCategoryByUserId, userID)
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user