controller

package
v0.0.0-...-536d685 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomerController

type CustomerController struct {
	CustomerUsecase domain.CustomerUsecase
}

func (*CustomerController) Create

func (mc *CustomerController) Create(c *gin.Context)

Create - Create a new customer

func (*CustomerController) Fetch

func (mc *CustomerController) Fetch(c *gin.Context)

func (*CustomerController) Get

func (mc *CustomerController) Get(c *gin.Context)

func (*CustomerController) Modify

func (mc *CustomerController) Modify(c *gin.Context)

Modify - Update an existing customer

func (*CustomerController) Remove

func (mc *CustomerController) Remove(c *gin.Context)

Remove - Delete a customer by ID

type DiscountController

type DiscountController struct {
	DiscountUsecase domain.DiscountUsecase
}

func (*DiscountController) Create

func (pc *DiscountController) Create(c *gin.Context)

Create - Create a new discount

func (*DiscountController) Fetch

func (pc *DiscountController) Fetch(c *gin.Context)

func (*DiscountController) Get

func (pc *DiscountController) Get(c *gin.Context)

func (*DiscountController) Modify

func (pc *DiscountController) Modify(c *gin.Context)

Modify - Update an existing discount

func (*DiscountController) Remove

func (pc *DiscountController) Remove(c *gin.Context)

Remove - Delete a customer by ID

type LoginController

type LoginController struct {
	LoginUsecase domain.LoginUsecase
	Env          *bootstrap.Env
}

func (*LoginController) Login

func (lc *LoginController) Login(c *gin.Context)

type LogisticsController

type LogisticsController struct {
	LogisticsUsecase domain.LogisticsUsecase
}

func (*LogisticsController) Create

func (pc *LogisticsController) Create(c *gin.Context)

Create - Create a new logistic

func (*LogisticsController) Fetch

func (pc *LogisticsController) Fetch(c *gin.Context)

func (*LogisticsController) Get

func (pc *LogisticsController) Get(c *gin.Context)

func (*LogisticsController) Modify

func (pc *LogisticsController) Modify(c *gin.Context)

Modify - Update an existing logistic

func (*LogisticsController) Remove

func (pc *LogisticsController) Remove(c *gin.Context)

Remove - Delete a customer by ID

type ProductController

type ProductController struct {
	ProductUsecase domain.ProductUsecase
}

func (*ProductController) Create

func (pc *ProductController) Create(c *gin.Context)

Create - Create a new product

func (*ProductController) Fetch

func (pc *ProductController) Fetch(c *gin.Context)

func (*ProductController) Get

func (pc *ProductController) Get(c *gin.Context)

func (*ProductController) Modify

func (pc *ProductController) Modify(c *gin.Context)

Modify - Update an existing product

func (*ProductController) Remove

func (pc *ProductController) Remove(c *gin.Context)

Remove - Delete a product by ID

type RefreshTokenController

type RefreshTokenController struct {
	RefreshTokenUsecase domain.RefreshTokenUsecase
	Env                 *bootstrap.Env
}

func (*RefreshTokenController) RefreshToken

func (rtc *RefreshTokenController) RefreshToken(c *gin.Context)

type SignupController

type SignupController struct {
	SignupUsecase domain.SignupUsecase
	Env           *bootstrap.Env
}

func (*SignupController) Signup

func (sc *SignupController) Signup(c *gin.Context)

type WarehousePortController

type WarehousePortController struct {
	WarehousePortUsecase domain.WarehousePortUsecase
}

func (*WarehousePortController) Create

func (pc *WarehousePortController) Create(c *gin.Context)

Create - Create a new warehousePort

func (*WarehousePortController) Fetch

func (mc *WarehousePortController) Fetch(c *gin.Context)

func (*WarehousePortController) Get

func (pc *WarehousePortController) Get(c *gin.Context)

func (*WarehousePortController) Modify

func (pc *WarehousePortController) Modify(c *gin.Context)

Modify - Update an existing warehousePort

func (*WarehousePortController) Remove

func (pc *WarehousePortController) Remove(c *gin.Context)

Remove - Delete a warehousePort by ID

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL