Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
FLIPPED-AURORA
gin-vue-admin
提交
b2dc6bfa
G
gin-vue-admin
项目概览
FLIPPED-AURORA
/
gin-vue-admin
大约 1 年 前同步成功
通知
341
Star
18155
Fork
5506
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gin-vue-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b2dc6bfa
编写于
4月 02, 2020
作者:
R
rainyan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updata->update
Updata->Update
上级
d399c588
变更
24
显示空白变更内容
内联
并排
Showing
24 changed file
with
74 addition
and
74 deletion
+74
-74
QMPlusServer/controller/api/exa_customer.go
QMPlusServer/controller/api/exa_customer.go
+3
-3
QMPlusServer/controller/api/sys_api.go
QMPlusServer/controller/api/sys_api.go
+3
-3
QMPlusServer/controller/api/sys_casbin.go
QMPlusServer/controller/api/sys_casbin.go
+3
-3
QMPlusServer/controller/api/sys_menu.go
QMPlusServer/controller/api/sys_menu.go
+3
-3
QMPlusServer/db/qmplus.sql
QMPlusServer/db/qmplus.sql
+18
-18
QMPlusServer/docs/docs.go
QMPlusServer/docs/docs.go
+4
-4
QMPlusServer/docs/swagger.json
QMPlusServer/docs/swagger.json
+4
-4
QMPlusServer/docs/swagger.yaml
QMPlusServer/docs/swagger.yaml
+4
-4
QMPlusServer/model/dbModel/exa_customer.go
QMPlusServer/model/dbModel/exa_customer.go
+1
-1
QMPlusServer/model/sysModel/sys_api.go
QMPlusServer/model/sysModel/sys_api.go
+2
-2
QMPlusServer/model/sysModel/sys_base_menu.go
QMPlusServer/model/sysModel/sys_base_menu.go
+1
-1
QMPlusServer/model/sysModel/sys_casbin.go
QMPlusServer/model/sysModel/sys_casbin.go
+2
-2
QMPlusServer/router/exp_customer.go
QMPlusServer/router/exp_customer.go
+1
-1
QMPlusServer/router/sys_api.go
QMPlusServer/router/sys_api.go
+1
-1
QMPlusServer/router/sys_casbin.go
QMPlusServer/router/sys_casbin.go
+1
-1
QMPlusServer/router/sys_menu.go
QMPlusServer/router/sys_menu.go
+1
-1
QMPlusVuePage/src/api/api.js
QMPlusVuePage/src/api/api.js
+3
-3
QMPlusVuePage/src/api/casbin.js
QMPlusVuePage/src/api/casbin.js
+3
-3
QMPlusVuePage/src/api/customer.js
QMPlusVuePage/src/api/customer.js
+3
-3
QMPlusVuePage/src/api/menu.js
QMPlusVuePage/src/api/menu.js
+3
-3
QMPlusVuePage/src/view/example/customer/customer.vue
QMPlusVuePage/src/view/example/customer/customer.vue
+4
-4
QMPlusVuePage/src/view/superAdmin/api/api.vue
QMPlusVuePage/src/view/superAdmin/api/api.vue
+2
-2
QMPlusVuePage/src/view/superAdmin/authority/components/apis.vue
...VuePage/src/view/superAdmin/authority/components/apis.vue
+2
-2
QMPlusVuePage/src/view/superAdmin/menu/menu.vue
QMPlusVuePage/src/view/superAdmin/menu/menu.vue
+2
-2
未找到文件。
QMPlusServer/controller/api/exa_customer.go
浏览文件 @
b2dc6bfa
...
@@ -58,11 +58,11 @@ func DeleteExaCustomer(c *gin.Context) {
...
@@ -58,11 +58,11 @@ func DeleteExaCustomer(c *gin.Context) {
// @Produce application/json
// @Produce application/json
// @Param data body dbModel.ExaCustomer true "创建客户"
// @Param data body dbModel.ExaCustomer true "创建客户"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /customer/updat
a
ExaCustomer [post]
// @Router /customer/updat
e
ExaCustomer [post]
func
Updat
a
ExaCustomer
(
c
*
gin
.
Context
)
{
func
Updat
e
ExaCustomer
(
c
*
gin
.
Context
)
{
var
cu
dbModel
.
ExaCustomer
var
cu
dbModel
.
ExaCustomer
_
=
c
.
ShouldBindJSON
(
&
cu
)
_
=
c
.
ShouldBindJSON
(
&
cu
)
err
:=
cu
.
Updat
a
ExaCustomer
()
err
:=
cu
.
Updat
e
ExaCustomer
()
if
err
!=
nil
{
if
err
!=
nil
{
servers
.
ReportFormat
(
c
,
false
,
fmt
.
Sprintf
(
"创建失败:%v"
,
err
),
gin
.
H
{})
servers
.
ReportFormat
(
c
,
false
,
fmt
.
Sprintf
(
"创建失败:%v"
,
err
),
gin
.
H
{})
}
else
{
}
else
{
...
...
QMPlusServer/controller/api/sys_api.go
浏览文件 @
b2dc6bfa
...
@@ -121,11 +121,11 @@ func GetApiById(c *gin.Context) {
...
@@ -121,11 +121,11 @@ func GetApiById(c *gin.Context) {
// @Produce application/json
// @Produce application/json
// @Param data body api.CreateApiParams true "创建api"
// @Param data body api.CreateApiParams true "创建api"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /api/updat
a
Api [post]
// @Router /api/updat
e
Api [post]
func
Updat
a
Api
(
c
*
gin
.
Context
)
{
func
Updat
e
Api
(
c
*
gin
.
Context
)
{
var
api
sysModel
.
SysApi
var
api
sysModel
.
SysApi
_
=
c
.
ShouldBindJSON
(
&
api
)
_
=
c
.
ShouldBindJSON
(
&
api
)
err
:=
api
.
Updat
a
Api
()
err
:=
api
.
Updat
e
Api
()
if
err
!=
nil
{
if
err
!=
nil
{
servers
.
ReportFormat
(
c
,
false
,
fmt
.
Sprintf
(
"修改数据失败,%v"
,
err
),
gin
.
H
{})
servers
.
ReportFormat
(
c
,
false
,
fmt
.
Sprintf
(
"修改数据失败,%v"
,
err
),
gin
.
H
{})
}
else
{
}
else
{
...
...
QMPlusServer/controller/api/sys_casbin.go
浏览文件 @
b2dc6bfa
...
@@ -14,11 +14,11 @@ import (
...
@@ -14,11 +14,11 @@ import (
// @Produce application/json
// @Produce application/json
// @Param data body sysModel.CasbinInReceive true "更改角色api权限"
// @Param data body sysModel.CasbinInReceive true "更改角色api权限"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /casbin/casbinPUpdat
a
[post]
// @Router /casbin/casbinPUpdat
e
[post]
func
CasbinPUpdat
a
(
c
*
gin
.
Context
)
{
func
CasbinPUpdat
e
(
c
*
gin
.
Context
)
{
var
cmr
sysModel
.
CasbinInReceive
var
cmr
sysModel
.
CasbinInReceive
_
=
c
.
ShouldBindJSON
(
&
cmr
)
_
=
c
.
ShouldBindJSON
(
&
cmr
)
err
:=
new
(
sysModel
.
CasbinModel
)
.
CasbinPUpdat
a
(
cmr
.
AuthorityId
,
cmr
.
CasbinInfos
)
err
:=
new
(
sysModel
.
CasbinModel
)
.
CasbinPUpdat
e
(
cmr
.
AuthorityId
,
cmr
.
CasbinInfos
)
if
err
!=
nil
{
if
err
!=
nil
{
servers
.
ReportFormat
(
c
,
false
,
fmt
.
Sprintf
(
"添加规则失败,%v"
,
err
),
gin
.
H
{})
servers
.
ReportFormat
(
c
,
false
,
fmt
.
Sprintf
(
"添加规则失败,%v"
,
err
),
gin
.
H
{})
}
else
{
}
else
{
...
...
QMPlusServer/controller/api/sys_menu.go
浏览文件 @
b2dc6bfa
...
@@ -163,11 +163,11 @@ func DeleteBaseMenu(c *gin.Context) {
...
@@ -163,11 +163,11 @@ func DeleteBaseMenu(c *gin.Context) {
// @Produce application/json
// @Produce application/json
// @Param data body sysModel.SysBaseMenu true "更新菜单"
// @Param data body sysModel.SysBaseMenu true "更新菜单"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /menu/updat
a
BaseMen [post]
// @Router /menu/updat
e
BaseMen [post]
func
Updat
a
BaseMenu
(
c
*
gin
.
Context
)
{
func
Updat
e
BaseMenu
(
c
*
gin
.
Context
)
{
var
menu
sysModel
.
SysBaseMenu
var
menu
sysModel
.
SysBaseMenu
_
=
c
.
ShouldBindJSON
(
&
menu
)
_
=
c
.
ShouldBindJSON
(
&
menu
)
err
:=
menu
.
Updat
a
BaseMenu
()
err
:=
menu
.
Updat
e
BaseMenu
()
if
err
!=
nil
{
if
err
!=
nil
{
servers
.
ReportFormat
(
c
,
false
,
fmt
.
Sprintf
(
"修改失败:%v"
,
err
),
gin
.
H
{})
servers
.
ReportFormat
(
c
,
false
,
fmt
.
Sprintf
(
"修改失败:%v"
,
err
),
gin
.
H
{})
}
else
{
}
else
{
...
...
QMPlusServer/db/qmplus.sql
浏览文件 @
b2dc6bfa
...
@@ -101,7 +101,7 @@ INSERT INTO `apis` VALUES (4, '2019-09-28 14:09:04', '2019-09-28 17:05:59', NULL
...
@@ -101,7 +101,7 @@ INSERT INTO `apis` VALUES (4, '2019-09-28 14:09:04', '2019-09-28 17:05:59', NULL
INSERT
INTO
`apis`
VALUES
(
5
,
'2019-09-28 14:15:50'
,
'2019-09-28 17:05:53'
,
NULL
,
NULL
,
'/api/getApiById'
,
'获取api详细信息'
,
'api'
);
INSERT
INTO
`apis`
VALUES
(
5
,
'2019-09-28 14:15:50'
,
'2019-09-28 17:05:53'
,
NULL
,
NULL
,
'/api/getApiById'
,
'获取api详细信息'
,
'api'
);
INSERT
INTO
`apis`
VALUES
(
6
,
'2019-09-28 14:19:08'
,
'2019-09-28 17:05:48'
,
NULL
,
NULL
,
'/api/setAuthAndApi'
,
'设置api和角色关系'
,
'api'
);
INSERT
INTO
`apis`
VALUES
(
6
,
'2019-09-28 14:19:08'
,
'2019-09-28 17:05:48'
,
NULL
,
NULL
,
'/api/setAuthAndApi'
,
'设置api和角色关系'
,
'api'
);
INSERT
INTO
`apis`
VALUES
(
7
,
'2019-09-28 14:19:26'
,
'2019-09-28 17:05:44'
,
NULL
,
NULL
,
'/api/deleteApi'
,
'删除Api'
,
'api'
);
INSERT
INTO
`apis`
VALUES
(
7
,
'2019-09-28 14:19:26'
,
'2019-09-28 17:05:44'
,
NULL
,
NULL
,
'/api/deleteApi'
,
'删除Api'
,
'api'
);
INSERT
INTO
`apis`
VALUES
(
8
,
'2019-09-28 14:19:48'
,
'2019-09-28 17:05:39'
,
NULL
,
NULL
,
'/api/updat
a
Api'
,
'更新Api'
,
'api'
);
INSERT
INTO
`apis`
VALUES
(
8
,
'2019-09-28 14:19:48'
,
'2019-09-28 17:05:39'
,
NULL
,
NULL
,
'/api/updat
e
Api'
,
'更新Api'
,
'api'
);
INSERT
INTO
`apis`
VALUES
(
9
,
'2019-09-30 15:04:55'
,
'2019-09-30 15:04:55'
,
NULL
,
NULL
,
'/api/getAuthAndApi'
,
'获取api和角色关系'
,
'api'
);
INSERT
INTO
`apis`
VALUES
(
9
,
'2019-09-30 15:04:55'
,
'2019-09-30 15:04:55'
,
NULL
,
NULL
,
'/api/getAuthAndApi'
,
'获取api和角色关系'
,
'api'
);
INSERT
INTO
`apis`
VALUES
(
10
,
'2019-09-30 15:05:38'
,
'2019-09-30 15:05:38'
,
NULL
,
NULL
,
'/api/getAllApis'
,
'获取所有api'
,
'api'
);
INSERT
INTO
`apis`
VALUES
(
10
,
'2019-09-30 15:05:38'
,
'2019-09-30 15:05:38'
,
NULL
,
NULL
,
'/api/getAllApis'
,
'获取所有api'
,
'api'
);
INSERT
INTO
`apis`
VALUES
(
11
,
'2019-09-30 15:23:09'
,
'2019-09-30 15:23:09'
,
NULL
,
NULL
,
'/authority/createAuthority'
,
'创建角色'
,
'authority'
);
INSERT
INTO
`apis`
VALUES
(
11
,
'2019-09-30 15:23:09'
,
'2019-09-30 15:23:09'
,
NULL
,
NULL
,
'/authority/createAuthority'
,
'创建角色'
,
'authority'
);
...
@@ -114,7 +114,7 @@ INSERT INTO `apis` VALUES (17, '2019-09-30 15:25:25', '2019-09-30 15:25:25', NUL
...
@@ -114,7 +114,7 @@ INSERT INTO `apis` VALUES (17, '2019-09-30 15:25:25', '2019-09-30 15:25:25', NUL
INSERT
INTO
`apis`
VALUES
(
18
,
'2019-09-30 15:25:53'
,
'2019-09-30 15:25:53'
,
NULL
,
NULL
,
'/menu/addMenuAuthority'
,
'增加menu和角色关联关系'
,
'menu'
);
INSERT
INTO
`apis`
VALUES
(
18
,
'2019-09-30 15:25:53'
,
'2019-09-30 15:25:53'
,
NULL
,
NULL
,
'/menu/addMenuAuthority'
,
'增加menu和角色关联关系'
,
'menu'
);
INSERT
INTO
`apis`
VALUES
(
19
,
'2019-09-30 15:26:20'
,
'2019-09-30 15:26:20'
,
NULL
,
NULL
,
'/menu/getMenuAuthority'
,
'获取指定角色menu'
,
'menu'
);
INSERT
INTO
`apis`
VALUES
(
19
,
'2019-09-30 15:26:20'
,
'2019-09-30 15:26:20'
,
NULL
,
NULL
,
'/menu/getMenuAuthority'
,
'获取指定角色menu'
,
'menu'
);
INSERT
INTO
`apis`
VALUES
(
20
,
'2019-09-30 15:26:43'
,
'2019-09-30 15:26:43'
,
NULL
,
NULL
,
'/menu/deleteBaseMenu'
,
'删除菜单'
,
'menu'
);
INSERT
INTO
`apis`
VALUES
(
20
,
'2019-09-30 15:26:43'
,
'2019-09-30 15:26:43'
,
NULL
,
NULL
,
'/menu/deleteBaseMenu'
,
'删除菜单'
,
'menu'
);
INSERT
INTO
`apis`
VALUES
(
21
,
'2019-09-30 15:28:05'
,
'2019-09-30 15:28:05'
,
NULL
,
NULL
,
'/menu/updat
a
BaseMenu'
,
'更新菜单'
,
'menu'
);
INSERT
INTO
`apis`
VALUES
(
21
,
'2019-09-30 15:28:05'
,
'2019-09-30 15:28:05'
,
NULL
,
NULL
,
'/menu/updat
e
BaseMenu'
,
'更新菜单'
,
'menu'
);
INSERT
INTO
`apis`
VALUES
(
22
,
'2019-09-30 15:28:21'
,
'2019-09-30 15:28:21'
,
NULL
,
NULL
,
'/menu/getBaseMenuById'
,
'根据id获取菜单'
,
'menu'
);
INSERT
INTO
`apis`
VALUES
(
22
,
'2019-09-30 15:28:21'
,
'2019-09-30 15:28:21'
,
NULL
,
NULL
,
'/menu/getBaseMenuById'
,
'根据id获取菜单'
,
'menu'
);
INSERT
INTO
`apis`
VALUES
(
23
,
'2019-09-30 15:29:19'
,
'2019-09-30 15:29:19'
,
NULL
,
NULL
,
'/user/changePassword'
,
'修改密码'
,
'user'
);
INSERT
INTO
`apis`
VALUES
(
23
,
'2019-09-30 15:29:19'
,
'2019-09-30 15:29:19'
,
NULL
,
NULL
,
'/user/changePassword'
,
'修改密码'
,
'user'
);
INSERT
INTO
`apis`
VALUES
(
24
,
'2019-09-30 15:29:33'
,
'2019-09-30 15:29:33'
,
NULL
,
NULL
,
'/user/uploadHeaderImg'
,
'上传头像'
,
'user'
);
INSERT
INTO
`apis`
VALUES
(
24
,
'2019-09-30 15:29:33'
,
'2019-09-30 15:29:33'
,
NULL
,
NULL
,
'/user/uploadHeaderImg'
,
'上传头像'
,
'user'
);
...
@@ -217,7 +217,7 @@ INSERT INTO `casbin_rule` VALUES ('p', '8881', '/api/createApi', 'POST', '', '',
...
@@ -217,7 +217,7 @@ INSERT INTO `casbin_rule` VALUES ('p', '8881', '/api/createApi', 'POST', '', '',
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/api/getApiList'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/api/getApiList'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/api/getApiById'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/api/getApiById'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/api/deleteApi'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/api/deleteApi'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/api/updat
a
Api'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/api/updat
e
Api'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/api/getAllApis'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/api/getAllApis'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/authority/createAuthority'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/authority/createAuthority'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/authority/deleteAuthority'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/authority/deleteAuthority'
,
'POST'
,
''
,
''
,
''
);
...
@@ -230,7 +230,7 @@ INSERT INTO `casbin_rule` VALUES ('p', '8881', '/menu/getBaseMenuTree', 'POST',
...
@@ -230,7 +230,7 @@ INSERT INTO `casbin_rule` VALUES ('p', '8881', '/menu/getBaseMenuTree', 'POST',
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/menu/addMenuAuthority'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/menu/addMenuAuthority'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/menu/getMenuAuthority'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/menu/getMenuAuthority'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/menu/deleteBaseMenu'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/menu/deleteBaseMenu'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/menu/updat
a
BaseMenu'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/menu/updat
e
BaseMenu'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/menu/getBaseMenuById'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/menu/getBaseMenuById'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/user/changePassword'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/user/changePassword'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/user/uploadHeaderImg'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/user/uploadHeaderImg'
,
'POST'
,
''
,
''
,
''
);
...
@@ -240,13 +240,13 @@ INSERT INTO `casbin_rule` VALUES ('p', '8881', '/user/setUserAuthority', 'POST',
...
@@ -240,13 +240,13 @@ INSERT INTO `casbin_rule` VALUES ('p', '8881', '/user/setUserAuthority', 'POST',
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/fileUploadAndDownload/upload'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/fileUploadAndDownload/upload'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/fileUploadAndDownload/getFileList'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/fileUploadAndDownload/getFileList'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/fileUploadAndDownload/deleteFile'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/fileUploadAndDownload/deleteFile'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/casbin/casbinPUpdat
a
'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/casbin/casbinPUpdat
e
'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/casbin/getPolicyPathByAuthorityId'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/casbin/getPolicyPathByAuthorityId'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/jwt/jsonInBlacklist'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/jwt/jsonInBlacklist'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/system/getSystemConfig'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/system/getSystemConfig'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/system/setSystemConfig'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/system/setSystemConfig'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/customer/createExaCustomer'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/customer/createExaCustomer'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/customer/updat
a
ExaCustomer'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/customer/updat
e
ExaCustomer'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/customer/deleteExaCustomer'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/customer/deleteExaCustomer'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/customer/getExaCustomer'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/customer/getExaCustomer'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/customer/getExaCustomerList'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'8881'
,
'/customer/getExaCustomerList'
,
'POST'
,
''
,
''
,
''
);
...
@@ -256,7 +256,7 @@ INSERT INTO `casbin_rule` VALUES ('p', '9528', '/api/createApi', 'POST', '', '',
...
@@ -256,7 +256,7 @@ INSERT INTO `casbin_rule` VALUES ('p', '9528', '/api/createApi', 'POST', '', '',
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/api/getApiList'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/api/getApiList'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/api/getApiById'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/api/getApiById'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/api/deleteApi'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/api/deleteApi'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/api/updat
a
Api'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/api/updat
e
Api'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/api/getAllApis'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/api/getAllApis'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/authority/createAuthority'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/authority/createAuthority'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/authority/deleteAuthority'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/authority/deleteAuthority'
,
'POST'
,
''
,
''
,
''
);
...
@@ -269,7 +269,7 @@ INSERT INTO `casbin_rule` VALUES ('p', '9528', '/menu/getBaseMenuTree', 'POST',
...
@@ -269,7 +269,7 @@ INSERT INTO `casbin_rule` VALUES ('p', '9528', '/menu/getBaseMenuTree', 'POST',
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/menu/addMenuAuthority'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/menu/addMenuAuthority'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/menu/getMenuAuthority'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/menu/getMenuAuthority'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/menu/deleteBaseMenu'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/menu/deleteBaseMenu'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/menu/updat
a
BaseMenu'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/menu/updat
e
BaseMenu'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/menu/getBaseMenuById'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/menu/getBaseMenuById'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/user/changePassword'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/user/changePassword'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/user/uploadHeaderImg'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/user/uploadHeaderImg'
,
'POST'
,
''
,
''
,
''
);
...
@@ -279,13 +279,13 @@ INSERT INTO `casbin_rule` VALUES ('p', '9528', '/user/setUserAuthority', 'POST',
...
@@ -279,13 +279,13 @@ INSERT INTO `casbin_rule` VALUES ('p', '9528', '/user/setUserAuthority', 'POST',
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/fileUploadAndDownload/upload'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/fileUploadAndDownload/upload'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/fileUploadAndDownload/getFileList'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/fileUploadAndDownload/getFileList'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/fileUploadAndDownload/deleteFile'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/fileUploadAndDownload/deleteFile'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/casbin/casbinPUpdat
a
'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/casbin/casbinPUpdat
e
'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/casbin/getPolicyPathByAuthorityId'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/casbin/getPolicyPathByAuthorityId'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/jwt/jsonInBlacklist'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/jwt/jsonInBlacklist'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/system/getSystemConfig'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/system/getSystemConfig'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/system/setSystemConfig'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/system/setSystemConfig'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/customer/createExaCustomer'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/customer/createExaCustomer'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/customer/updat
a
ExaCustomer'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/customer/updat
e
ExaCustomer'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/customer/deleteExaCustomer'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/customer/deleteExaCustomer'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/customer/getExaCustomer'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/customer/getExaCustomer'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/customer/getExaCustomerList'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'9528'
,
'/customer/getExaCustomerList'
,
'POST'
,
''
,
''
,
''
);
...
@@ -296,7 +296,7 @@ INSERT INTO `casbin_rule` VALUES ('p', '888', '/api/createApi', 'POST', '', '',
...
@@ -296,7 +296,7 @@ INSERT INTO `casbin_rule` VALUES ('p', '888', '/api/createApi', 'POST', '', '',
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/api/getApiList'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/api/getApiList'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/api/getApiById'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/api/getApiById'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/api/deleteApi'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/api/deleteApi'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/api/updat
a
Api'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/api/updat
e
Api'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/api/getAllApis'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/api/getAllApis'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/authority/createAuthority'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/authority/createAuthority'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/authority/deleteAuthority'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/authority/deleteAuthority'
,
'POST'
,
''
,
''
,
''
);
...
@@ -309,7 +309,7 @@ INSERT INTO `casbin_rule` VALUES ('p', '888', '/menu/getBaseMenuTree', 'POST', '
...
@@ -309,7 +309,7 @@ INSERT INTO `casbin_rule` VALUES ('p', '888', '/menu/getBaseMenuTree', 'POST', '
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/menu/addMenuAuthority'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/menu/addMenuAuthority'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/menu/getMenuAuthority'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/menu/getMenuAuthority'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/menu/deleteBaseMenu'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/menu/deleteBaseMenu'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/menu/updat
a
BaseMenu'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/menu/updat
e
BaseMenu'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/menu/getBaseMenuById'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/menu/getBaseMenuById'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/user/changePassword'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/user/changePassword'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/user/uploadHeaderImg'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/user/uploadHeaderImg'
,
'POST'
,
''
,
''
,
''
);
...
@@ -319,14 +319,14 @@ INSERT INTO `casbin_rule` VALUES ('p', '888', '/user/setUserAuthority', 'POST',
...
@@ -319,14 +319,14 @@ INSERT INTO `casbin_rule` VALUES ('p', '888', '/user/setUserAuthority', 'POST',
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/fileUploadAndDownload/upload'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/fileUploadAndDownload/upload'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/fileUploadAndDownload/getFileList'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/fileUploadAndDownload/getFileList'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/fileUploadAndDownload/deleteFile'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/fileUploadAndDownload/deleteFile'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/casbin/casbinPUpdat
a
'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/casbin/casbinPUpdat
e
'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/casbin/getPolicyPathByAuthorityId'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/casbin/getPolicyPathByAuthorityId'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/casbin/casbinTest/:pathParam'
,
'GET'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/casbin/casbinTest/:pathParam'
,
'GET'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/jwt/jsonInBlacklist'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/jwt/jsonInBlacklist'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/system/getSystemConfig'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/system/getSystemConfig'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/system/setSystemConfig'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/system/setSystemConfig'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/customer/createExaCustomer'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/customer/createExaCustomer'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/customer/updat
a
ExaCustomer'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/customer/updat
e
ExaCustomer'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/customer/deleteExaCustomer'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/customer/deleteExaCustomer'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/customer/getExaCustomer'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/customer/getExaCustomer'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/customer/getExaCustomerList'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/customer/getExaCustomerList'
,
'POST'
,
''
,
''
,
''
);
...
@@ -4159,7 +4159,7 @@ INSERT INTO `sys_apis` VALUES (3, '2019-09-28 11:33:41', '2019-12-11 16:51:41',
...
@@ -4159,7 +4159,7 @@ INSERT INTO `sys_apis` VALUES (3, '2019-09-28 11:33:41', '2019-12-11 16:51:41',
INSERT
INTO
`sys_apis`
VALUES
(
4
,
'2019-09-28 14:09:04'
,
'2019-09-28 17:05:59'
,
NULL
,
NULL
,
'/api/getApiList'
,
'获取api列表'
,
'api'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
4
,
'2019-09-28 14:09:04'
,
'2019-09-28 17:05:59'
,
NULL
,
NULL
,
'/api/getApiList'
,
'获取api列表'
,
'api'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
5
,
'2019-09-28 14:15:50'
,
'2019-09-28 17:05:53'
,
NULL
,
NULL
,
'/api/getApiById'
,
'获取api详细信息'
,
'api'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
5
,
'2019-09-28 14:15:50'
,
'2019-09-28 17:05:53'
,
NULL
,
NULL
,
'/api/getApiById'
,
'获取api详细信息'
,
'api'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
7
,
'2019-09-28 14:19:26'
,
'2019-09-28 17:05:44'
,
NULL
,
NULL
,
'/api/deleteApi'
,
'删除Api'
,
'api'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
7
,
'2019-09-28 14:19:26'
,
'2019-09-28 17:05:44'
,
NULL
,
NULL
,
'/api/deleteApi'
,
'删除Api'
,
'api'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
8
,
'2019-09-28 14:19:48'
,
'2019-09-28 17:05:39'
,
NULL
,
NULL
,
'/api/updat
a
Api'
,
'更新Api'
,
'api'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
8
,
'2019-09-28 14:19:48'
,
'2019-09-28 17:05:39'
,
NULL
,
NULL
,
'/api/updat
e
Api'
,
'更新Api'
,
'api'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
10
,
'2019-09-30 15:05:38'
,
'2019-09-30 15:05:38'
,
NULL
,
NULL
,
'/api/getAllApis'
,
'获取所有api'
,
'api'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
10
,
'2019-09-30 15:05:38'
,
'2019-09-30 15:05:38'
,
NULL
,
NULL
,
'/api/getAllApis'
,
'获取所有api'
,
'api'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
11
,
'2019-09-30 15:23:09'
,
'2019-09-30 15:23:09'
,
NULL
,
NULL
,
'/authority/createAuthority'
,
'创建角色'
,
'authority'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
11
,
'2019-09-30 15:23:09'
,
'2019-09-30 15:23:09'
,
NULL
,
NULL
,
'/authority/createAuthority'
,
'创建角色'
,
'authority'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
12
,
'2019-09-30 15:23:33'
,
'2019-09-30 15:23:33'
,
NULL
,
NULL
,
'/authority/deleteAuthority'
,
'删除角色'
,
'authority'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
12
,
'2019-09-30 15:23:33'
,
'2019-09-30 15:23:33'
,
NULL
,
NULL
,
'/authority/deleteAuthority'
,
'删除角色'
,
'authority'
,
'POST'
);
...
@@ -4171,7 +4171,7 @@ INSERT INTO `sys_apis` VALUES (17, '2019-09-30 15:25:25', '2019-09-30 15:25:25',
...
@@ -4171,7 +4171,7 @@ INSERT INTO `sys_apis` VALUES (17, '2019-09-30 15:25:25', '2019-09-30 15:25:25',
INSERT
INTO
`sys_apis`
VALUES
(
18
,
'2019-09-30 15:25:53'
,
'2019-09-30 15:25:53'
,
NULL
,
NULL
,
'/menu/addMenuAuthority'
,
'增加menu和角色关联关系'
,
'menu'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
18
,
'2019-09-30 15:25:53'
,
'2019-09-30 15:25:53'
,
NULL
,
NULL
,
'/menu/addMenuAuthority'
,
'增加menu和角色关联关系'
,
'menu'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
19
,
'2019-09-30 15:26:20'
,
'2019-09-30 15:26:20'
,
NULL
,
NULL
,
'/menu/getMenuAuthority'
,
'获取指定角色menu'
,
'menu'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
19
,
'2019-09-30 15:26:20'
,
'2019-09-30 15:26:20'
,
NULL
,
NULL
,
'/menu/getMenuAuthority'
,
'获取指定角色menu'
,
'menu'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
20
,
'2019-09-30 15:26:43'
,
'2019-09-30 15:26:43'
,
NULL
,
NULL
,
'/menu/deleteBaseMenu'
,
'删除菜单'
,
'menu'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
20
,
'2019-09-30 15:26:43'
,
'2019-09-30 15:26:43'
,
NULL
,
NULL
,
'/menu/deleteBaseMenu'
,
'删除菜单'
,
'menu'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
21
,
'2019-09-30 15:28:05'
,
'2019-09-30 15:28:05'
,
NULL
,
NULL
,
'/menu/updat
a
BaseMenu'
,
'更新菜单'
,
'menu'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
21
,
'2019-09-30 15:28:05'
,
'2019-09-30 15:28:05'
,
NULL
,
NULL
,
'/menu/updat
e
BaseMenu'
,
'更新菜单'
,
'menu'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
22
,
'2019-09-30 15:28:21'
,
'2019-09-30 15:28:21'
,
NULL
,
NULL
,
'/menu/getBaseMenuById'
,
'根据id获取菜单'
,
'menu'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
22
,
'2019-09-30 15:28:21'
,
'2019-09-30 15:28:21'
,
NULL
,
NULL
,
'/menu/getBaseMenuById'
,
'根据id获取菜单'
,
'menu'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
23
,
'2019-09-30 15:29:19'
,
'2019-09-30 15:29:19'
,
NULL
,
NULL
,
'/user/changePassword'
,
'修改密码'
,
'user'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
23
,
'2019-09-30 15:29:19'
,
'2019-09-30 15:29:19'
,
NULL
,
NULL
,
'/user/changePassword'
,
'修改密码'
,
'user'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
24
,
'2019-09-30 15:29:33'
,
'2019-09-30 15:29:33'
,
NULL
,
NULL
,
'/user/uploadHeaderImg'
,
'上传头像'
,
'user'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
24
,
'2019-09-30 15:29:33'
,
'2019-09-30 15:29:33'
,
NULL
,
NULL
,
'/user/uploadHeaderImg'
,
'上传头像'
,
'user'
,
'POST'
);
...
@@ -4180,7 +4180,7 @@ INSERT INTO `sys_apis` VALUES (28, '2019-10-09 15:15:17', '2019-10-09 15:17:07',
...
@@ -4180,7 +4180,7 @@ INSERT INTO `sys_apis` VALUES (28, '2019-10-09 15:15:17', '2019-10-09 15:17:07',
INSERT
INTO
`sys_apis`
VALUES
(
29
,
'2019-10-09 23:01:40'
,
'2019-10-09 23:01:40'
,
NULL
,
NULL
,
'/user/setUserAuthority'
,
'修改用户角色'
,
'user'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
29
,
'2019-10-09 23:01:40'
,
'2019-10-09 23:01:40'
,
NULL
,
NULL
,
'/user/setUserAuthority'
,
'修改用户角色'
,
'user'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
30
,
'2019-10-26 20:14:38'
,
'2019-10-26 20:14:38'
,
NULL
,
NULL
,
'/fileUploadAndDownload/upload'
,
'文件上传示例'
,
'fileUploadAndDownload'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
30
,
'2019-10-26 20:14:38'
,
'2019-10-26 20:14:38'
,
NULL
,
NULL
,
'/fileUploadAndDownload/upload'
,
'文件上传示例'
,
'fileUploadAndDownload'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
31
,
'2019-10-26 20:14:59'
,
'2019-10-26 20:14:59'
,
NULL
,
NULL
,
'/fileUploadAndDownload/getFileList'
,
'获取上传文件列表'
,
'fileUploadAndDownload'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
31
,
'2019-10-26 20:14:59'
,
'2019-10-26 20:14:59'
,
NULL
,
NULL
,
'/fileUploadAndDownload/getFileList'
,
'获取上传文件列表'
,
'fileUploadAndDownload'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
32
,
'2019-12-12 13:28:47'
,
'2019-12-12 13:28:47'
,
NULL
,
NULL
,
'/casbin/casbinPUpdat
a
'
,
'更改角色api权限'
,
'casbin'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
32
,
'2019-12-12 13:28:47'
,
'2019-12-12 13:28:47'
,
NULL
,
NULL
,
'/casbin/casbinPUpdat
e
'
,
'更改角色api权限'
,
'casbin'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
33
,
'2019-12-12 13:28:59'
,
'2019-12-12 13:28:59'
,
NULL
,
NULL
,
'/casbin/getPolicyPathByAuthorityId'
,
'获取权限列表'
,
'casbin'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
33
,
'2019-12-12 13:28:59'
,
'2019-12-12 13:28:59'
,
NULL
,
NULL
,
'/casbin/getPolicyPathByAuthorityId'
,
'获取权限列表'
,
'casbin'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
34
,
'2019-12-12 17:02:15'
,
'2019-12-12 17:02:15'
,
NULL
,
NULL
,
'/fileUploadAndDownload/deleteFile'
,
'删除文件'
,
'fileUploadAndDownload'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
34
,
'2019-12-12 17:02:15'
,
'2019-12-12 17:02:15'
,
NULL
,
NULL
,
'/fileUploadAndDownload/deleteFile'
,
'删除文件'
,
'fileUploadAndDownload'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
35
,
'2019-12-28 18:18:07'
,
'2019-12-28 18:18:07'
,
NULL
,
NULL
,
'/jwt/jsonInBlacklist'
,
'jwt加入黑名单'
,
'jwt'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
35
,
'2019-12-28 18:18:07'
,
'2019-12-28 18:18:07'
,
NULL
,
NULL
,
'/jwt/jsonInBlacklist'
,
'jwt加入黑名单'
,
'jwt'
,
'POST'
);
...
@@ -4188,7 +4188,7 @@ INSERT INTO `sys_apis` VALUES (36, '2020-01-06 17:56:36', '2020-01-06 17:56:36',
...
@@ -4188,7 +4188,7 @@ INSERT INTO `sys_apis` VALUES (36, '2020-01-06 17:56:36', '2020-01-06 17:56:36',
INSERT
INTO
`sys_apis`
VALUES
(
37
,
'2020-01-13 14:04:05'
,
'2020-01-13 14:04:05'
,
NULL
,
NULL
,
'/system/getSystemConfig'
,
'获取配置文件内容'
,
'system'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
37
,
'2020-01-13 14:04:05'
,
'2020-01-13 14:04:05'
,
NULL
,
NULL
,
'/system/getSystemConfig'
,
'获取配置文件内容'
,
'system'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
38
,
'2020-01-13 15:02:06'
,
'2020-01-13 15:02:06'
,
NULL
,
NULL
,
'/system/setSystemConfig'
,
'设置配置文件内容'
,
'system'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
38
,
'2020-01-13 15:02:06'
,
'2020-01-13 15:02:06'
,
NULL
,
NULL
,
'/system/setSystemConfig'
,
'设置配置文件内容'
,
'system'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
39
,
'2020-02-25 15:32:39'
,
'2020-02-25 15:32:39'
,
NULL
,
NULL
,
'/customer/createExaCustomer'
,
'创建客户'
,
'customer'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
39
,
'2020-02-25 15:32:39'
,
'2020-02-25 15:32:39'
,
NULL
,
NULL
,
'/customer/createExaCustomer'
,
'创建客户'
,
'customer'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
40
,
'2020-02-25 15:32:51'
,
'2020-02-25 15:34:56'
,
NULL
,
NULL
,
'/customer/updat
a
ExaCustomer'
,
'更新客户'
,
'customer'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
40
,
'2020-02-25 15:32:51'
,
'2020-02-25 15:34:56'
,
NULL
,
NULL
,
'/customer/updat
e
ExaCustomer'
,
'更新客户'
,
'customer'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
41
,
'2020-02-25 15:33:57'
,
'2020-02-25 15:33:57'
,
NULL
,
NULL
,
'/customer/deleteExaCustomer'
,
'删除客户'
,
'customer'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
41
,
'2020-02-25 15:33:57'
,
'2020-02-25 15:33:57'
,
NULL
,
NULL
,
'/customer/deleteExaCustomer'
,
'删除客户'
,
'customer'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
42
,
'2020-02-25 15:36:48'
,
'2020-02-25 15:37:16'
,
NULL
,
NULL
,
'/customer/getExaCustomer'
,
'获取单一客户'
,
'customer'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
42
,
'2020-02-25 15:36:48'
,
'2020-02-25 15:37:16'
,
NULL
,
NULL
,
'/customer/getExaCustomer'
,
'获取单一客户'
,
'customer'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
43
,
'2020-02-25 15:37:06'
,
'2020-02-25 15:37:06'
,
NULL
,
NULL
,
'/customer/getExaCustomerList'
,
'获取客户列表'
,
'customer'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
43
,
'2020-02-25 15:37:06'
,
'2020-02-25 15:37:06'
,
NULL
,
NULL
,
'/customer/getExaCustomerList'
,
'获取客户列表'
,
'customer'
,
'POST'
);
...
...
QMPlusServer/docs/docs.go
浏览文件 @
b2dc6bfa
...
@@ -209,7 +209,7 @@ var doc = `{
...
@@ -209,7 +209,7 @@ var doc = `{
}
}
}
}
},
},
"/api/updat
a
Api": {
"/api/updat
e
Api": {
"post": {
"post": {
"security": [
"security": [
{
{
...
@@ -559,7 +559,7 @@ var doc = `{
...
@@ -559,7 +559,7 @@ var doc = `{
}
}
}
}
},
},
"/casbin/casbinPUpdat
a
": {
"/casbin/casbinPUpdat
e
": {
"post": {
"post": {
"security": [
"security": [
{
{
...
@@ -793,7 +793,7 @@ var doc = `{
...
@@ -793,7 +793,7 @@ var doc = `{
}
}
}
}
},
},
"/customer/updat
a
ExaCustomer": {
"/customer/updat
e
ExaCustomer": {
"post": {
"post": {
"security": [
"security": [
{
{
...
@@ -1345,7 +1345,7 @@ var doc = `{
...
@@ -1345,7 +1345,7 @@ var doc = `{
}
}
}
}
},
},
"/menu/updat
a
BaseMen": {
"/menu/updat
e
BaseMen": {
"post": {
"post": {
"security": [
"security": [
{
{
...
...
QMPlusServer/docs/swagger.json
浏览文件 @
b2dc6bfa
...
@@ -192,7 +192,7 @@
...
@@ -192,7 +192,7 @@
}
}
}
}
},
},
"/api/updat
a
Api"
:
{
"/api/updat
e
Api"
:
{
"post"
:
{
"post"
:
{
"security"
:
[
"security"
:
[
{
{
...
@@ -542,7 +542,7 @@
...
@@ -542,7 +542,7 @@
}
}
}
}
},
},
"/casbin/casbinPUpdat
a
"
:
{
"/casbin/casbinPUpdat
e
"
:
{
"post"
:
{
"post"
:
{
"security"
:
[
"security"
:
[
{
{
...
@@ -776,7 +776,7 @@
...
@@ -776,7 +776,7 @@
}
}
}
}
},
},
"/customer/updat
a
ExaCustomer"
:
{
"/customer/updat
e
ExaCustomer"
:
{
"post"
:
{
"post"
:
{
"security"
:
[
"security"
:
[
{
{
...
@@ -1328,7 +1328,7 @@
...
@@ -1328,7 +1328,7 @@
}
}
}
}
},
},
"/menu/updat
a
BaseMen"
:
{
"/menu/updat
e
BaseMen"
:
{
"post"
:
{
"post"
:
{
"security"
:
[
"security"
:
[
{
{
...
...
QMPlusServer/docs/swagger.yaml
浏览文件 @
b2dc6bfa
...
@@ -420,7 +420,7 @@ paths:
...
@@ -420,7 +420,7 @@ paths:
summary
:
分页获取API列表
summary
:
分页获取API列表
tags
:
tags
:
-
SysApi
-
SysApi
/api/updat
a
Api
:
/api/updat
e
Api
:
post
:
post
:
consumes
:
consumes
:
-
application/json
-
application/json
...
@@ -636,7 +636,7 @@ paths:
...
@@ -636,7 +636,7 @@ paths:
summary
:
casb RBAC RESTFUL测试路由
summary
:
casb RBAC RESTFUL测试路由
tags
:
tags
:
-
casbin
-
casbin
/casbin/casbinPUpdat
a
:
/casbin/casbinPUpdat
e
:
post
:
post
:
consumes
:
consumes
:
-
application/json
-
application/json
...
@@ -780,7 +780,7 @@ paths:
...
@@ -780,7 +780,7 @@ paths:
summary
:
获取权限客户列表
summary
:
获取权限客户列表
tags
:
tags
:
-
SysApi
-
SysApi
/customer/updat
a
ExaCustomer
:
/customer/updat
e
ExaCustomer
:
post
:
post
:
consumes
:
consumes
:
-
application/json
-
application/json
...
@@ -1118,7 +1118,7 @@ paths:
...
@@ -1118,7 +1118,7 @@ paths:
summary
:
分页获取基础menu列表
summary
:
分页获取基础menu列表
tags
:
tags
:
-
menu
-
menu
/menu/updat
a
BaseMen
:
/menu/updat
e
BaseMen
:
post
:
post
:
consumes
:
consumes
:
-
application/json
-
application/json
...
...
QMPlusServer/model/dbModel/exa_customer.go
浏览文件 @
b2dc6bfa
...
@@ -30,7 +30,7 @@ func (e *ExaCustomer)DeleteExaCustomer()(err error){
...
@@ -30,7 +30,7 @@ func (e *ExaCustomer)DeleteExaCustomer()(err error){
}
}
//更新用户
//更新用户
func
(
e
*
ExaCustomer
)
Updat
a
ExaCustomer
()(
err
error
){
func
(
e
*
ExaCustomer
)
Updat
e
ExaCustomer
()(
err
error
){
err
=
qmsql
.
DEFAULTDB
.
Save
(
e
)
.
Error
err
=
qmsql
.
DEFAULTDB
.
Save
(
e
)
.
Error
return
err
return
err
}
}
...
...
QMPlusServer/model/sysModel/sys_api.go
浏览文件 @
b2dc6bfa
...
@@ -35,7 +35,7 @@ func (a *SysApi) DeleteApi() (err error) {
...
@@ -35,7 +35,7 @@ func (a *SysApi) DeleteApi() (err error) {
}
}
//更新api
//更新api
func
(
a
*
SysApi
)
Updat
a
Api
()
(
err
error
)
{
func
(
a
*
SysApi
)
Updat
e
Api
()
(
err
error
)
{
var
oldA
SysApi
var
oldA
SysApi
flag
:=
qmsql
.
DEFAULTDB
.
Where
(
"path = ?"
,
a
.
Path
)
.
RecordNotFound
()
flag
:=
qmsql
.
DEFAULTDB
.
Where
(
"path = ?"
,
a
.
Path
)
.
RecordNotFound
()
if
!
flag
{
if
!
flag
{
...
@@ -45,7 +45,7 @@ func (a *SysApi) UpdataApi() (err error) {
...
@@ -45,7 +45,7 @@ func (a *SysApi) UpdataApi() (err error) {
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
else
{
}
else
{
err
=
new
(
CasbinModel
)
.
CasbinApiUpdat
a
(
oldA
.
Path
,
a
.
Path
)
err
=
new
(
CasbinModel
)
.
CasbinApiUpdat
e
(
oldA
.
Path
,
a
.
Path
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
else
{
}
else
{
...
...
QMPlusServer/model/sysModel/sys_base_menu.go
浏览文件 @
b2dc6bfa
...
@@ -48,7 +48,7 @@ func (b *SysBaseMenu) DeleteBaseMenu(id float64) (err error) {
...
@@ -48,7 +48,7 @@ func (b *SysBaseMenu) DeleteBaseMenu(id float64) (err error) {
}
}
//更新路由
//更新路由
func
(
b
*
SysBaseMenu
)
Updat
a
BaseMenu
()
(
err
error
)
{
func
(
b
*
SysBaseMenu
)
Updat
e
BaseMenu
()
(
err
error
)
{
upDataMap
:=
make
(
map
[
string
]
interface
{})
upDataMap
:=
make
(
map
[
string
]
interface
{})
upDataMap
[
"parent_id"
]
=
b
.
ParentId
upDataMap
[
"parent_id"
]
=
b
.
ParentId
upDataMap
[
"path"
]
=
b
.
Path
upDataMap
[
"path"
]
=
b
.
Path
...
...
QMPlusServer/model/sysModel/sys_casbin.go
浏览文件 @
b2dc6bfa
...
@@ -31,7 +31,7 @@ type CasbinInReceive struct {
...
@@ -31,7 +31,7 @@ type CasbinInReceive struct {
}
}
// 更新权限
// 更新权限
func
(
c
*
CasbinModel
)
CasbinPUpdat
a
(
AuthorityId
string
,
casbinInfos
[]
CasbinInfo
)
error
{
func
(
c
*
CasbinModel
)
CasbinPUpdat
e
(
AuthorityId
string
,
casbinInfos
[]
CasbinInfo
)
error
{
c
.
clearCasbin
(
0
,
AuthorityId
)
c
.
clearCasbin
(
0
,
AuthorityId
)
for
_
,
v
:=
range
casbinInfos
{
for
_
,
v
:=
range
casbinInfos
{
cm
:=
CasbinModel
{
cm
:=
CasbinModel
{
...
@@ -50,7 +50,7 @@ func (c *CasbinModel) CasbinPUpdata(AuthorityId string, casbinInfos []CasbinInfo
...
@@ -50,7 +50,7 @@ func (c *CasbinModel) CasbinPUpdata(AuthorityId string, casbinInfos []CasbinInfo
}
}
// API更新随动
// API更新随动
func
(
c
*
CasbinModel
)
CasbinApiUpdat
a
(
oldPath
string
,
newPath
string
)
error
{
func
(
c
*
CasbinModel
)
CasbinApiUpdat
e
(
oldPath
string
,
newPath
string
)
error
{
var
cs
[]
CasbinModel
var
cs
[]
CasbinModel
err
:=
qmsql
.
DEFAULTDB
.
Table
(
"casbin_rule"
)
.
Where
(
"v1 = ?"
,
oldPath
)
.
Find
(
&
cs
)
.
Update
(
"v1"
,
newPath
)
.
Error
err
:=
qmsql
.
DEFAULTDB
.
Table
(
"casbin_rule"
)
.
Where
(
"v1 = ?"
,
oldPath
)
.
Find
(
&
cs
)
.
Update
(
"v1"
,
newPath
)
.
Error
return
err
return
err
...
...
QMPlusServer/router/exp_customer.go
浏览文件 @
b2dc6bfa
...
@@ -10,7 +10,7 @@ func InitCustomerRouter(Router *gin.RouterGroup) {
...
@@ -10,7 +10,7 @@ func InitCustomerRouter(Router *gin.RouterGroup) {
ApiRouter
:=
Router
.
Group
(
"customer"
)
.
Use
(
middleware
.
JWTAuth
())
.
Use
(
middleware
.
CasbinHandler
())
ApiRouter
:=
Router
.
Group
(
"customer"
)
.
Use
(
middleware
.
JWTAuth
())
.
Use
(
middleware
.
CasbinHandler
())
{
{
ApiRouter
.
POST
(
"createExaCustomer"
,
api
.
CreateExaCustomer
)
// 创建客户
ApiRouter
.
POST
(
"createExaCustomer"
,
api
.
CreateExaCustomer
)
// 创建客户
ApiRouter
.
POST
(
"updat
aExaCustomer"
,
api
.
Updata
ExaCustomer
)
// 更新客户
ApiRouter
.
POST
(
"updat
eExaCustomer"
,
api
.
Update
ExaCustomer
)
// 更新客户
ApiRouter
.
POST
(
"deleteExaCustomer"
,
api
.
DeleteExaCustomer
)
// 删除客户
ApiRouter
.
POST
(
"deleteExaCustomer"
,
api
.
DeleteExaCustomer
)
// 删除客户
ApiRouter
.
POST
(
"getExaCustomer"
,
api
.
GetExaCustomer
)
// 获取单一客户信息
ApiRouter
.
POST
(
"getExaCustomer"
,
api
.
GetExaCustomer
)
// 获取单一客户信息
ApiRouter
.
POST
(
"getExaCustomerList"
,
api
.
GetExaCustomerList
)
// 获取客户列表
ApiRouter
.
POST
(
"getExaCustomerList"
,
api
.
GetExaCustomerList
)
// 获取客户列表
...
...
QMPlusServer/router/sys_api.go
浏览文件 @
b2dc6bfa
...
@@ -13,7 +13,7 @@ func InitApiRouter(Router *gin.RouterGroup) {
...
@@ -13,7 +13,7 @@ func InitApiRouter(Router *gin.RouterGroup) {
ApiRouter
.
POST
(
"deleteApi"
,
api
.
DeleteApi
)
//删除Api
ApiRouter
.
POST
(
"deleteApi"
,
api
.
DeleteApi
)
//删除Api
ApiRouter
.
POST
(
"getApiList"
,
api
.
GetApiList
)
//获取Api列表
ApiRouter
.
POST
(
"getApiList"
,
api
.
GetApiList
)
//获取Api列表
ApiRouter
.
POST
(
"getApiById"
,
api
.
GetApiById
)
//获取单条Api消息
ApiRouter
.
POST
(
"getApiById"
,
api
.
GetApiById
)
//获取单条Api消息
ApiRouter
.
POST
(
"updat
aApi"
,
api
.
Updata
Api
)
//更新api
ApiRouter
.
POST
(
"updat
eApi"
,
api
.
Update
Api
)
//更新api
ApiRouter
.
POST
(
"getAllApis"
,
api
.
GetAllApis
)
// 获取所有api
ApiRouter
.
POST
(
"getAllApis"
,
api
.
GetAllApis
)
// 获取所有api
}
}
}
}
QMPlusServer/router/sys_casbin.go
浏览文件 @
b2dc6bfa
...
@@ -9,7 +9,7 @@ import (
...
@@ -9,7 +9,7 @@ import (
func
InitCasbinRouter
(
Router
*
gin
.
RouterGroup
)
{
func
InitCasbinRouter
(
Router
*
gin
.
RouterGroup
)
{
CasbinRouter
:=
Router
.
Group
(
"casbin"
)
.
Use
(
middleware
.
JWTAuth
())
.
Use
(
middleware
.
CasbinHandler
())
CasbinRouter
:=
Router
.
Group
(
"casbin"
)
.
Use
(
middleware
.
JWTAuth
())
.
Use
(
middleware
.
CasbinHandler
())
{
{
CasbinRouter
.
POST
(
"casbinPUpdat
a"
,
api
.
CasbinPUpdata
)
CasbinRouter
.
POST
(
"casbinPUpdat
e"
,
api
.
CasbinPUpdate
)
CasbinRouter
.
POST
(
"getPolicyPathByAuthorityId"
,
api
.
GetPolicyPathByAuthorityId
)
CasbinRouter
.
POST
(
"getPolicyPathByAuthorityId"
,
api
.
GetPolicyPathByAuthorityId
)
CasbinRouter
.
GET
(
"casbinTest/:pathParam"
,
api
.
CasbinTest
)
CasbinRouter
.
GET
(
"casbinTest/:pathParam"
,
api
.
CasbinTest
)
}
}
...
...
QMPlusServer/router/sys_menu.go
浏览文件 @
b2dc6bfa
...
@@ -16,7 +16,7 @@ func InitMenuRouter(Router *gin.RouterGroup) (R gin.IRoutes) {
...
@@ -16,7 +16,7 @@ func InitMenuRouter(Router *gin.RouterGroup) (R gin.IRoutes) {
MenuRouter
.
POST
(
"addMenuAuthority"
,
api
.
AddMenuAuthority
)
// 增加menu和角色关联关系
MenuRouter
.
POST
(
"addMenuAuthority"
,
api
.
AddMenuAuthority
)
// 增加menu和角色关联关系
MenuRouter
.
POST
(
"getMenuAuthority"
,
api
.
GetMenuAuthority
)
// 获取指定角色menu
MenuRouter
.
POST
(
"getMenuAuthority"
,
api
.
GetMenuAuthority
)
// 获取指定角色menu
MenuRouter
.
POST
(
"deleteBaseMenu"
,
api
.
DeleteBaseMenu
)
// 删除菜单
MenuRouter
.
POST
(
"deleteBaseMenu"
,
api
.
DeleteBaseMenu
)
// 删除菜单
MenuRouter
.
POST
(
"updat
aBaseMenu"
,
api
.
Updata
BaseMenu
)
// 更新菜单
MenuRouter
.
POST
(
"updat
eBaseMenu"
,
api
.
Update
BaseMenu
)
// 更新菜单
MenuRouter
.
POST
(
"getBaseMenuById"
,
api
.
GetBaseMenuById
)
//根据id获取菜单
MenuRouter
.
POST
(
"getBaseMenuById"
,
api
.
GetBaseMenuById
)
//根据id获取菜单
}
}
return
MenuRouter
return
MenuRouter
...
...
QMPlusVuePage/src/api/api.js
浏览文件 @
b2dc6bfa
...
@@ -61,10 +61,10 @@ export const getApiById = (data) => {
...
@@ -61,10 +61,10 @@ export const getApiById = (data) => {
// @Produce application/json
// @Produce application/json
// @Param data body api.CreateApiParams true "更新api"
// @Param data body api.CreateApiParams true "更新api"
// @Success 200 {string} json "{"success":true,"data":{},"msg":"更新成功"}"
// @Success 200 {string} json "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /api/updat
a
Api [post]
// @Router /api/updat
e
Api [post]
export
const
updat
a
Api
=
(
data
)
=>
{
export
const
updat
e
Api
=
(
data
)
=>
{
return
service
({
return
service
({
url
:
"
/api/updat
a
Api
"
,
url
:
"
/api/updat
e
Api
"
,
method
:
'
post
'
,
method
:
'
post
'
,
data
data
})
})
...
...
QMPlusVuePage/src/api/casbin.js
浏览文件 @
b2dc6bfa
...
@@ -7,11 +7,11 @@ import service from '@/utils/request'
...
@@ -7,11 +7,11 @@ import service from '@/utils/request'
// @Produce application/json
// @Produce application/json
// @Param data body api.CreateAuthorityPatams true "更改角色api权限"
// @Param data body api.CreateAuthorityPatams true "更改角色api权限"
// @Success 200 {string} json "{"success":true,"data":{},"msg":"获取成功"}"
// @Success 200 {string} json "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /casbin/casbinPUpdat
a
[post]
// @Router /casbin/casbinPUpdat
e
[post]
export
const
casbinPUpdat
a
=
(
data
)
=>
{
export
const
casbinPUpdat
e
=
(
data
)
=>
{
return
service
({
return
service
({
url
:
"
/casbin/casbinPUpdat
a
"
,
url
:
"
/casbin/casbinPUpdat
e
"
,
method
:
'
post
'
,
method
:
'
post
'
,
data
data
})
})
...
...
QMPlusVuePage/src/api/customer.js
浏览文件 @
b2dc6bfa
...
@@ -25,10 +25,10 @@ export const createExaCustomer = (data) => {
...
@@ -25,10 +25,10 @@ export const createExaCustomer = (data) => {
// @Produce application/json
// @Produce application/json
// @Param data body dbModel.ExaCustomer true "更新客户信息"
// @Param data body dbModel.ExaCustomer true "更新客户信息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /customer/updat
a
ExaCustomer [post]
// @Router /customer/updat
e
ExaCustomer [post]
export
const
updat
a
ExaCustomer
=
(
data
)
=>
{
export
const
updat
e
ExaCustomer
=
(
data
)
=>
{
return
service
({
return
service
({
url
:
"
/customer/updat
a
ExaCustomer
"
,
url
:
"
/customer/updat
e
ExaCustomer
"
,
method
:
'
post
'
,
method
:
'
post
'
,
data
data
})
})
...
...
QMPlusVuePage/src/api/menu.js
浏览文件 @
b2dc6bfa
...
@@ -90,10 +90,10 @@ export const deleteBaseMenu = (data) => {
...
@@ -90,10 +90,10 @@ export const deleteBaseMenu = (data) => {
// @Summary 修改menu列表
// @Summary 修改menu列表
// @Produce application/json
// @Produce application/json
// @Param menu Object
// @Param menu Object
// @Router /menu/updat
a
BaseMenu [post]
// @Router /menu/updat
e
BaseMenu [post]
export
const
updat
a
BaseMenu
=
(
data
)
=>
{
export
const
updat
e
BaseMenu
=
(
data
)
=>
{
return
service
({
return
service
({
url
:
"
/menu/updat
a
BaseMenu
"
,
url
:
"
/menu/updat
e
BaseMenu
"
,
method
:
'
post
'
,
method
:
'
post
'
,
data
data
})
})
...
...
QMPlusVuePage/src/view/example/customer/customer.vue
浏览文件 @
b2dc6bfa
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
<el-table-column
label=
"接入人ID"
prop=
"sysUserId"
width=
"120"
></el-table-column>
<el-table-column
label=
"接入人ID"
prop=
"sysUserId"
width=
"120"
></el-table-column>
<el-table-column
label=
"按钮组"
>
<el-table-column
label=
"按钮组"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
@
click=
"updat
a
Customer(scope.row)"
size=
"small"
type=
"text"
>
变更
</el-button>
<el-button
@
click=
"updat
e
Customer(scope.row)"
size=
"small"
type=
"text"
>
变更
</el-button>
<el-popover
<el-popover
placement=
"top"
placement=
"top"
width=
"160"
width=
"160"
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
import
{
import
{
createExaCustomer
,
createExaCustomer
,
updat
a
ExaCustomer
,
updat
e
ExaCustomer
,
deleteExaCustomer
,
deleteExaCustomer
,
getExaCustomer
,
getExaCustomer
,
getExaCustomerList
getExaCustomerList
...
@@ -113,7 +113,7 @@ export default {
...
@@ -113,7 +113,7 @@ export default {
}
}
},
},
methods
:{
methods
:{
async
updat
a
Customer
(
row
){
async
updat
e
Customer
(
row
){
const
res
=
await
getExaCustomer
(
row
)
const
res
=
await
getExaCustomer
(
row
)
this
.
type
=
"
update
"
this
.
type
=
"
update
"
if
(
res
.
success
){
if
(
res
.
success
){
...
@@ -138,7 +138,7 @@ export default {
...
@@ -138,7 +138,7 @@ export default {
res
=
await
createExaCustomer
(
this
.
form
)
res
=
await
createExaCustomer
(
this
.
form
)
break
;
break
;
case
"
update
"
:
case
"
update
"
:
res
=
await
updat
a
ExaCustomer
(
this
.
form
)
res
=
await
updat
e
ExaCustomer
(
this
.
form
)
break
;
break
;
default
:
default
:
res
=
await
createExaCustomer
(
this
.
form
)
res
=
await
createExaCustomer
(
this
.
form
)
...
...
QMPlusVuePage/src/view/superAdmin/api/api.vue
浏览文件 @
b2dc6bfa
...
@@ -103,7 +103,7 @@ import {
...
@@ -103,7 +103,7 @@ import {
getApiById
,
getApiById
,
getApiList
,
getApiList
,
createApi
,
createApi
,
updat
a
Api
,
updat
e
Api
,
deleteApi
deleteApi
}
from
'
@/api/api
'
}
from
'
@/api/api
'
import
infoList
from
'
@/components/mixins/infoList
'
import
infoList
from
'
@/components/mixins/infoList
'
...
@@ -231,7 +231,7 @@ export default {
...
@@ -231,7 +231,7 @@ export default {
break
break
case
'
edit
'
:
case
'
edit
'
:
{
{
const
res
=
await
updat
a
Api
(
this
.
form
)
const
res
=
await
updat
e
Api
(
this
.
form
)
if
(
res
.
success
)
{
if
(
res
.
success
)
{
this
.
$message
({
this
.
$message
({
type
:
'
success
'
,
type
:
'
success
'
,
...
...
QMPlusVuePage/src/view/superAdmin/authority/components/apis.vue
浏览文件 @
b2dc6bfa
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getAllApis
}
from
'
@/api/api
'
import
{
getAllApis
}
from
'
@/api/api
'
import
{
casbinPUpdat
a
,
getPolicyPathByAuthorityId
}
from
'
@/api/casbin
'
import
{
casbinPUpdat
e
,
getPolicyPathByAuthorityId
}
from
'
@/api/casbin
'
export
default
{
export
default
{
name
:
'
Apis
'
,
name
:
'
Apis
'
,
props
:
{
props
:
{
...
@@ -72,7 +72,7 @@ export default {
...
@@ -72,7 +72,7 @@ export default {
}
}
casbinInfos
.
push
(
casbinInfo
)
casbinInfos
.
push
(
casbinInfo
)
})
})
const
res
=
await
casbinPUpdat
a
({
const
res
=
await
casbinPUpdat
e
({
authorityId
:
this
.
activeUserId
,
authorityId
:
this
.
activeUserId
,
casbinInfos
casbinInfos
})
})
...
...
QMPlusVuePage/src/view/superAdmin/menu/menu.vue
浏览文件 @
b2dc6bfa
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
// 获取列表内容封装在mixins内部 getTableData方法 初始化已封装完成
// 获取列表内容封装在mixins内部 getTableData方法 初始化已封装完成
import
{
import
{
updat
a
BaseMenu
,
updat
e
BaseMenu
,
getMenuList
,
getMenuList
,
addBaseMenu
,
addBaseMenu
,
deleteBaseMenu
,
deleteBaseMenu
,
...
@@ -186,7 +186,7 @@ export default {
...
@@ -186,7 +186,7 @@ export default {
let
res
let
res
this
.
form
.
name
=
this
.
form
.
path
this
.
form
.
name
=
this
.
form
.
path
if
(
this
.
isEdit
)
{
if
(
this
.
isEdit
)
{
res
=
await
updat
a
BaseMenu
(
this
.
form
)
res
=
await
updat
e
BaseMenu
(
this
.
form
)
}
else
{
}
else
{
res
=
await
addBaseMenu
(
this
.
form
)
res
=
await
addBaseMenu
(
this
.
form
)
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录