Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
FLIPPED-AURORA
gin-vue-admin
提交
ca396b1f
G
gin-vue-admin
项目概览
FLIPPED-AURORA
/
gin-vue-admin
大约 1 年 前同步成功
通知
333
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,发现更多精彩内容 >>
提交
ca396b1f
编写于
12月 20, 2019
作者:
Mr.奇淼(
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
感谢zou2699 指出拼写错误 CreateAuthorityPatams --> CreateAuthorityParams
上级
24f0d85d
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
114 addition
and
21 deletion
+114
-21
QMPlusServer/controller/api/sys_authority.go
QMPlusServer/controller/api/sys_authority.go
+2
-2
QMPlusServer/controller/api/sys_casbin.go
QMPlusServer/controller/api/sys_casbin.go
+2
-2
QMPlusServer/docs/docs.go
QMPlusServer/docs/docs.go
+41
-6
QMPlusServer/docs/swagger.json
QMPlusServer/docs/swagger.json
+40
-5
QMPlusServer/docs/swagger.yaml
QMPlusServer/docs/swagger.yaml
+28
-5
QMPlusServer/init/qmlog/qmlog.go
QMPlusServer/init/qmlog/qmlog.go
+1
-1
未找到文件。
QMPlusServer/controller/api/sys_authority.go
浏览文件 @
ca396b1f
...
...
@@ -8,7 +8,7 @@ import (
"github.com/gin-gonic/gin"
)
type
CreateAuthorityPa
t
ams
struct
{
type
CreateAuthorityPa
r
ams
struct
{
AuthorityId
string
`json:"authorityId"`
AuthorityName
string
`json:"authorityName"`
}
...
...
@@ -18,7 +18,7 @@ type CreateAuthorityPatams struct {
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body api.CreateAuthorityPa
t
ams true "创建角色"
// @Param data body api.CreateAuthorityPa
r
ams true "创建角色"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /authority/createAuthority [post]
func
CreateAuthority
(
c
*
gin
.
Context
)
{
...
...
QMPlusServer/controller/api/sys_casbin.go
浏览文件 @
ca396b1f
...
...
@@ -17,7 +17,7 @@ type CasbinInReceive struct {
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body api.CreateAuthorityPa
t
ams true "更改角色api权限"
// @Param data body api.CreateAuthorityPa
r
ams true "更改角色api权限"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /casbin/casbinPUpdata [post]
func
CasbinPUpdata
(
c
*
gin
.
Context
)
{
...
...
@@ -36,7 +36,7 @@ func CasbinPUpdata(c *gin.Context) {
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body api.CreateAuthorityPa
t
ams true "获取权限列表"
// @Param data body api.CreateAuthorityPa
r
ams true "获取权限列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /casbin/getPolicyPathByAuthorityId [post]
func
GetPolicyPathByAuthorityId
(
c
*
gin
.
Context
)
{
...
...
QMPlusServer/docs/docs.go
浏览文件 @
ca396b1f
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag at
// 2019-12-
13 14:31:12.9298434 +0800 CST m=+0.056881
601
// 2019-12-
20 11:36:51.4275267 +0800 CST m=+0.082812
601
package
docs
...
...
@@ -273,7 +273,7 @@ var doc = `{
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/api.CreateAuthorityPa
t
ams"
"$ref": "#/definitions/api.CreateAuthorityPa
r
ams"
}
}
],
...
...
@@ -413,7 +413,7 @@ var doc = `{
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/
api.RegistAndLoginStuct
"
"$ref": "#/definitions/
sysModel.SysUser
"
}
}
],
...
...
@@ -452,7 +452,7 @@ var doc = `{
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/api.CreateAuthorityPa
t
ams"
"$ref": "#/definitions/api.CreateAuthorityPa
r
ams"
}
}
],
...
...
@@ -491,7 +491,7 @@ var doc = `{
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/api.CreateAuthorityPa
t
ams"
"$ref": "#/definitions/api.CreateAuthorityPa
r
ams"
}
}
],
...
...
@@ -1159,7 +1159,7 @@ var doc = `{
}
}
},
"api.CreateAuthorityPa
t
ams": {
"api.CreateAuthorityPa
r
ams": {
"type": "object",
"properties": {
"authorityId": {
...
...
@@ -1258,6 +1258,17 @@ var doc = `{
}
}
},
"sysModel.SysAuthority": {
"type": "object",
"properties": {
"authorityId": {
"type": "string"
},
"authorityName": {
"type": "string"
}
}
},
"sysModel.SysBaseMenu": {
"type": "object",
"properties": {
...
...
@@ -1296,6 +1307,30 @@ var doc = `{
}
}
},
"sysModel.SysUser": {
"type": "object",
"properties": {
"authority": {
"type": "object",
"$ref": "#/definitions/sysModel.SysAuthority"
},
"authorityId": {
"type": "string"
},
"headerImg": {
"type": "string"
},
"nickName": {
"type": "string"
},
"userName": {
"type": "string"
},
"uuid": {
"type": "string"
}
}
},
"sysModel.SysWorkflow": {
"type": "object",
"properties": {
...
...
QMPlusServer/docs/swagger.json
浏览文件 @
ca396b1f
...
...
@@ -256,7 +256,7 @@
"required"
:
true
,
"schema"
:
{
"type"
:
"object"
,
"$ref"
:
"#/definitions/api.CreateAuthorityPa
t
ams"
"$ref"
:
"#/definitions/api.CreateAuthorityPa
r
ams"
}
}
],
...
...
@@ -396,7 +396,7 @@
"required"
:
true
,
"schema"
:
{
"type"
:
"object"
,
"$ref"
:
"#/definitions/
api.RegistAndLoginStuct
"
"$ref"
:
"#/definitions/
sysModel.SysUser
"
}
}
],
...
...
@@ -435,7 +435,7 @@
"required"
:
true
,
"schema"
:
{
"type"
:
"object"
,
"$ref"
:
"#/definitions/api.CreateAuthorityPa
t
ams"
"$ref"
:
"#/definitions/api.CreateAuthorityPa
r
ams"
}
}
],
...
...
@@ -474,7 +474,7 @@
"required"
:
true
,
"schema"
:
{
"type"
:
"object"
,
"$ref"
:
"#/definitions/api.CreateAuthorityPa
t
ams"
"$ref"
:
"#/definitions/api.CreateAuthorityPa
r
ams"
}
}
],
...
...
@@ -1142,7 +1142,7 @@
}
}
},
"api.CreateAuthorityPa
t
ams"
:
{
"api.CreateAuthorityPa
r
ams"
:
{
"type"
:
"object"
,
"properties"
:
{
"authorityId"
:
{
...
...
@@ -1241,6 +1241,17 @@
}
}
},
"sysModel.SysAuthority"
:
{
"type"
:
"object"
,
"properties"
:
{
"authorityId"
:
{
"type"
:
"string"
},
"authorityName"
:
{
"type"
:
"string"
}
}
},
"sysModel.SysBaseMenu"
:
{
"type"
:
"object"
,
"properties"
:
{
...
...
@@ -1279,6 +1290,30 @@
}
}
},
"sysModel.SysUser"
:
{
"type"
:
"object"
,
"properties"
:
{
"authority"
:
{
"type"
:
"object"
,
"$ref"
:
"#/definitions/sysModel.SysAuthority"
},
"authorityId"
:
{
"type"
:
"string"
},
"headerImg"
:
{
"type"
:
"string"
},
"nickName"
:
{
"type"
:
"string"
},
"userName"
:
{
"type"
:
"string"
},
"uuid"
:
{
"type"
:
"string"
}
}
},
"sysModel.SysWorkflow"
:
{
"type"
:
"object"
,
"properties"
:
{
...
...
QMPlusServer/docs/swagger.yaml
浏览文件 @
ca396b1f
...
...
@@ -30,7 +30,7 @@ definitions:
path
:
type
:
string
type
:
object
api.CreateAuthorityPa
t
ams
:
api.CreateAuthorityPa
r
ams
:
properties
:
authorityId
:
type
:
string
...
...
@@ -93,6 +93,13 @@ definitions:
path
:
type
:
string
type
:
object
sysModel.SysAuthority
:
properties
:
authorityId
:
type
:
string
authorityName
:
type
:
string
type
:
object
sysModel.SysBaseMenu
:
properties
:
children
:
...
...
@@ -118,6 +125,22 @@ definitions:
title
:
type
:
string
type
:
object
sysModel.SysUser
:
properties
:
authority
:
$ref
:
'
#/definitions/sysModel.SysAuthority'
type
:
object
authorityId
:
type
:
string
headerImg
:
type
:
string
nickName
:
type
:
string
userName
:
type
:
string
uuid
:
type
:
string
type
:
object
sysModel.SysWorkflow
:
properties
:
workflowDescription
:
...
...
@@ -309,7 +332,7 @@ paths:
name
:
data
required
:
true
schema
:
$ref
:
'
#/definitions/api.CreateAuthorityPa
t
ams'
$ref
:
'
#/definitions/api.CreateAuthorityPa
r
ams'
type
:
object
produces
:
-
application/json
...
...
@@ -399,7 +422,7 @@ paths:
name
:
data
required
:
true
schema
:
$ref
:
'
#/definitions/
api.RegistAndLoginStuct
'
$ref
:
'
#/definitions/
sysModel.SysUser
'
type
:
object
produces
:
-
application/json
...
...
@@ -421,7 +444,7 @@ paths:
name
:
data
required
:
true
schema
:
$ref
:
'
#/definitions/api.CreateAuthorityPa
t
ams'
$ref
:
'
#/definitions/api.CreateAuthorityPa
r
ams'
type
:
object
produces
:
-
application/json
...
...
@@ -445,7 +468,7 @@ paths:
name
:
data
required
:
true
schema
:
$ref
:
'
#/definitions/api.CreateAuthorityPa
t
ams'
$ref
:
'
#/definitions/api.CreateAuthorityPa
r
ams'
type
:
object
produces
:
-
application/json
...
...
QMPlusServer/init/qmlog/qmlog.go
浏览文件 @
ca396b1f
...
...
@@ -24,7 +24,7 @@ func InitLog() *logrus.Logger {
if
ok
,
_
:=
tools
.
PathExists
(
"./log"
);
!
ok
{
// Directory not exist
fmt
.
Println
(
"Create log."
)
os
.
Mkdir
(
"log"
,
os
.
ModePerm
)
_
=
os
.
Mkdir
(
"log"
,
os
.
ModePerm
)
}
apiLogPath
:=
"./log/api.log"
logWriter
,
err
:=
rotatelogs
.
New
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录