From ce35498c7e493d73bc5615ccf41ee9708de4be27 Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Sat, 7 Oct 2023 13:41:06 +0800 Subject: [PATCH] =?UTF-8?q?fix=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/order/internal/types/types.go | 8 ++++---- server_api/order.api | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/server/order/internal/types/types.go b/server/order/internal/types/types.go index 9f32a256..6cc21a64 100644 --- a/server/order/internal/types/types.go +++ b/server/order/internal/types/types.go @@ -30,10 +30,10 @@ type CreatePrePaymentByBalanceReq struct { } type OrderListReq struct { - DeliveryMethod int64 `json:"delivery_method,options=[0,1,2],optional"` - OrderCycle string `json:"order_cycle,optional,options=[within_one_month,within_three_month,within_six_month,within_one_year]"` - CurrentPage int64 `json:"current_page,optional,default=1"` - PerPage int64 `json:"per_page,optional,default=10"` + DeliveryMethod int64 `form:"delivery_method,options=[0,1,2],optional"` + OrderCycle string `form:"order_cycle,optional,options=[within_one_month,within_three_month,within_six_month,within_one_year]"` + CurrentPage int64 `form:"current_page,optional,default=1"` + PerPage int64 `form:"per_page,optional,default=10"` } type Request struct { diff --git a/server_api/order.api b/server_api/order.api index 848b1464..5c53de53 100644 --- a/server_api/order.api +++ b/server_api/order.api @@ -54,8 +54,8 @@ type CreatePrePaymentByBalanceReq { } type OrderListReq { - DeliveryMethod int64 `json:"delivery_method,options=[0,1,2],optional"` - OrderCycle string `json:"order_cycle,optional,options=[within_one_month,within_three_month,within_six_month,within_one_year]"` - CurrentPage int64 `json:"current_page,optional,default=1"` - PerPage int64 `json:"per_page,optional,default=10"` + DeliveryMethod int64 `form:"delivery_method,options=[0,1,2],optional"` + OrderCycle string `form:"order_cycle,optional,options=[within_one_month,within_three_month,within_six_month,within_one_year]"` + CurrentPage int64 `form:"current_page,optional,default=1"` + PerPage int64 `form:"per_page,optional,default=10"` } \ No newline at end of file