From 30c0cd86774a367b61aa475277b908efff7eaa27 Mon Sep 17 00:00:00 2001 From: "qiyunfanbo126.com" <815699> Date: Tue, 7 May 2024 18:38:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=81=E8=A3=85=E5=9F=BA=E7=A1=80=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=93=8D=E4=BD=9C,=E9=94=99=E8=AF=AF=E8=BF=94?= =?UTF-8?q?=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/constants/common/common.go | 1 + app/http/requestmapping/backend.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/constants/common/common.go b/app/constants/common/common.go index 693b7e2..a3a296b 100644 --- a/app/constants/common/common.go +++ b/app/constants/common/common.go @@ -3,4 +3,5 @@ package common const ( TOKEN_PRE = "player_token_" TOKEN_Admin = "Admin_token_" + ADMIN_V1 = "/admin/api/v1" ) diff --git a/app/http/requestmapping/backend.go b/app/http/requestmapping/backend.go index 0467ec8..f85dbf3 100644 --- a/app/http/requestmapping/backend.go +++ b/app/http/requestmapping/backend.go @@ -1,12 +1,13 @@ package requestmapping import ( + "qteam/app/constants/common" "qteam/app/http/entities/backend" ) var BackendRequestMap = map[string]func() interface{}{ - "/admin/api/v1/product/create": func() interface{} { + common.ADMIN_V1 + "/product/create": func() interface{} { return new(backend.ProductCreateRequest) }, }