handler_order

package
v0.0.0-...-ce547d9 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CancelOrder

func CancelOrder(ctx context.Context, c *app.RequestContext)

CancelOrder godoc @Summary consumer cancels order @Description consumer cancels order @Tags order module @Accept json @Produce json @Param cancelOrderReq body model.CancelOrderReq true "request param to cancel one order" @Security TokenAuth @Success 200 {object} model.Response @Router /order/cancel [post]

func CreateOrder

func CreateOrder(ctx context.Context, c *app.RequestContext)

CreateOrder godoc @Summary consumer creates order @Description consumer creates order @Tags order module @Accept json @Produce json @Param createOrderReq body model.CreateOrderReq true "request param to create one order" @Security TokenAuth @Success 200 {object} model.Response @Router /order/create [post]

func GetOrder

func GetOrder(ctx context.Context, c *app.RequestContext)

GetOrder godoc @Summary get order by order_id @Description get order by order_id @Tags order module @Accept json @Produce json @Param order_id query int true "order id" @Security TokenAuth @Success 200 {object} model.Response @Router /order/get [get]

func ListOrder

func ListOrder(ctx context.Context, c *app.RequestContext)

ListOrder godoc @Summary get order list of a consumer @Description get order list of a consumer @Tags order module @Accept json @Produce json @Param listOrderReq body model.ListOrderReq true "request param to get order list" @Security TokenAuth @Success 200 {object} model.Response @Router /order/list [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

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