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.

19 lines
453 B

5 years ago
  1. package models
  2. import "time"
  3. // A Post is a part of a log file.
  4. type Post struct {
  5. ID string `bson:"_id"`
  6. LogID string `bson:"logId"`
  7. Time time.Time `bson:"time"`
  8. Kind string `bson:"kind"`
  9. Nick string `bson:"nick"`
  10. Text string `bson:"text"`
  11. Position int `bson:"position"`
  12. }
  13. // IsChangeObject is a dummy interface implementation
  14. func (*Post) IsChangeObject() {
  15. // Dummy interface implementation
  16. }