From 7d098633937a219aa96f1574fa9cc15aec1dd9fe Mon Sep 17 00:00:00 2001 From: Daenney Date: Mon, 27 Mar 2023 16:02:26 +0200 Subject: [feature] Add list command to admin account (#1648) * [feature] Add list command to admin account Relates to: #388 * Print booleans as yes/no too --- internal/db/user.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/db/user.go') diff --git a/internal/db/user.go b/internal/db/user.go index e93ac4529..15165d0be 100644 --- a/internal/db/user.go +++ b/internal/db/user.go @@ -25,6 +25,8 @@ import ( // User contains functions related to user getting/setting/creation. type User interface { + // GetAllUsers returns all local user accounts, or an error if something goes wrong. + GetAllUsers(ctx context.Context) ([]*gtsmodel.User, Error) // GetUserByID returns one user with the given ID, or an error if something goes wrong. GetUserByID(ctx context.Context, id string) (*gtsmodel.User, Error) // GetUserByAccountID returns one user by its account ID, or an error if something goes wrong. -- cgit v1.2.3