Story/chapter/comment repos + started on story service.
the build was successful

This commit is contained in:
2019-08-18 08:59:38 +02:00
parent 8fbaea2078
commit 8c4670580c
12 changed files with 493 additions and 4 deletions
+14 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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
}