From 506586a1876d1799e91805c8d0aa1fdbfb93dbb4 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Thu, 31 Oct 2024 10:09:10 +0200 Subject: [PATCH] Add db.Identifiable and db.UserIdentifiable interfaces --- db/intf.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 db/intf.go diff --git a/db/intf.go b/db/intf.go new file mode 100644 index 0000000..cf2fdca --- /dev/null +++ b/db/intf.go @@ -0,0 +1,12 @@ +package db + +type Identifiable interface { + GetID() uint + SetID(id uint) +} + +type UserIdentifiable interface { + GetID() uint + GetUserID() uint + SetUserID(userID uint) +}