mirror of
https://github.com/Fluffy-Bean/TastyBites.git
synced 2025-05-20 10:24:53 +00:00
Test out Item table
Add to real API Update air config Fix bug in MenuItem
This commit is contained in:
parent
899867e72d
commit
1fdb6ed2f4
7 changed files with 87 additions and 58 deletions
|
@ -5,12 +5,12 @@ import (
|
|||
)
|
||||
|
||||
type Item struct {
|
||||
UUID string `json:"uuid" db:"uuid"`
|
||||
Name string `json:"name" db:"name"`
|
||||
Price int64 `json:"price" db:"price"`
|
||||
Description string `json:"description,omitempty" db:"description"`
|
||||
//Labels []string `json:"labels,omitempty" db:"labels"`
|
||||
//Images []string `json:"images,omitempty" db:"images"`
|
||||
UUID string `json:"uuid" db:"uuid"`
|
||||
Name string `json:"name" db:"name"`
|
||||
Price int64 `json:"price" db:"price"`
|
||||
Description string `json:"description" db:"description"`
|
||||
Labels []string `json:"labels,omitempty" db:"-"`
|
||||
Images []string `json:"images,omitempty" db:"-"`
|
||||
}
|
||||
|
||||
var ItemStruct = sb.NewStruct(new(Item))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue