Help us shape the future of Go! Take the 2026 Go Developer Survey

order

package
v1.21.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package order holds the HTTP handlers of the admin order API; they adapt requests to the billing facade.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrderHandler

func CreateOrderHandler(service billing.Service) app.HandlerFunc

CreateOrderHandler documents Create order.

@Summary Create order @Tags admin @Accept json @Produce json @Security BearerAuth @Param request body dto.CreateOrderRequest true "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean @Router /v1/admin/order/ [post]

func GetOrderListHandler

func GetOrderListHandler(service billing.Service) app.HandlerFunc

GetOrderListHandler documents Get order list.

@Summary Get order list @Tags admin @Accept json @Produce json @Security BearerAuth @Param request query dto.GetOrderListRequest false "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean{data=dto.GetOrderListResponse} @Router /v1/admin/order/list [get]

func UpdateOrderStatusHandler

func UpdateOrderStatusHandler(service billing.Service) app.HandlerFunc

UpdateOrderStatusHandler documents Update order status.

@Summary Update order status @Tags admin @Accept json @Produce json @Security BearerAuth @Param request body dto.UpdateOrderStatusRequest true "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean @Router /v1/admin/order/status [put]

Types

This section is empty.

Jump to

Keyboard shortcuts

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