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) +}