Started working on character patch
This commit is contained in:
parent
3e0c777d64
commit
91e8537e9e
23
patches/character-patch/character-patch.go
Normal file
23
patches/character-patch/character-patch.go
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/animenotifier/arn"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Character ...
|
||||||
|
type Character struct {
|
||||||
|
ID string `json:"id"`
|
||||||
|
Name string `json:"name"`
|
||||||
|
Image string `json:"image"`
|
||||||
|
Description string `json:"description"`
|
||||||
|
Attributes []*arn.CharacterAttribute `json:"attributes"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
defer arn.Node.Close()
|
||||||
|
|
||||||
|
// Overwrite existing type
|
||||||
|
arn.DB.RegisterTypes((*Character)(nil))
|
||||||
|
|
||||||
|
// characters := arn.AllCharacters()
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user