feat: phone validation
Some checks failed
build quyun / Build (push) Failing after 1m25s

This commit is contained in:
2025-12-20 11:47:45 +08:00
parent fdbf26d751
commit 0e4af79b53
31 changed files with 1130 additions and 984 deletions

View File

@@ -19,15 +19,15 @@ type orders struct{}
// List
//
// @Summary 订单列表
// @Tags Admin Orders
// @Produce json
// @Param pagination query requests.Pagination false "分页参数"
// @Param query query OrderListQuery false "筛选条件"
// @Success 200 {object} requests.Pager{items=services.OrderListItem} "成功"
// @Router /admin/orders [get]
// @Bind pagination query
// @Bind query query
// @Summary 订单列表
// @Tags Admin Orders
// @Produce json
// @Param pagination query requests.Pagination false "分页参数"
// @Param query query OrderListQuery false "筛选条件"
// @Success 200 {object} requests.Pager{items=services.OrderListItem} "成功"
// @Router /admin/orders [get]
// @Bind pagination query
// @Bind query query
func (ctl *orders) List(
ctx fiber.Ctx,
pagination *requests.Pagination,
@@ -47,13 +47,13 @@ func (ctl *orders) List(
// Refund
//
// @Summary 订单退款
// @Tags Admin Orders
// @Produce json
// @Param id path int64 true "订单 ID"
// @Success 200 {object} any "成功"
// @Router /admin/orders/:id/refund [post]
// @Bind order path key(id) model(id)
// @Summary 订单退款
// @Tags Admin Orders
// @Produce json
// @Param id path int64 true "订单 ID"
// @Success 200 {object} any "成功"
// @Router /admin/orders/:id/refund [post]
// @Bind order path key(id) model(id)
func (ctl *orders) Refund(ctx fiber.Ctx, order *models.Order) error {
return services.Orders.Refund(ctx, order)
}