Taobin-Recipe-Manager/server/models/v2/recipe.go

16 lines
546 B
Go

package v2
/*
This is the recipe model that specificly for API v2 version.
But some of the model of recipe can be used in the main version of the API.
*/
type DashboardRecipe struct {
ProductCode string `json:"productCode"`
InUse bool `json:"inUse"`
Name string `json:"name"`
NameENG string `json:"nameEng"`
Image string `json:"image"`
LastUpdated string `json:"lastUpdated"`
SubRecipe []*DashboardRecipe `json:"subRecipe,omitempty"`
}