|
|
@ -1,17 +1,17 @@ |
|
|
|
package graph2 |
|
|
|
|
|
|
|
import ( |
|
|
|
input "git.aiterp.net/rpdata/api/graph2/input" |
|
|
|
changes "git.aiterp.net/rpdata/api/models/changes" |
|
|
|
channels "git.aiterp.net/rpdata/api/models/channels" |
|
|
|
characters "git.aiterp.net/rpdata/api/models/characters" |
|
|
|
files "git.aiterp.net/rpdata/api/models/files" |
|
|
|
logs "git.aiterp.net/rpdata/api/models/logs" |
|
|
|
posts "git.aiterp.net/rpdata/api/models/posts" |
|
|
|
stories "git.aiterp.net/rpdata/api/models/stories" |
|
|
|
"git.aiterp.net/rpdata/api/graph2/graphcore" |
|
|
|
"git.aiterp.net/rpdata/api/models/changes" |
|
|
|
"git.aiterp.net/rpdata/api/models/channels" |
|
|
|
"git.aiterp.net/rpdata/api/models/characters" |
|
|
|
"git.aiterp.net/rpdata/api/models/files" |
|
|
|
"git.aiterp.net/rpdata/api/models/logs" |
|
|
|
"git.aiterp.net/rpdata/api/models/posts" |
|
|
|
"git.aiterp.net/rpdata/api/models/stories" |
|
|
|
) |
|
|
|
|
|
|
|
func complexity() (cr ComplexityRoot) { |
|
|
|
func complexity() (cr graphcore.ComplexityRoot) { |
|
|
|
subListComplexity := 25 |
|
|
|
bigSublistComplexity := 75 |
|
|
|
hugeSublistComplexity := 100 |
|
|
@ -37,7 +37,7 @@ func complexity() (cr ComplexityRoot) { |
|
|
|
cr.Query.Posts = func(childComplexity int, filter *posts.Filter) int { |
|
|
|
return childComplexity + listComplexity |
|
|
|
} |
|
|
|
cr.Query.UnknownNicks = func(childComplexity int, filter *input.UnknownNicksFilter) int { |
|
|
|
cr.Query.UnknownNicks = func(childComplexity int, filter *graphcore.UnknownNicksFilter) int { |
|
|
|
return childComplexity + listComplexity |
|
|
|
} |
|
|
|
cr.Query.Log = func(childComplexity int, id string) int { |
|
|
@ -56,7 +56,7 @@ func complexity() (cr ComplexityRoot) { |
|
|
|
cr.Query.Comment = func(childComplexity int, id string) int { |
|
|
|
return childComplexity + findComplexity |
|
|
|
} |
|
|
|
cr.Query.Tags = func(childComplexity int) int { |
|
|
|
cr.Query.Tags = func(childComplexity int, filter *graphcore.TagFilter) int { |
|
|
|
return childComplexity + listComplexity |
|
|
|
} |
|
|
|
cr.Query.Story = func(childComplexity int, id string) int { |
|
|
@ -78,85 +78,85 @@ func complexity() (cr ComplexityRoot) { |
|
|
|
return childComplexity + findComplexity |
|
|
|
} |
|
|
|
|
|
|
|
cr.Mutation.AddStory = func(childComplexity int, input input.StoryAddInput) int { |
|
|
|
cr.Mutation.AddStory = func(childComplexity int, input graphcore.StoryAddInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.AddStoryTag = func(childComplexity int, input input.StoryTagAddInput) int { |
|
|
|
cr.Mutation.AddStoryTag = func(childComplexity int, input graphcore.StoryTagAddInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.RemoveStoryTag = func(childComplexity int, input input.StoryTagRemoveInput) int { |
|
|
|
cr.Mutation.RemoveStoryTag = func(childComplexity int, input graphcore.StoryTagRemoveInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.EditStory = func(childComplexity int, input input.StoryEditInput) int { |
|
|
|
cr.Mutation.EditStory = func(childComplexity int, input graphcore.StoryEditInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.RemoveStory = func(childComplexity int, input input.StoryRemoveInput) int { |
|
|
|
cr.Mutation.RemoveStory = func(childComplexity int, input graphcore.StoryRemoveInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.AddChapter = func(childComplexity int, input input.ChapterAddInput) int { |
|
|
|
cr.Mutation.AddChapter = func(childComplexity int, input graphcore.ChapterAddInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.EditChapter = func(childComplexity int, input input.ChapterEditInput) int { |
|
|
|
cr.Mutation.EditChapter = func(childComplexity int, input graphcore.ChapterEditInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.MoveChapter = func(childComplexity int, input input.ChapterMoveInput) int { |
|
|
|
cr.Mutation.MoveChapter = func(childComplexity int, input graphcore.ChapterMoveInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.RemoveChapter = func(childComplexity int, input input.ChapterRemoveInput) int { |
|
|
|
cr.Mutation.RemoveChapter = func(childComplexity int, input graphcore.ChapterRemoveInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.AddComment = func(childComplexity int, input input.CommentAddInput) int { |
|
|
|
cr.Mutation.AddComment = func(childComplexity int, input graphcore.CommentAddInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.EditComment = func(childComplexity int, input input.CommentEditInput) int { |
|
|
|
cr.Mutation.EditComment = func(childComplexity int, input graphcore.CommentEditInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.RemoveComment = func(childComplexity int, input input.CommentRemoveInput) int { |
|
|
|
cr.Mutation.RemoveComment = func(childComplexity int, input graphcore.CommentRemoveInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.AddLog = func(childComplexity int, input input.LogAddInput) int { |
|
|
|
cr.Mutation.AddLog = func(childComplexity int, input graphcore.LogAddInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.ImportLog = func(childComplexity int, input input.LogImportInput) int { |
|
|
|
cr.Mutation.ImportLog = func(childComplexity int, input graphcore.LogImportInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.EditLog = func(childComplexity int, input input.LogEditInput) int { |
|
|
|
cr.Mutation.EditLog = func(childComplexity int, input graphcore.LogEditInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.RemoveLog = func(childComplexity int, input input.LogRemoveInput) int { |
|
|
|
cr.Mutation.RemoveLog = func(childComplexity int, input graphcore.LogRemoveInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.AddPost = func(childComplexity int, input input.PostAddInput) int { |
|
|
|
cr.Mutation.AddPost = func(childComplexity int, input graphcore.PostAddInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.EditPost = func(childComplexity int, input input.PostEditInput) int { |
|
|
|
cr.Mutation.EditPost = func(childComplexity int, input graphcore.PostEditInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.MovePost = func(childComplexity int, input input.PostMoveInput) int { |
|
|
|
cr.Mutation.MovePost = func(childComplexity int, input graphcore.PostMoveInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.RemovePost = func(childComplexity int, input input.PostRemoveInput) int { |
|
|
|
cr.Mutation.RemovePost = func(childComplexity int, input graphcore.PostRemoveInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.AddCharacter = func(childComplexity int, input input.CharacterAddInput) int { |
|
|
|
cr.Mutation.AddCharacter = func(childComplexity int, input graphcore.CharacterAddInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.AddCharacterNick = func(childComplexity int, input input.CharacterNickInput) int { |
|
|
|
cr.Mutation.AddCharacterNick = func(childComplexity int, input graphcore.CharacterNickInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.RemoveCharacterNick = func(childComplexity int, input input.CharacterNickInput) int { |
|
|
|
cr.Mutation.RemoveCharacterNick = func(childComplexity int, input graphcore.CharacterNickInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.EditCharacter = func(childComplexity int, input input.CharacterEditInput) int { |
|
|
|
cr.Mutation.EditCharacter = func(childComplexity int, input graphcore.CharacterEditInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.RemoveCharacter = func(childComplexity int, input input.CharacterRemoveInput) int { |
|
|
|
cr.Mutation.RemoveCharacter = func(childComplexity int, input graphcore.CharacterRemoveInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.AddChannel = func(childComplexity int, input input.ChannelAddInput) int { |
|
|
|
cr.Mutation.AddChannel = func(childComplexity int, input graphcore.ChannelAddInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
cr.Mutation.EditChannel = func(childComplexity int, input input.ChannelEditInput) int { |
|
|
|
cr.Mutation.EditChannel = func(childComplexity int, input graphcore.ChannelEditInput) int { |
|
|
|
return childComplexity + mutationComplexity |
|
|
|
} |
|
|
|
|
|
|
|