mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
d55bb34766
Former-commit-id: f73cbf6010595c639f6c5b5119e2ec41bc9802a5
19 lines
578 B
Go
19 lines
578 B
Go
// file: datamodels/movie.go
|
|
|
|
package datamodels
|
|
|
|
// Movie is our sample data structure.
|
|
// Keep note that the tags for public-use (for our web app)
|
|
// should be kept in other file like "web/viewmodels/movie.go"
|
|
// which could wrap by embedding the datamodels.Movie or
|
|
// declare new fields instead butwe will use this datamodel
|
|
// as the only one Movie model in our application,
|
|
// for the sake of simplicty.
|
|
type Movie struct {
|
|
ID int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
Year int `json:"year"`
|
|
Genre string `json:"genre"`
|
|
Poster string `json:"poster"`
|
|
}
|