Documentation ¶
Overview ¶
import ( "github.com/gin-gonic/gin"
)
type ExampleManufacturerRequests struct { }
func (m ExampleManufacturerRequests) RegisterItem(ctx *gin.Context) error { return nil } func (m ExampleManufacturerRequests) UpdateItem(ctx *gin.Context) error { return nil } func (m ExampleManufacturerRequests) DeleteItem(ctx *gin.Context) error { return nil }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IInspectPayloadUtils ¶
type IInspectPayloadUtils interface { Register(RegisterPayload) error Update(UpdatePayload) (map[string]interface{}, error) }
type IItemRepository ¶
type IItemRequests ¶
type ManufacturerUtils ¶
type ManufacturerUtils struct { }
func (ManufacturerUtils) Register ¶
func (m ManufacturerUtils) Register(i RegisterPayload) error
func (ManufacturerUtils) Update ¶
func (m ManufacturerUtils) Update(updatePayload UpdatePayload) (map[string]interface{}, error)
type RegisterPayload ¶
type RegisterPayload struct { Name string `json:"name" binding:"required"` Price int `json:"price" binding:"required"` Details ItemRegisterDetailsPayload `json:"details" binding:"required"` }
type Repository ¶
func (Repository) Delete ¶
func (r Repository) Delete(itemId string) error
func (Repository) Register ¶
func (r Repository) Register(itemId string, i RegisterPayload, userId string) error
type Requests ¶
type Requests struct { ManufacturerItemRepository IItemRepository ManufacturerInspectPayloadUtils IInspectPayloadUtils ItemRepository items.IRepository }
type TestRepository ¶
func (TestRepository) Delete ¶
func (r TestRepository) Delete(itemId string) error
func (TestRepository) Register ¶
func (r TestRepository) Register(itemId string, i RegisterPayload, userId string) error
Click to show internal directories.
Click to hide internal directories.