diff --git a/repository/tg/tg.go b/repository/tg/tg.go index 534ebeb..ffeafa1 100644 --- a/repository/tg/tg.go +++ b/repository/tg/tg.go @@ -62,3 +62,22 @@ func (r *TgRepo) GetAllTgAccounts(ctx context.Context) ([]model.TgAccount, error return result, nil } + +func (r *TgRepo) UpdateStatusTg(ctx context.Context, id int64, status model.TgAccountStatus) error { + err := r.queries.UpdateStatusTg(ctx, sqlcgen.UpdateStatusTgParams{ + Status: status, + ID: id, + }) + if err != nil { + return err + } + return nil +} + +func (r *TgRepo) SoftDeleteTgAccount(ctx context.Context, id int64) error { + err := r.queries.SoftDeleteTgAccount(ctx, id) + if err != nil { + return err + } + return nil +}