tweak tags and add story repository.
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-03-26 15:47:18 +01:00
parent 410e07a6a2
commit 525191a0f9
16 changed files with 418 additions and 62 deletions
+28 -1
View File
@@ -18,9 +18,36 @@ type Story struct {
SortByFictionalDate bool `bson:"sortByFictionalDate"`
}
func (story *Story) ApplyUpdate(update StoryUpdate) {
if update.Name != nil {
story.Name = *update.Name
}
if update.Category != nil {
story.Category = *update.Category
}
if update.Author != nil {
story.Author = *update.Author
}
if update.Open != nil {
story.Open = *update.Open
}
if update.Listed != nil {
story.Listed = *update.Listed
}
if update.SortByFictionalDate != nil {
story.SortByFictionalDate = *update.SortByFictionalDate
}
if update.FictionalDate != nil {
story.FictionalDate = *update.FictionalDate
}
if update.UpdatedDate != nil {
story.UpdatedDate = *update.UpdatedDate
}
}
// IsChangeObject is an interface implementation to identify it as a valid
// ChangeObject in GQL.
func (*Story) IsChangeObject() {
func (_ *Story) IsChangeObject() {
panic("this method is a dummy, and so is its caller")
}