Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
是阿延啊
gin-vue-admin
提交
cb0f7f46
G
gin-vue-admin
项目概览
是阿延啊
/
gin-vue-admin
与 Fork 源项目一致
Fork自
FLIPPED-AURORA / gin-vue-admin
通知
1
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,发现更多精彩内容 >>
提交
cb0f7f46
编写于
10月 26, 2020
作者:
Mr.奇淼(
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改 注册接口地址
上级
d27cee19
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
5 deletion
+5
-5
server/cmd/datas/apis.go
server/cmd/datas/apis.go
+1
-1
server/cmd/datas/casbins.go
server/cmd/datas/casbins.go
+3
-3
web/src/api/user.js
web/src/api/user.js
+1
-1
未找到文件。
server/cmd/datas/apis.go
浏览文件 @
cb0f7f46
...
...
@@ -9,7 +9,7 @@ import (
var
Apis
=
[]
model
.
SysApi
{
{
gorm
.
Model
{
ID
:
1
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
"/base/login"
,
"用户登录"
,
"base"
,
"POST"
},
{
gorm
.
Model
{
ID
:
2
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
"/
base/register"
,
"用户注册"
,
"base
"
,
"POST"
},
{
gorm
.
Model
{
ID
:
2
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
"/
user/register"
,
"用户注册"
,
"user
"
,
"POST"
},
{
gorm
.
Model
{
ID
:
3
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
"/api/createApi"
,
"创建api"
,
"api"
,
"POST"
},
{
gorm
.
Model
{
ID
:
4
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
"/api/getApiList"
,
"获取api列表"
,
"api"
,
"POST"
},
{
gorm
.
Model
{
ID
:
5
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
"/api/getApiById"
,
"获取api详细信息"
,
"api"
,
"POST"
},
...
...
server/cmd/datas/casbins.go
浏览文件 @
cb0f7f46
...
...
@@ -7,7 +7,7 @@ import (
var
Carbines
=
[]
gormadapter
.
CasbinRule
{
{
PType
:
"p"
,
V0
:
"888"
,
V1
:
"/base/login"
,
V2
:
"POST"
},
{
PType
:
"p"
,
V0
:
"888"
,
V1
:
"/
base
/register"
,
V2
:
"POST"
},
{
PType
:
"p"
,
V0
:
"888"
,
V1
:
"/
user
/register"
,
V2
:
"POST"
},
{
PType
:
"p"
,
V0
:
"888"
,
V1
:
"/api/createApi"
,
V2
:
"POST"
},
{
PType
:
"p"
,
V0
:
"888"
,
V1
:
"/api/getApiList"
,
V2
:
"POST"
},
{
PType
:
"p"
,
V0
:
"888"
,
V1
:
"/api/getApiById"
,
V2
:
"POST"
},
...
...
@@ -74,7 +74,7 @@ var Carbines = []gormadapter.CasbinRule{
{
PType
:
"p"
,
V0
:
"888"
,
V1
:
"/simpleUploader/checkFileMd5"
,
V2
:
"GET"
},
{
PType
:
"p"
,
V0
:
"888"
,
V1
:
"/simpleUploader/mergeFileMd5"
,
V2
:
"GET"
},
{
PType
:
"p"
,
V0
:
"8881"
,
V1
:
"/base/login"
,
V2
:
"POST"
},
{
PType
:
"p"
,
V0
:
"8881"
,
V1
:
"/
base
/register"
,
V2
:
"POST"
},
{
PType
:
"p"
,
V0
:
"8881"
,
V1
:
"/
user
/register"
,
V2
:
"POST"
},
{
PType
:
"p"
,
V0
:
"8881"
,
V1
:
"/api/createApi"
,
V2
:
"POST"
},
{
PType
:
"p"
,
V0
:
"8881"
,
V1
:
"/api/getApiList"
,
V2
:
"POST"
},
{
PType
:
"p"
,
V0
:
"8881"
,
V1
:
"/api/getApiById"
,
V2
:
"POST"
},
...
...
@@ -111,7 +111,7 @@ var Carbines = []gormadapter.CasbinRule{
{
PType
:
"p"
,
V0
:
"8881"
,
V1
:
"/customer/customer"
,
V2
:
"GET"
},
{
PType
:
"p"
,
V0
:
"8881"
,
V1
:
"/customer/customerList"
,
V2
:
"GET"
},
{
PType
:
"p"
,
V0
:
"9528"
,
V1
:
"/base/login"
,
V2
:
"POST"
},
{
PType
:
"p"
,
V0
:
"9528"
,
V1
:
"/
base
/register"
,
V2
:
"POST"
},
{
PType
:
"p"
,
V0
:
"9528"
,
V1
:
"/
user
/register"
,
V2
:
"POST"
},
{
PType
:
"p"
,
V0
:
"9528"
,
V1
:
"/api/createApi"
,
V2
:
"POST"
},
{
PType
:
"p"
,
V0
:
"9528"
,
V1
:
"/api/getApiList"
,
V2
:
"POST"
},
{
PType
:
"p"
,
V0
:
"9528"
,
V1
:
"/api/getApiById"
,
V2
:
"POST"
},
...
...
web/src/api/user.js
浏览文件 @
cb0f7f46
...
...
@@ -110,4 +110,4 @@ export const setUserInfo = (data) => {
method
:
'
put
'
,
data
:
data
})
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录