This commit is contained in:
+14
-1
@@ -25,4 +25,17 @@ func (chapter *Chapter) CanComment() bool {
|
||||
// ChangeObject in GQL.
|
||||
func (*Chapter) IsChangeObject() {
|
||||
panic("this method is a dummy, and so is its caller")
|
||||
}
|
||||
}
|
||||
|
||||
type ChapterFilter struct {
|
||||
StoryID *string
|
||||
Limit int
|
||||
}
|
||||
|
||||
type ChapterUpdate struct {
|
||||
Title *string
|
||||
Source *string
|
||||
FictionalDate *time.Time
|
||||
CommentMode *ChapterCommentMode
|
||||
CommentsLocked *bool
|
||||
}
|
||||
|
||||
+15
-2
@@ -12,7 +12,7 @@ type Comment struct {
|
||||
CharacterID string `bson:"characterId"`
|
||||
FictionalDate time.Time `bson:"fictionalDate"`
|
||||
CreatedDate time.Time `bson:"createdDate"`
|
||||
EditedDate time.Time `bson:"editeddDate"`
|
||||
EditedDate time.Time `bson:"editedDate"`
|
||||
Source string `bson:"source"`
|
||||
}
|
||||
|
||||
@@ -20,4 +20,17 @@ type Comment struct {
|
||||
// ChangeObject in GQL.
|
||||
func (*Comment) IsChangeObject() {
|
||||
panic("this method is a dummy, and so is its caller")
|
||||
}
|
||||
}
|
||||
|
||||
type CommentFilter struct {
|
||||
ChapterID *string
|
||||
Limit int
|
||||
}
|
||||
|
||||
type CommentUpdate struct {
|
||||
Source *string
|
||||
CharacterName *string
|
||||
CharacterID *string
|
||||
Subject *string
|
||||
FictionalDate *time.Time
|
||||
}
|
||||
|
||||
+22
-1
@@ -21,4 +21,25 @@ type Story struct {
|
||||
// ChangeObject in GQL.
|
||||
func (*Story) IsChangeObject() {
|
||||
panic("this method is a dummy, and so is its caller")
|
||||
}
|
||||
}
|
||||
|
||||
type StoryFilter struct {
|
||||
Author *string
|
||||
Tags []Tag
|
||||
EarliestFictionalDate time.Time
|
||||
LatestFictionalDate time.Time
|
||||
Category *StoryCategory
|
||||
Open *bool
|
||||
Unlisted *bool
|
||||
Limit int
|
||||
}
|
||||
|
||||
type StoryUpdate struct {
|
||||
Name *string
|
||||
Category *StoryCategory
|
||||
Author *string
|
||||
Open *bool
|
||||
Listed *bool
|
||||
FictionalDate *time.Time
|
||||
UpdatedDate *time.Time
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user