Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
nizhengjia888
gin-vue-admin
提交
249c5b2e
G
gin-vue-admin
项目概览
nizhengjia888
/
gin-vue-admin
与 Fork 源项目一致
Fork自
FLIPPED-AURORA / gin-vue-admin
通知
3
Star
0
Fork
0
代码
文件
提交
分支
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,发现更多精彩内容 >>
未验证
提交
249c5b2e
编写于
5月 12, 2021
作者:
Mr.奇淼(
提交者:
GitHub
5月 12, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #465 from bstdn/master
modified 增加结构体描述,完善自动化文档
上级
5254e752
1c1104d6
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
20 addition
and
11 deletion
+20
-11
server/docs/docs.go
server/docs/docs.go
+5
-2
server/docs/swagger.json
server/docs/swagger.json
+4
-1
server/docs/swagger.yaml
server/docs/swagger.yaml
+4
-1
server/model/request/common.go
server/model/request/common.go
+1
-1
server/model/response/sys_authority.go
server/model/response/sys_authority.go
+1
-1
server/model/sys_authority.go
server/model/sys_authority.go
+4
-4
server/model/sys_user.go
server/model/sys_user.go
+1
-1
未找到文件。
server/docs/docs.go
浏览文件 @
249c5b2e
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag at
// 2021-0
4-30 13:57
:23.4731221 +0800 CST m=+1.258292701
// 2021-0
5-11 17:25
:23.4731221 +0800 CST m=+1.258292701
package
docs
...
...
@@ -3396,6 +3396,7 @@ var doc = `{
}
},
"createdAt": {
"description": "创建时间",
"type": "string"
},
"dataAuthorityId": {
...
...
@@ -3422,6 +3423,7 @@ var doc = `{
"type": "string"
},
"updatedAt": {
"description": "更新时间",
"type": "string"
}
}
...
...
@@ -3696,7 +3698,7 @@ var doc = `{
"type": "integer"
},
"nickName": {
"description": "用户昵称
\"
",
"description": "用户昵称",
"type": "string"
},
"updatedAt": {
...
...
@@ -4105,6 +4107,7 @@ var doc = `{
"$ref": "#/definitions/model.SysAuthority"
},
"oldAuthorityId": {
"description": "旧角色ID",
"type": "string"
}
}
...
...
server/docs/swagger.json
浏览文件 @
249c5b2e
...
...
@@ -3379,6 +3379,7 @@
}
},
"createdAt"
:
{
"description"
:
"创建时间"
,
"type"
:
"string"
},
"dataAuthorityId"
:
{
...
...
@@ -3405,6 +3406,7 @@
"type"
:
"string"
},
"updatedAt"
:
{
"description"
:
"更新时间"
,
"type"
:
"string"
}
}
...
...
@@ -3679,7 +3681,7 @@
"type"
:
"integer"
},
"nickName"
:
{
"description"
:
"用户昵称
\"
"
,
"description"
:
"用户昵称"
,
"type"
:
"string"
},
"updatedAt"
:
{
...
...
@@ -4088,6 +4090,7 @@
"$ref"
:
"#/definitions/model.SysAuthority"
},
"oldAuthorityId"
:
{
"description"
:
"旧角色ID"
,
"type"
:
"string"
}
}
...
...
server/docs/swagger.yaml
浏览文件 @
249c5b2e
...
...
@@ -445,6 +445,7 @@ definitions:
$ref
:
'
#/definitions/model.SysAuthority'
type
:
array
createdAt
:
description
:
创建时间
type
:
string
dataAuthorityId
:
items
:
...
...
@@ -463,6 +464,7 @@ definitions:
description
:
父角色ID
type
:
string
updatedAt
:
description
:
更新时间
type
:
string
type
:
object
model.SysBaseMenu
:
...
...
@@ -661,7 +663,7 @@ definitions:
description
:
主键ID
type
:
integer
nickName
:
description
:
用户昵称
"
description
:
用户昵称
type
:
string
updatedAt
:
description
:
更新时间
...
...
@@ -952,6 +954,7 @@ definitions:
authority
:
$ref
:
'
#/definitions/model.SysAuthority'
oldAuthorityId
:
description
:
旧角色ID
type
:
string
type
:
object
info
:
...
...
server/model/request/common.go
浏览文件 @
249c5b2e
...
...
@@ -8,7 +8,7 @@ type PageInfo struct {
// Find by id structure
type
GetById
struct
{
ID
float64
`json:"id" form:"id"`
ID
float64
`json:"id" form:"id"`
// 主键ID
}
type
IdsReq
struct
{
...
...
server/model/response/sys_authority.go
浏览文件 @
249c5b2e
...
...
@@ -8,5 +8,5 @@ type SysAuthorityResponse struct {
type
SysAuthorityCopyResponse
struct
{
Authority
model
.
SysAuthority
`json:"authority"`
OldAuthorityId
string
`json:"oldAuthorityId"`
OldAuthorityId
string
`json:"oldAuthorityId"`
// 旧角色ID
}
server/model/sys_authority.go
浏览文件 @
249c5b2e
...
...
@@ -5,12 +5,12 @@ import (
)
type
SysAuthority
struct
{
CreatedAt
time
.
Time
UpdatedAt
time
.
Time
CreatedAt
time
.
Time
// 创建时间
UpdatedAt
time
.
Time
// 更新时间
DeletedAt
*
time
.
Time
`sql:"index"`
AuthorityId
string
`json:"authorityId" gorm:"not null;unique;primary_key;comment:角色ID;size:90"`
// 角色ID
AuthorityName
string
`json:"authorityName" gorm:"comment:角色名"`
// 角色名
ParentId
string
`json:"parentId" gorm:"comment:父角色ID"`
// 父角色ID
AuthorityName
string
`json:"authorityName" gorm:"comment:角色名"`
// 角色名
ParentId
string
`json:"parentId" gorm:"comment:父角色ID"`
// 父角色ID
DataAuthorityId
[]
SysAuthority
`json:"dataAuthorityId" gorm:"many2many:sys_data_authority_id"`
Children
[]
SysAuthority
`json:"children" gorm:"-"`
SysBaseMenus
[]
SysBaseMenu
`json:"menus" gorm:"many2many:sys_authority_menus;"`
...
...
server/model/sys_user.go
浏览文件 @
249c5b2e
...
...
@@ -10,7 +10,7 @@ type SysUser struct {
UUID
uuid
.
UUID
`json:"uuid" gorm:"comment:用户UUID"`
// 用户UUID
Username
string
`json:"userName" gorm:"comment:用户登录名"`
// 用户登录名
Password
string
`json:"-" gorm:"comment:用户登录密码"`
// 用户登录密码
NickName
string
`json:"nickName" gorm:"default:系统用户;comment:用户昵称"`
// 用户昵称
"
NickName
string
`json:"nickName" gorm:"default:系统用户;comment:用户昵称"`
// 用户昵称
HeaderImg
string
`json:"headerImg" gorm:"default:http://qmplusimg.henrongyi.top/head.png;comment:用户头像"`
// 用户头像
Authority
SysAuthority
`json:"authority" gorm:"foreignKey:AuthorityId;references:AuthorityId;comment:用户角色"`
AuthorityId
string
`json:"authorityId" gorm:"default:888;comment:用户角色ID"`
// 用户角色ID
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录