Test out Item table

Add to real API
Update air config
Fix bug in MenuItem
This commit is contained in:
Michał Gdula 2024-05-13 12:10:55 +01:00
parent 899867e72d
commit 1fdb6ed2f4
7 changed files with 87 additions and 58 deletions

View file

@ -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))