13 lines
307 B
Go
13 lines
307 B
Go
package library
|
|
|
|
import (
|
|
"gopkg.in/mgo.v2/bson"
|
|
)
|
|
|
|
// Publisher defines the data model for library publishers with id and name.
|
|
type Publisher struct {
|
|
ID bson.ObjectId `json:"_id" bson:"_id,omitempty"`
|
|
Name string `json:"name" bson:"name"`
|
|
Model string `json:"model" bson:"model"`
|
|
}
|