diff options
author | Grail Finder <wohilas@gmail.com> | 2025-01-16 17:53:35 +0300 |
---|---|---|
committer | Grail Finder <wohilas@gmail.com> | 2025-01-16 17:53:35 +0300 |
commit | c41ff09b2f62b8c715ec9beb2fdac987b25892d9 (patch) | |
tree | 8e85dd4f6a645b15fc58dd5f3ebb5b4f8bab1988 /models/card.go | |
parent | db678b521592503342bf717e1ae0f48b8b11ed80 (diff) |
Fix: specv2 cards wrapper case
Diffstat (limited to 'models/card.go')
-rw-r--r-- | models/card.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/models/card.go b/models/card.go index 4ff2d8b..fb807f3 100644 --- a/models/card.go +++ b/models/card.go @@ -22,6 +22,10 @@ type CharCardSpec struct { Tags []any `json:"tags"` } +type Spec2Wrapper struct { + Data CharCardSpec `json:"data"` +} + func (c *CharCardSpec) Simplify(userName, fpath string) *CharCard { fm := strings.ReplaceAll(strings.ReplaceAll(c.FirstMes, "{{char}}", c.Name), "{{user}}", userName) sysPr := strings.ReplaceAll(strings.ReplaceAll(c.Description, "{{char}}", c.Name), "{{user}}", userName) |