mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
3945fa68d1
We have to do the same on iris-contrib/examples, iris-contrib/middleware and e.t.c. Former-commit-id: 0860688158f374bc137bc934b81b26dcd0e10964
45 lines
981 B
Go
45 lines
981 B
Go
// file: datasource/movies.go
|
|
|
|
package datasource
|
|
|
|
import "github.com/kataras/iris/v12/_examples/mvc/overview/datamodels"
|
|
|
|
// Movies is our imaginary data source.
|
|
var Movies = map[int64]datamodels.Movie{
|
|
1: {
|
|
ID: 1,
|
|
Name: "Casablanca",
|
|
Year: 1942,
|
|
Genre: "Romance",
|
|
Poster: "https://iris-go.com/images/examples/mvc-movies/1.jpg",
|
|
},
|
|
2: {
|
|
ID: 2,
|
|
Name: "Gone with the Wind",
|
|
Year: 1939,
|
|
Genre: "Romance",
|
|
Poster: "https://iris-go.com/images/examples/mvc-movies/2.jpg",
|
|
},
|
|
3: {
|
|
ID: 3,
|
|
Name: "Citizen Kane",
|
|
Year: 1941,
|
|
Genre: "Mystery",
|
|
Poster: "https://iris-go.com/images/examples/mvc-movies/3.jpg",
|
|
},
|
|
4: {
|
|
ID: 4,
|
|
Name: "The Wizard of Oz",
|
|
Year: 1939,
|
|
Genre: "Fantasy",
|
|
Poster: "https://iris-go.com/images/examples/mvc-movies/4.jpg",
|
|
},
|
|
5: {
|
|
ID: 5,
|
|
Name: "North by Northwest",
|
|
Year: 1959,
|
|
Genre: "Thriller",
|
|
Poster: "https://iris-go.com/images/examples/mvc-movies/5.jpg",
|
|
},
|
|
}
|