48 lines
1.9 KiB
Go
48 lines
1.9 KiB
Go
|
package models
|
||
|
|
||
|
type CatalogStruct struct {
|
||
|
Id int
|
||
|
Code string
|
||
|
Name string
|
||
|
IsActive int `json:"is_active" db:"is_active"`
|
||
|
Properties []byte
|
||
|
DetailText string `json:"detailText" db:"detailText"`
|
||
|
Price []byte
|
||
|
AvailableQuantity int `json:"availableQuantity,omitempty" db:"available_quantity"`
|
||
|
}
|
||
|
|
||
|
type CatalogStructWeb struct {
|
||
|
Id int `json:"id"`
|
||
|
Code string `json:"code"`
|
||
|
Name string `json:"name"`
|
||
|
IsActive int `json:"is_active" db:"is_active"`
|
||
|
Properties map[string]interface{} `json:"properties"`
|
||
|
DetailText string `json:"detailText" db:"detailText"`
|
||
|
Price map[string]interface{} `json:"price"`
|
||
|
AvailableQuantity int `json:"availableQuantity,omitempty" db:"available_quantity"`
|
||
|
}
|
||
|
|
||
|
type CatalogWithQuantityWeb struct {
|
||
|
Id int `json:"id"`
|
||
|
Code string `json:"code"`
|
||
|
Name string `json:"name"`
|
||
|
IsActive int `json:"is_active"`
|
||
|
Properties map[string]interface{} `json:"properties"`
|
||
|
DetailText string `json:"detailText"`
|
||
|
Price map[string]interface{} `json:"price"`
|
||
|
Quantity int `json:"quantity"`
|
||
|
AvailableQuantity int `json:"available_quantity" db:"available_quantity"`
|
||
|
}
|
||
|
|
||
|
type CatalogWithQuantity struct {
|
||
|
Id int
|
||
|
Code string
|
||
|
Name string
|
||
|
IsActive int `json:"is_active" db:"is_active"`
|
||
|
Properties []byte
|
||
|
DetailText string `json:"detailText" db:"detailText"`
|
||
|
Price []byte
|
||
|
Quantity int `json:"quantity"`
|
||
|
AvailableQuantity int `json:"available_quantity" db:"available_quantity"`
|
||
|
}
|