Add db.Identifiable and db.UserIdentifiable interfaces

This commit is contained in:
qowevisa 2024-10-31 10:09:10 +02:00
parent 55ea7409ed
commit 506586a187

12
db/intf.go Normal file
View File

@ -0,0 +1,12 @@
package db
type Identifiable interface {
GetID() uint
SetID(id uint)
}
type UserIdentifiable interface {
GetID() uint
GetUserID() uint
SetUserID(userID uint)
}