2024-03-15 21:27:45 +03:00
|
|
|
package models
|
|
|
|
|
2024-03-23 21:16:41 +03:00
|
|
|
// 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"`
|
|
|
|
// }
|
2024-03-15 21:27:45 +03:00
|
|
|
|
2024-03-23 21:16:41 +03:00
|
|
|
// 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"`
|
|
|
|
// }
|
2024-03-15 21:27:45 +03:00
|
|
|
|
2024-03-23 21:16:41 +03:00
|
|
|
// 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"`
|
|
|
|
// }
|
2024-03-15 21:27:45 +03:00
|
|
|
|
2024-03-23 21:16:41 +03:00
|
|
|
// 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"`
|
|
|
|
// }
|