From 84d34c5e3d54641b8bc48e7d77a5d575d43e41ba Mon Sep 17 00:00:00 2001 From: piexlmax Date: Wed, 5 Jan 2022 17:22:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=85=85=E5=80=BC=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=AF=86=E7=A0=81=E6=97=A0=E6=9D=83=E9=99=90=E7=9A=84?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E6=95=B0=E6=8D=AEbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/source/system/api.go | 2 +- server/source/system/casbin.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/source/system/api.go b/server/source/system/api.go index 25667cfd4..b450369fe 100644 --- a/server/source/system/api.go +++ b/server/source/system/api.go @@ -29,7 +29,7 @@ func (a *api) Initialize() error { {ApiGroup: "系统用户", Method: "POST", Path: "/user/setUserAuthorities", Description: "设置权限组"}, {ApiGroup: "系统用户", Method: "POST", Path: "/user/changePassword", Description: "修改密码(建(选择)"}, {ApiGroup: "系统用户", Method: "POST", Path: "/user/setUserAuthority", Description: "修改用户角色(必选)"}, - {ApiGroup: "系统用户", Method: "POST", Path: "/api/resetPassword", Description: "重置用户密码"}, + {ApiGroup: "系统用户", Method: "POST", Path: "/user/resetPassword", Description: "重置用户密码"}, {ApiGroup: "api", Method: "POST", Path: "/api/createApi", Description: "创建api"}, {ApiGroup: "api", Method: "POST", Path: "/api/deleteApi", Description: "删除Api"}, diff --git a/server/source/system/casbin.go b/server/source/system/casbin.go index dfeba6a69..74b77b456 100644 --- a/server/source/system/casbin.go +++ b/server/source/system/casbin.go @@ -53,6 +53,7 @@ func (c *casbin) Initialize() error { {PType: "p", V0: "888", V1: "/user/changePassword", V2: "POST"}, {PType: "p", V0: "888", V1: "/user/setUserAuthority", V2: "POST"}, {PType: "p", V0: "888", V1: "/user/setUserAuthorities", V2: "POST"}, + {PType: "p", V0: "888", V1: "/user/resetPassword", V2: "POST"}, {PType: "p", V0: "888", V1: "/fileUploadAndDownload/findFile", V2: "GET"}, {PType: "p", V0: "888", V1: "/fileUploadAndDownload/breakpointContinueFinish", V2: "POST"},