Documentation ¶
Index ¶
- type Category
- type Currency
- type MarketPlace
- type MarketPlaceItem
- type MarketPlaceItemsList
- type Material
- type Payment
- type PaymentAudit
- type PaymentStatus
- type Product
- type Supplier
- type SupplyOrder
- type SupplyOrderAudit
- type SupplyOrderPayment
- type SupplyOrderProduct
- type SupplyOrderStatus
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
type Category struct { CategoryID int `json:"category_id"` CategoryName string `json:"category_name"` ParentCategoryID int `json:"parent_category_id"` Active bool `json:"active"` }
func TestCategory ¶
func (*Category) ValidateCategory ¶
type MarketPlace ¶
type MarketPlaceItem ¶
type MarketPlaceItem struct { MarketPlaceItemID int ProductID int ItemName string MarketPlaceID int SKU int UserID int Active bool }
func TestMarketPlaceItem ¶
func TestMarketPlaceItem(t *testing.T) *MarketPlaceItem
func (*MarketPlaceItem) ValidateMarketPlaceItem ¶
func (mpi *MarketPlaceItem) ValidateMarketPlaceItem() error
type MarketPlaceItemsList ¶
type MarketPlaceItemsList struct {
MPIList []*MarketPlaceItem
}
func (*MarketPlaceItemsList) GetMPIList ¶
func (mpil *MarketPlaceItemsList) GetMPIList(p *Product)
func (*MarketPlaceItemsList) UpdateMPIList ¶
func (mpil *MarketPlaceItemsList) UpdateMPIList(p *Product)
func (*MarketPlaceItemsList) ValidateMarketPlaceItems ¶
func (mpi *MarketPlaceItemsList) ValidateMarketPlaceItems() error
type Material ¶
type Material struct { MaterialID int `json:"material_id"` MaterialName string `json:"material_name"` Active bool `json:"active"` }
func TestMaterial ¶
func (*Material) ValidateMaterial ¶
type PaymentAudit ¶
type PaymentStatus ¶
type Product ¶
type Product struct { ProductID int `json:"product_id"` ProductName string `json:"product_name"` CategoryID int `json:"category_id"` PiecesInPack int `json:"pieces_in_pack"` MaterialID int `json:"material_id"` Weight float32 `json:"weight"` Lenght float32 `json:"lenght"` Width float32 `json:"width"` Height float32 `json:"height"` Description string `json:"description"` UserID int `json:"user_id"` Active bool `json:"-"` WildberriesSKU int `json:"wildberries_sku"` OzonSKU int `json:"ozon_sku"` }
func TestProduct ¶
func TestProductWOSKU ¶
type SupplyOrder ¶
type SupplyOrderAudit ¶
type SupplyOrderPayment ¶
type SupplyOrderProduct ¶
type SupplyOrderStatus ¶
type User ¶
type User struct { ID int `json:"id"` Email string `json:"email"` Password string `json:"password,omitempty"` EncryptedPassword string `json:"-"` UserRole int `json:"userrole"` Active bool `json:"active"` }
User
func TestAdminUser ¶
func (*User) ComparePassword ¶
func (*User) EncryptPasswordBeforeCreate ¶
Click to show internal directories.
Click to hide internal directories.