add tg repo and some methods
This commit is contained in:
parent
1fd7fa2d2d
commit
f997b952c3
@ -30,6 +30,7 @@ func (r *TgRepo) CreateTgAccount(ctx context.Context, data model.TgAccount) (int
|
|||||||
Apihash: data.ApiHash,
|
Apihash: data.ApiHash,
|
||||||
Phonenumber: data.PhoneNumber,
|
Phonenumber: data.PhoneNumber,
|
||||||
Status: data.Status,
|
Status: data.Status,
|
||||||
|
Password: data.Password,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
@ -52,6 +53,7 @@ func (r *TgRepo) GetAllTgAccounts(ctx context.Context) ([]model.TgAccount, error
|
|||||||
Status: row.Status.(model.TgAccountStatus),
|
Status: row.Status.(model.TgAccountStatus),
|
||||||
Deleted: row.Deleted,
|
Deleted: row.Deleted,
|
||||||
CreatedAt: row.Createdat,
|
CreatedAt: row.Createdat,
|
||||||
|
Password: row.Password,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user