proper-website-2/entity/comment.go

13 lines
402 B
Go
Raw Normal View History

2022-03-02 13:38:28 +01:00
package entity
import "time"
type Comment struct {
ID string `json:"id,omitempty" bson:"_id,omitempty"`
Name string `json:"name" bson:"name"`
Website string `json:"website,omitempty" bson:"website,omitempty"`
Email string `json:"email,omitempty" bson:"email,omitempty"`
Message string `json:"message" bson:"message"`
PostDate time.Time `json:"time" bson:"time"`
}