Add db.Identifiable and db.UserIdentifiable interfaces
This commit is contained in:
parent
55ea7409ed
commit
506586a187
12
db/intf.go
Normal file
12
db/intf.go
Normal 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)
|
||||
}
|
Loading…
Reference in New Issue
Block a user