From 0de54ec30cff1490399757aa901c1b8319cc5d71 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Thu, 15 Jun 2023 11:39:21 +0800 Subject: [PATCH] fix --- go.mod | 4 ++-- server_api/shopping-cart-confirmation.api | 8 -------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/go.mod b/go.mod index 851f7f5b..7e076438 100644 --- a/go.mod +++ b/go.mod @@ -4,6 +4,7 @@ go 1.20 require ( github.com/golang-jwt/jwt v3.2.2+incompatible + github.com/google/uuid v1.3.0 github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e github.com/zeromicro/go-zero v1.5.2 @@ -16,7 +17,7 @@ require ( github.com/474420502/requests v1.32.1 github.com/jinzhu/inflection v1.0.0 // indirect github.com/jinzhu/now v1.1.5 // indirect - github.com/tidwall/gjson v1.12.0 // indirect + github.com/tidwall/gjson v1.12.0 github.com/tidwall/match v1.1.1 // indirect github.com/tidwall/pretty v1.2.0 // indirect ) @@ -35,7 +36,6 @@ require ( github.com/golang-jwt/jwt/v4 v4.5.0 // indirect github.com/golang/protobuf v1.5.3 // indirect github.com/google/pprof v0.0.0-20211214055906-6f57359322fd // indirect - github.com/google/uuid v1.3.0 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.15.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.17 // indirect diff --git a/server_api/shopping-cart-confirmation.api b/server_api/shopping-cart-confirmation.api index 2156d17d..5dafc1d6 100644 --- a/server_api/shopping-cart-confirmation.api +++ b/server_api/shopping-cart-confirmation.api @@ -26,9 +26,6 @@ service shopping-cart-confirmation { //变更发货方式和地址 @handler ChangeOrderMethodHandler post /cart/chang-order-method (ChangeOrderMethodReq) returns (response); - //创建订单 - @handler CartCreateOrderHandler - post /cart/create-order (CartCreateOrderReq) returns (response); } //添加入购物车 @@ -123,9 +120,4 @@ type ChangeOrderMethodReq { DeliveryMethod int64 `json:"delivery_method , options=1|2"` AddressId int64 `json:"address_id"` PayMethod int64 `json:"pay_method"` -} - -//创建订单 -type CartCreateOrderReq{ - } \ No newline at end of file