Added arn to the main repository

This commit is contained in:
2019-06-03 18:32:43 +09:00
parent cf258573a8
commit 29a48d94a5
465 changed files with 15968 additions and 288 deletions

22
arn/ActivityCreateAPI.go Normal file
View File

@ -0,0 +1,22 @@
package arn
import (
"github.com/aerogo/api"
)
// Force interface implementations
var (
_ Activity = (*ActivityCreate)(nil)
_ api.Savable = (*ActivityCreate)(nil)
)
// Save saves the activity object in the database.
func (activity *ActivityCreate) Save() {
DB.Set("ActivityCreate", activity.ID, activity)
}
// Delete deletes the activity object from the database.
func (activity *ActivityCreate) Delete() error {
DB.Delete("ActivityCreate", activity.ID)
return nil
}