From f997b952c31f44f521fceb6c6fa2088f9c7b22b7 Mon Sep 17 00:00:00 2001 From: Pavel Date: Thu, 27 Jun 2024 22:44:40 +0300 Subject: [PATCH] add tg repo and some methods --- repository/tg/tg.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/repository/tg/tg.go b/repository/tg/tg.go index 66e95ce..51ae267 100644 --- a/repository/tg/tg.go +++ b/repository/tg/tg.go @@ -30,6 +30,7 @@ func (r *TgRepo) CreateTgAccount(ctx context.Context, data model.TgAccount) (int Apihash: data.ApiHash, Phonenumber: data.PhoneNumber, Status: data.Status, + Password: data.Password, }) if err != nil { return 0, err @@ -52,6 +53,7 @@ func (r *TgRepo) GetAllTgAccounts(ctx context.Context) ([]model.TgAccount, error Status: row.Status.(model.TgAccountStatus), Deleted: row.Deleted, CreatedAt: row.Createdat, + Password: row.Password, }) }