Documentation ¶
Overview ¶
Copyright 2023 Tal Huang <talhuang1231@gmail.com>. All rights reserved. Use of this source code is governed by a MIT style license that can be found in the LICENSE file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewItemImageController ¶
func NewItemImageController(store store.Factory, storageOpts *options.FileStorageOptions) (*itemImageController, error)
Types ¶
type ItemAttributesController ¶
type ItemAttributesController struct {
// contains filtered or unexported fields
}
ItemAttributesController creates an item attributes handler used to handle requests for the item attributes resource.
func NewItemAttributesController ¶
func NewItemAttributesController(store store.Factory) *ItemAttributesController
NewItemAttributesController creates an item attributes handler.
func (*ItemAttributesController) Create ¶
func (iac *ItemAttributesController) Create(c *gin.Context)
Create creates a new item attribute.
func (*ItemAttributesController) Delete ¶
func (iac *ItemAttributesController) Delete(c *gin.Context)
Delete deletes an item attribute by its ID.
func (*ItemAttributesController) Get ¶
func (iac *ItemAttributesController) Get(c *gin.Context)
Get retrieves an item attribute by its ID.
func (*ItemAttributesController) Update ¶
func (iac *ItemAttributesController) Update(c *gin.Context)
Update updates an item attribute by its ID.
type ItemController ¶
type ItemController struct {
// contains filtered or unexported fields
}
ItemController creates an item handler used to handle requests for the item resource.
func NewItemController ¶
func NewItemController(store store.Factory) *ItemController
NewItemController creates an item handler.
func (*ItemController) Create ¶
func (ic *ItemController) Create(c *gin.Context)
Create creates a new item.
func (*ItemController) Delete ¶
func (ic *ItemController) Delete(c *gin.Context)
Delete deletes an item by its ID.
func (*ItemController) Get ¶
func (ic *ItemController) Get(c *gin.Context)
Get retrieves an item by its ID.
func (*ItemController) List ¶
func (i *ItemController) List(c *gin.Context)
func (*ItemController) Update ¶
func (ic *ItemController) Update(c *gin.Context)
Update updates an item by its ID.