Skip to content

Commit 06c67c1

Browse files
author
pixel
committed
修改 注册接口地址
1 parent ad047f4 commit 06c67c1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

server/cmd/datas/apis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
var Apis = []model.SysApi{
1111
{gorm.Model{ID: 1, CreatedAt: time.Now(), UpdatedAt: time.Now()}, "/base/login", "用户登录", "base", "POST"},
12-
{gorm.Model{ID: 2, CreatedAt: time.Now(), UpdatedAt: time.Now()}, "/base/register", "用户注册", "base", "POST"},
12+
{gorm.Model{ID: 2, CreatedAt: time.Now(), UpdatedAt: time.Now()}, "/user/register", "用户注册", "user", "POST"},
1313
{gorm.Model{ID: 3, CreatedAt: time.Now(), UpdatedAt: time.Now()}, "/api/createApi", "创建api", "api", "POST"},
1414
{gorm.Model{ID: 4, CreatedAt: time.Now(), UpdatedAt: time.Now()}, "/api/getApiList", "获取api列表", "api", "POST"},
1515
{gorm.Model{ID: 5, CreatedAt: time.Now(), UpdatedAt: time.Now()}, "/api/getApiById", "获取api详细信息", "api", "POST"},

server/cmd/datas/casbins.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
var Carbines = []gormadapter.CasbinRule{
99
{PType: "p", V0: "888", V1: "/base/login", V2: "POST"},
10-
{PType: "p", V0: "888", V1: "/base/register", V2: "POST"},
10+
{PType: "p", V0: "888", V1: "/user/register", V2: "POST"},
1111
{PType: "p", V0: "888", V1: "/api/createApi", V2: "POST"},
1212
{PType: "p", V0: "888", V1: "/api/getApiList", V2: "POST"},
1313
{PType: "p", V0: "888", V1: "/api/getApiById", V2: "POST"},
@@ -74,7 +74,7 @@ var Carbines = []gormadapter.CasbinRule{
7474
{PType: "p", V0: "888", V1: "/simpleUploader/checkFileMd5", V2: "GET"},
7575
{PType: "p", V0: "888", V1: "/simpleUploader/mergeFileMd5", V2: "GET"},
7676
{PType: "p", V0: "8881", V1: "/base/login", V2: "POST"},
77-
{PType: "p", V0: "8881", V1: "/base/register", V2: "POST"},
77+
{PType: "p", V0: "8881", V1: "/user/register", V2: "POST"},
7878
{PType: "p", V0: "8881", V1: "/api/createApi", V2: "POST"},
7979
{PType: "p", V0: "8881", V1: "/api/getApiList", V2: "POST"},
8080
{PType: "p", V0: "8881", V1: "/api/getApiById", V2: "POST"},
@@ -111,7 +111,7 @@ var Carbines = []gormadapter.CasbinRule{
111111
{PType: "p", V0: "8881", V1: "/customer/customer", V2: "GET"},
112112
{PType: "p", V0: "8881", V1: "/customer/customerList", V2: "GET"},
113113
{PType: "p", V0: "9528", V1: "/base/login", V2: "POST"},
114-
{PType: "p", V0: "9528", V1: "/base/register", V2: "POST"},
114+
{PType: "p", V0: "9528", V1: "/user/register", V2: "POST"},
115115
{PType: "p", V0: "9528", V1: "/api/createApi", V2: "POST"},
116116
{PType: "p", V0: "9528", V1: "/api/getApiList", V2: "POST"},
117117
{PType: "p", V0: "9528", V1: "/api/getApiById", V2: "POST"},

web/src/api/user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ export const setUserInfo = (data) => {
110110
method: 'put',
111111
data: data
112112
})
113-
}
113+
}

0 commit comments

Comments
 (0)