type Story struct { | |
ID primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"` | |
Author string `json:"author,,omitempty" bson:"author,,omitempty"` | |
Title string `json:"title,,omitempty" bson:"title,,omitempty"` | |
Content string `json:"content,,omitempty" bson:"content,,omitempty"` | |
Likes int `json:"likes,,omitempty" bson:"likes,,omitempty"` | |
} |