Files
ainovel-clients/domain/story.go
voocel 27bd85ef90 init
2026-03-07 21:25:55 +08:00

33 lines
914 B
Go

package domain
// Novel 小说元信息。
type Novel struct {
Name string `json:"name"`
TotalChapters int `json:"total_chapters"`
}
// OutlineEntry 大纲条目,对应一章。
type OutlineEntry struct {
Chapter int `json:"chapter"`
Title string `json:"title"`
CoreEvent string `json:"core_event"`
Hook string `json:"hook"`
Scenes []string `json:"scenes"`
}
// Character 角色档案。
type Character struct {
Name string `json:"name"`
Role string `json:"role"`
Description string `json:"description"`
Arc string `json:"arc"`
Traits []string `json:"traits"`
}
// WorldRule 世界观规则条目。
type WorldRule struct {
Category string `json:"category"` // magic / technology / geography / society / other
Rule string `json:"rule"` // 规则描述
Boundary string `json:"boundary"` // 不可违反的边界
}