diff --git a/db/debt.go b/db/debt.go index ba07c29..537e67c 100644 --- a/db/debt.go +++ b/db/debt.go @@ -19,3 +19,18 @@ type Debt struct { UserID uint User *User } + +// Implements db.UserIdentifiable:1 +func (d Debt) GetID() uint { + return d.ID +} + +// Implements db.UserIdentifiable:2 +func (d Debt) GetUserID() uint { + return d.UserID +} + +// Implements db.UserIdentifiable:3 +func (d *Debt) SetUserID(id uint) { + d.UserID = id +}