ch3.3
This commit is contained in:
13
internal/data/movies.go
Normal file
13
internal/data/movies.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package data
|
||||
|
||||
import "time"
|
||||
|
||||
type Movie struct {
|
||||
ID int64 `json:"id"`
|
||||
CreatedAt time.Time `json:"-"`
|
||||
Title string `json:"title"`
|
||||
Year int32 `json:"year,omitempty"`
|
||||
Runtime int32 `json:"runtime,omitempty,string"`
|
||||
Genres []string `json:"genres,omitempty"`
|
||||
Version int32 `json:"version"`
|
||||
}
|
||||
Reference in New Issue
Block a user