Made all types implement Identifiable

This commit is contained in:
2019-09-09 09:18:34 +09:00
parent 8bfb1e0b4d
commit 85bd1441a6
4 changed files with 20 additions and 0 deletions

View File

@ -1,5 +1,10 @@
package arn
// Force interface implementations
var (
_ Identifiable = (*ShopItem)(nil)
)
// Save saves the item in the database.
func (item *ShopItem) Save() {
DB.Set("ShopItem", item.ID, item)