25 lines
475 B
Go
25 lines
475 B
Go
package super
|
|
|
|
import (
|
|
"quyun/v2/app/http/super/dto"
|
|
"quyun/v2/app/services"
|
|
|
|
"github.com/gofiber/fiber/v3"
|
|
)
|
|
|
|
// @provider
|
|
type order struct{}
|
|
|
|
// statistics
|
|
//
|
|
// @Summary 订单统计信息
|
|
// @Tags Super
|
|
// @Accept json
|
|
// @Produce json
|
|
// @Success 200 {object} dto.OrderStatisticsResponse
|
|
//
|
|
// @Router /super/v1/orders/statistics [get]
|
|
func (*order) statistics(ctx fiber.Ctx) (*dto.OrderStatisticsResponse, error) {
|
|
return services.Order.SuperStatistics(ctx)
|
|
}
|