GraphQL API and utilities for the rpdata project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
726 B

  1. package models
  2. import "time"
  3. // A Comment is a comment on a chapter.
  4. type Comment struct {
  5. ID string `bson:"_id"`
  6. ChapterID string `bson:"chapterId"`
  7. Subject string `bson:"subject"`
  8. Author string `bson:"author"`
  9. CharacterName string `bson:"characterName"`
  10. CharacterID string `bson:"characterId"`
  11. FictionalDate time.Time `bson:"fictionalDate"`
  12. CreatedDate time.Time `bson:"createdDate"`
  13. EditedDate time.Time `bson:"editeddDate"`
  14. Source string `bson:"source"`
  15. }
  16. // IsChangeObject is an interface implementation to identify it as a valid
  17. // ChangeObject in GQL.
  18. func (*Comment) IsChangeObject() {
  19. panic("this method is a dummy, and so is its caller")
  20. }