Made all types implement Identifiable
This commit is contained in:
@ -5,3 +5,8 @@ type NickToUser struct {
|
||||
Nick string `json:"nick" primary:"true"`
|
||||
UserID UserID `json:"userId"`
|
||||
}
|
||||
|
||||
// GetID returns the primary key which is the nickname.
|
||||
func (mapping *NickToUser) GetID() string {
|
||||
return mapping.Nick
|
||||
}
|
||||
|
Reference in New Issue
Block a user