controller

package
v0.0.0-...-69ebceb Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuyerLogin

func BuyerLogin(c *gin.Context)

func CreateOrder

func CreateOrder(c *gin.Context)

func CreateProduct

func CreateProduct(c *gin.Context)

func GetOngoingOrderByBuyerId

func GetOngoingOrderByBuyerId(c *gin.Context)

func GetOrderBySellerId

func GetOrderBySellerId(c *gin.Context)

func GetProductList

func GetProductList(c *gin.Context)

func GetProductsBySellerId

func GetProductsBySellerId(c *gin.Context)

func RegisterBuyer

func RegisterBuyer(c *gin.Context)

func RegisterSeller

func RegisterSeller(c *gin.Context)

func SellerLogin

func SellerLogin(c *gin.Context)

func UpdateOrderStatusToAccepted

func UpdateOrderStatusToAccepted(c *gin.Context)

Types

type CreateOrderInput

type CreateOrderInput struct {
	DeliverySourceAddress string `json:"source_address" binding:"required"`
	DeliveryDestAddress   string `json:"destination_address" binding:"required"`
	Items                 uint   `json:"item_id" binding:"required"`
	Quantity              int    `json:"quantity" binding:"required"`
}

Jump to

Keyboard shortcuts

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