Added arn to the main repository
This commit is contained in:
17
arn/AnimeCharacterAPI.go
Normal file
17
arn/AnimeCharacterAPI.go
Normal file
@ -0,0 +1,17 @@
|
||||
package arn
|
||||
|
||||
import (
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/aerogo/api"
|
||||
)
|
||||
|
||||
// Force interface implementations
|
||||
var (
|
||||
_ api.Creatable = (*AnimeCharacter)(nil)
|
||||
)
|
||||
|
||||
// Create sets the data for new anime characters.
|
||||
func (character *AnimeCharacter) Create(ctx aero.Context) error {
|
||||
character.Role = "supporting"
|
||||
return nil
|
||||
}
|
Reference in New Issue
Block a user