From 57b4f539f90ba573a1a62292c8c186c0a5271e8b Mon Sep 17 00:00:00 2001 From: SliverHorn <503551462@qq.com> Date: Mon, 22 May 2023 16:07:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89base/login=20=E8=BF=99?= =?UTF-8?q?=E4=B8=AA=E6=B2=A1=E6=9C=89=E9=89=B4=E6=9D=83=E7=9A=84api=20(#1?= =?UTF-8?q?427)?= 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 | 3 --- 2 files changed, 5 deletions(-) diff --git a/server/source/system/api.go b/server/source/system/api.go index b5e573e4..a5a85789 100644 --- a/server/source/system/api.go +++ b/server/source/system/api.go @@ -43,8 +43,6 @@ func (i *initApi) InitializeData(ctx context.Context) (context.Context, error) { return ctx, system.ErrMissingDBContext } entities := []sysModel.SysApi{ - {ApiGroup: "base", Method: "POST", Path: "/base/login", Description: "用户登录(必选)"}, - {ApiGroup: "jwt", Method: "POST", Path: "/jwt/jsonInBlacklist", Description: "jwt加入黑名单(退出,必选)"}, {ApiGroup: "系统用户", Method: "DELETE", Path: "/user/deleteUser", Description: "删除用户"}, diff --git a/server/source/system/casbin.go b/server/source/system/casbin.go index c75e8f8f..bcb74473 100644 --- a/server/source/system/casbin.go +++ b/server/source/system/casbin.go @@ -45,7 +45,6 @@ func (i *initCasbin) InitializeData(ctx context.Context) (context.Context, error return ctx, system.ErrMissingDBContext } entities := []adapter.CasbinRule{ - {Ptype: "p", V0: "888", V1: "/base/login", V2: "POST"}, {Ptype: "p", V0: "888", V1: "/user/admin_register", V2: "POST"}, {Ptype: "p", V0: "888", V1: "/api/createApi", V2: "POST"}, @@ -157,7 +156,6 @@ func (i *initCasbin) InitializeData(ctx context.Context) (context.Context, error {Ptype: "p", V0: "888", V1: "/chatGpt/getSK", V2: "GET"}, {Ptype: "p", V0: "888", V1: "/chatGpt/deleteSK", V2: "DELETE"}, - {Ptype: "p", V0: "8881", V1: "/base/login", V2: "POST"}, {Ptype: "p", V0: "8881", V1: "/user/admin_register", V2: "POST"}, {Ptype: "p", V0: "8881", V1: "/api/createApi", V2: "POST"}, {Ptype: "p", V0: "8881", V1: "/api/getApiList", V2: "POST"}, @@ -197,7 +195,6 @@ func (i *initCasbin) InitializeData(ctx context.Context) (context.Context, error {Ptype: "p", V0: "8881", V1: "/customer/customerList", V2: "GET"}, {Ptype: "p", V0: "8881", V1: "/user/getUserInfo", V2: "GET"}, - {Ptype: "p", V0: "9528", V1: "/base/login", V2: "POST"}, {Ptype: "p", V0: "9528", V1: "/user/admin_register", V2: "POST"}, {Ptype: "p", V0: "9528", V1: "/api/createApi", V2: "POST"}, {Ptype: "p", V0: "9528", V1: "/api/getApiList", V2: "POST"},