Skip to content
This repository has been archived by the owner on Jun 3, 2019. It is now read-only.

Commit

Permalink
Made character fields editable
Browse files Browse the repository at this point in the history
  • Loading branch information
akyoto committed Apr 10, 2018
1 parent cbcc36d commit bcb8fcd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Character.go
Expand Up @@ -9,11 +9,11 @@ import (
// Character ...
type Character struct {
ID string `json:"id"`
Name CharacterName `json:"name"`
Name CharacterName `json:"name" editable:"true"`
Image CharacterImage `json:"image"`
Description string `json:"description"`
Attributes []*CharacterAttribute `json:"attributes"`
MainQuoteID string `json:"mainQuoteId"`
Description string `json:"description" editable:"true" type:"textarea"`
MainQuoteID string `json:"mainQuoteId" editable:"true"`
Attributes []*CharacterAttribute `json:"attributes" editable:"true"`
HasMappings
}

Expand Down
4 changes: 2 additions & 2 deletions CharacterAttribute.go
Expand Up @@ -2,6 +2,6 @@ package arn

// CharacterAttribute describes one attribute of a character, e.g. height or age.
type CharacterAttribute struct {
Name string `json:"name"`
Value string `json:"value"`
Name string `json:"name" editable:"true"`
Value string `json:"value" editable:"true"`
}
8 changes: 4 additions & 4 deletions CharacterName.go
Expand Up @@ -2,8 +2,8 @@ package arn

// CharacterName ...
type CharacterName struct {
Canonical string `json:"canonical"`
English string `json:"english"`
Japanese string `json:"japanese"`
Synonyms []string `json:"synonyms"`
Canonical string `json:"canonical" editable:"true"`
English string `json:"english" editable:"true"`
Japanese string `json:"japanese" editable:"true"`
Synonyms []string `json:"synonyms" editable:"true"`
}

0 comments on commit bcb8fcd

Please sign in to comment.