feat: 添加租户创建功能,支持设置管理员及有效期,新增订单统计接口
This commit is contained in:
25
backend/app/http/super/order.go
Normal file
25
backend/app/http/super/order.go
Normal file
@@ -0,0 +1,25 @@
|
||||
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user