Move Cake struct to separate models package
This commit is contained in:
parent
e749e77a2a
commit
7ee564f6b2
7 changed files with 48 additions and 38 deletions
10
internal/models/data.go
Normal file
10
internal/models/data.go
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
package models
|
||||
|
||||
type Cake struct {
|
||||
Name string
|
||||
ID int
|
||||
Price int
|
||||
Amount int
|
||||
Category string
|
||||
Availability string
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue