feat: import services and standardize Go 1.26.5
This commit is contained in:
10
apps/base/mgt/test/app_create.http
Normal file
10
apps/base/mgt/test/app_create.http
Normal file
@@ -0,0 +1,10 @@
|
||||
POST http://rest.apinb.com/mgt/app/create
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"title": "测试应用",
|
||||
"workspace": "test_app",
|
||||
"description": "这是一个测试应用"
|
||||
}
|
||||
|
||||
8
apps/base/mgt/test/app_del.http
Normal file
8
apps/base/mgt/test/app_del.http
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://rest.apinb.com/mgt/app/del
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 1
|
||||
}
|
||||
|
||||
8
apps/base/mgt/test/app_detail.http
Normal file
8
apps/base/mgt/test/app_detail.http
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://rest.apinb.com/mgt/app/detail
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 1
|
||||
}
|
||||
|
||||
11
apps/base/mgt/test/app_fetch.http
Normal file
11
apps/base/mgt/test/app_fetch.http
Normal file
@@ -0,0 +1,11 @@
|
||||
POST http://rest.apinb.com/mgt/app/fetch
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"page": 1,
|
||||
"size": 10,
|
||||
"keyword": "",
|
||||
"status": 1
|
||||
}
|
||||
|
||||
11
apps/base/mgt/test/app_modify.http
Normal file
11
apps/base/mgt/test/app_modify.http
Normal file
@@ -0,0 +1,11 @@
|
||||
POST http://rest.apinb.com/mgt/app/modify
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 1,
|
||||
"title": "修改后的应用名称",
|
||||
"description": "修改后的描述",
|
||||
"status": 1
|
||||
}
|
||||
|
||||
8
apps/base/mgt/test/app_pmn.http
Normal file
8
apps/base/mgt/test/app_pmn.http
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://rest.apinb.com/mgt/app/pmn
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"workspace": "ops-monitor"
|
||||
}
|
||||
|
||||
9
apps/base/mgt/test/app_role.http
Normal file
9
apps/base/mgt/test/app_role.http
Normal file
@@ -0,0 +1,9 @@
|
||||
POST http://rest.apinb.com/mgt/app/role
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 1,
|
||||
"workspace": "your_workspace"
|
||||
}
|
||||
|
||||
9
apps/base/mgt/test/app_user.http
Normal file
9
apps/base/mgt/test/app_user.http
Normal file
@@ -0,0 +1,9 @@
|
||||
POST http://rest.apinb.com/mgt/app/user
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 1,
|
||||
"workspace": "your_workspace"
|
||||
}
|
||||
|
||||
10
apps/base/mgt/test/dpt_create.http
Normal file
10
apps/base/mgt/test/dpt_create.http
Normal file
@@ -0,0 +1,10 @@
|
||||
POST http://rest.apinb.com/mgt/dpt/create
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"name": "测试部门",
|
||||
"leader_id": 1,
|
||||
"parent_id": 0
|
||||
}
|
||||
|
||||
8
apps/base/mgt/test/dpt_del.http
Normal file
8
apps/base/mgt/test/dpt_del.http
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://rest.apinb.com/mgt/dpt/del
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 1
|
||||
}
|
||||
|
||||
8
apps/base/mgt/test/dpt_detail.http
Normal file
8
apps/base/mgt/test/dpt_detail.http
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://rest.apinb.com/mgt/dpt/detail
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 1
|
||||
}
|
||||
|
||||
11
apps/base/mgt/test/dpt_fetch.http
Normal file
11
apps/base/mgt/test/dpt_fetch.http
Normal file
@@ -0,0 +1,11 @@
|
||||
POST http://rest.apinb.com/mgt/dpt/fetch
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"page": 1,
|
||||
"size": 10,
|
||||
"keyword": "",
|
||||
"status": 1
|
||||
}
|
||||
|
||||
8
apps/base/mgt/test/dpt_fetch_tree.http
Normal file
8
apps/base/mgt/test/dpt_fetch_tree.http
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://rest.apinb.com/mgt/dpt/fetch_tree
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"status": 1
|
||||
}
|
||||
|
||||
12
apps/base/mgt/test/dpt_modify.http
Normal file
12
apps/base/mgt/test/dpt_modify.http
Normal file
@@ -0,0 +1,12 @@
|
||||
POST http://rest.apinb.com/mgt/dpt/modify
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 1,
|
||||
"name": "修改后的部门名",
|
||||
"leader_id": 2,
|
||||
"parent_id": 0,
|
||||
"status": 1
|
||||
}
|
||||
|
||||
6
apps/base/mgt/test/hello.http
Normal file
6
apps/base/mgt/test/hello.http
Normal file
@@ -0,0 +1,6 @@
|
||||
GET http://rest.apinb.com/mgt/ping
|
||||
content-type:application/json
|
||||
|
||||
{
|
||||
|
||||
}
|
||||
9
apps/base/mgt/test/login.http
Normal file
9
apps/base/mgt/test/login.http
Normal file
@@ -0,0 +1,9 @@
|
||||
POST http://rest.apinb.com/mgt/login
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"account": "root",
|
||||
"password": "123456",
|
||||
"workspace": ""
|
||||
}
|
||||
|
||||
3
apps/base/mgt/test/ping.http
Normal file
3
apps/base/mgt/test/ping.http
Normal file
@@ -0,0 +1,3 @@
|
||||
GET http://rest.apinb.com/mgt/ping
|
||||
Content-Type: application/json
|
||||
|
||||
16
apps/base/mgt/test/pmn_create.http
Normal file
16
apps/base/mgt/test/pmn_create.http
Normal file
@@ -0,0 +1,16 @@
|
||||
POST http://rest.apinb.com/mgt/pmn/create
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"title": "测试权限",
|
||||
"title_en": "Test Permission",
|
||||
"code": "test:permission",
|
||||
"workspace": "ops",
|
||||
"description": "这是一个测试权限",
|
||||
"parent_id": 0,
|
||||
"menu_path": "/test",
|
||||
"menu_icon": "test",
|
||||
"type": 1
|
||||
}
|
||||
|
||||
8
apps/base/mgt/test/pmn_del.http
Normal file
8
apps/base/mgt/test/pmn_del.http
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://rest.apinb.com/mgt/pmn/del
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 1
|
||||
}
|
||||
|
||||
8
apps/base/mgt/test/pmn_detail.http
Normal file
8
apps/base/mgt/test/pmn_detail.http
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://rest.apinb.com/mgt/pmn/detail
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 1
|
||||
}
|
||||
|
||||
14
apps/base/mgt/test/pmn_fetch.http
Normal file
14
apps/base/mgt/test/pmn_fetch.http
Normal file
@@ -0,0 +1,14 @@
|
||||
POST http://test.apinb.com/mgt/pmn/fetch
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"page": 1,
|
||||
"size": 50,
|
||||
"keyword": "",
|
||||
"workspace": "ops",
|
||||
"status": 1,
|
||||
"sort_key": 0,
|
||||
"id": 13
|
||||
}
|
||||
|
||||
15
apps/base/mgt/test/pmn_modify.http
Normal file
15
apps/base/mgt/test/pmn_modify.http
Normal file
@@ -0,0 +1,15 @@
|
||||
POST http://rest.apinb.com/mgt/pmn/modify
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 1,
|
||||
"title": "修改后的权限名",
|
||||
"title_en": "Modified Permission",
|
||||
"description": "修改后的描述",
|
||||
"menu_path": "/modified",
|
||||
"menu_icon": "modified",
|
||||
"type": 1,
|
||||
"status": 1
|
||||
}
|
||||
|
||||
8
apps/base/mgt/test/pmn_role.http
Normal file
8
apps/base/mgt/test/pmn_role.http
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://rest.apinb.com/mgt/pmn/role
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 1
|
||||
}
|
||||
|
||||
15
apps/base/mgt/test/pmn_sort.http
Normal file
15
apps/base/mgt/test/pmn_sort.http
Normal file
@@ -0,0 +1,15 @@
|
||||
POST http://rest.apinb.com/mgt/pmn/sort
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
[
|
||||
{
|
||||
"pmn_id": 1,
|
||||
"sort_key": 1
|
||||
},
|
||||
{
|
||||
"pmn_id": 2,
|
||||
"sort_key": 2
|
||||
}
|
||||
]
|
||||
|
||||
8
apps/base/mgt/test/pmn_user.http
Normal file
8
apps/base/mgt/test/pmn_user.http
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://rest.apinb.com/mgt/pmn/user
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 1
|
||||
}
|
||||
|
||||
8
apps/base/mgt/test/refresh.http
Normal file
8
apps/base/mgt/test/refresh.http
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://rest.apinb.com/mgt/refresh
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
10
apps/base/mgt/test/reset.http
Normal file
10
apps/base/mgt/test/reset.http
Normal file
@@ -0,0 +1,10 @@
|
||||
POST http://rest.apinb.com/mgt/reset
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"account": "root",
|
||||
"phone": "13800000000",
|
||||
"code": "123456",
|
||||
"password": "newpassword123"
|
||||
}
|
||||
|
||||
8
apps/base/mgt/test/role_app.http
Normal file
8
apps/base/mgt/test/role_app.http
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://rest.apinb.com/mgt/role/app
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 1
|
||||
}
|
||||
|
||||
9
apps/base/mgt/test/role_create.http
Normal file
9
apps/base/mgt/test/role_create.http
Normal file
@@ -0,0 +1,9 @@
|
||||
POST http://rest.apinb.com/mgt/role/create
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"name": "测试角色",
|
||||
"description": "这是一个测试角色描述"
|
||||
}
|
||||
|
||||
8
apps/base/mgt/test/role_del.http
Normal file
8
apps/base/mgt/test/role_del.http
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://rest.apinb.com/mgt/role/del
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 1
|
||||
}
|
||||
|
||||
10
apps/base/mgt/test/role_del_pmn.http
Normal file
10
apps/base/mgt/test/role_del_pmn.http
Normal file
@@ -0,0 +1,10 @@
|
||||
POST http://rest.apinb.com/mgt/role/del_pmn
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"workspace": "your_workspace",
|
||||
"id": 1,
|
||||
"list": [1]
|
||||
}
|
||||
|
||||
8
apps/base/mgt/test/role_detail.http
Normal file
8
apps/base/mgt/test/role_detail.http
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://rest.apinb.com/mgt/role/detail
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 1
|
||||
}
|
||||
|
||||
11
apps/base/mgt/test/role_fetch.http
Normal file
11
apps/base/mgt/test/role_fetch.http
Normal file
@@ -0,0 +1,11 @@
|
||||
POST http://rest.apinb.com/mgt/role/fetch
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"page": 1,
|
||||
"size": 10,
|
||||
"keyword": "",
|
||||
"status": 1
|
||||
}
|
||||
|
||||
11
apps/base/mgt/test/role_modify.http
Normal file
11
apps/base/mgt/test/role_modify.http
Normal file
@@ -0,0 +1,11 @@
|
||||
POST http://rest.apinb.com/mgt/role/modify
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 1,
|
||||
"name": "修改后的角色名",
|
||||
"description": "修改后的角色描述",
|
||||
"status": 1
|
||||
}
|
||||
|
||||
10
apps/base/mgt/test/role_modify_pmn.http
Normal file
10
apps/base/mgt/test/role_modify_pmn.http
Normal file
@@ -0,0 +1,10 @@
|
||||
POST http://rest.apinb.com/mgt/role/modify_pmn
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"workspace": "your_workspace",
|
||||
"id": 1,
|
||||
"list": [1, 2, 3, 4]
|
||||
}
|
||||
|
||||
9
apps/base/mgt/test/role_pmn.http
Normal file
9
apps/base/mgt/test/role_pmn.http
Normal file
@@ -0,0 +1,9 @@
|
||||
POST http://rest.apinb.com/mgt/role/pmn
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 1,
|
||||
"workspace": "your_workspace"
|
||||
}
|
||||
|
||||
8
apps/base/mgt/test/role_pmn_tree.http
Normal file
8
apps/base/mgt/test/role_pmn_tree.http
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://rest.apinb.com/mgt/role/pmn_tree
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 1
|
||||
}
|
||||
|
||||
10
apps/base/mgt/test/role_set_pmn.http
Normal file
10
apps/base/mgt/test/role_set_pmn.http
Normal file
@@ -0,0 +1,10 @@
|
||||
POST http://rest.apinb.com/mgt/role/set_pmn
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"workspace": "your_workspace",
|
||||
"id": 1,
|
||||
"list": [1, 2, 3]
|
||||
}
|
||||
|
||||
8
apps/base/mgt/test/role_user.http
Normal file
8
apps/base/mgt/test/role_user.http
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://rest.apinb.com/mgt/role/user
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 1
|
||||
}
|
||||
|
||||
3
apps/base/mgt/test/session.http
Normal file
3
apps/base/mgt/test/session.http
Normal file
@@ -0,0 +1,3 @@
|
||||
GET http://rest.apinb.com/mgt/session
|
||||
Content-Type: application/json
|
||||
|
||||
8
apps/base/mgt/test/user_app.http
Normal file
8
apps/base/mgt/test/user_app.http
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://rest.apinb.com/mgt/user/app
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 1
|
||||
}
|
||||
|
||||
14
apps/base/mgt/test/user_create.http
Normal file
14
apps/base/mgt/test/user_create.http
Normal file
@@ -0,0 +1,14 @@
|
||||
POST http://rest.apinb.com/mgt/user/create
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"account": "testuser",
|
||||
"name": "测试用户",
|
||||
"password": "123456",
|
||||
"phone": "13800000001",
|
||||
"email": "test@example.com",
|
||||
"avatar": "",
|
||||
"status": 1
|
||||
}
|
||||
|
||||
8
apps/base/mgt/test/user_del.http
Normal file
8
apps/base/mgt/test/user_del.http
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://rest.apinb.com/mgt/user/del
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 1
|
||||
}
|
||||
|
||||
10
apps/base/mgt/test/user_del_pmn.http
Normal file
10
apps/base/mgt/test/user_del_pmn.http
Normal file
@@ -0,0 +1,10 @@
|
||||
POST http://rest.apinb.com/mgt/user/del_pmn
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"workspace": "your_workspace",
|
||||
"id": 1,
|
||||
"list": [1]
|
||||
}
|
||||
|
||||
9
apps/base/mgt/test/user_del_role.http
Normal file
9
apps/base/mgt/test/user_del_role.http
Normal file
@@ -0,0 +1,9 @@
|
||||
POST http://rest.apinb.com/mgt/user/del_role
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"user_id": 1,
|
||||
"role_id": [1]
|
||||
}
|
||||
|
||||
8
apps/base/mgt/test/user_detail.http
Normal file
8
apps/base/mgt/test/user_detail.http
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://rest.apinb.com/mgt/user/detail
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 1
|
||||
}
|
||||
|
||||
11
apps/base/mgt/test/user_fetch.http
Normal file
11
apps/base/mgt/test/user_fetch.http
Normal file
@@ -0,0 +1,11 @@
|
||||
POST http://rest.apinb.com/mgt/user/fetch
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"page": 1,
|
||||
"size": 10,
|
||||
"keyword": "",
|
||||
"status": 1
|
||||
}
|
||||
|
||||
13
apps/base/mgt/test/user_modify.http
Normal file
13
apps/base/mgt/test/user_modify.http
Normal file
@@ -0,0 +1,13 @@
|
||||
POST http://rest.apinb.com/mgt/user/modify
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 1,
|
||||
"name": "修改后的用户名",
|
||||
"phone": "13800000002",
|
||||
"email": "modified@example.com",
|
||||
"avatar": "",
|
||||
"status": 1
|
||||
}
|
||||
|
||||
10
apps/base/mgt/test/user_modify_pmn.http
Normal file
10
apps/base/mgt/test/user_modify_pmn.http
Normal file
@@ -0,0 +1,10 @@
|
||||
POST https://rest.apinb.com/mgt/user/modify_pmn
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"workspace":"ops",
|
||||
"id":2,
|
||||
"list":[82,81]
|
||||
}
|
||||
|
||||
9
apps/base/mgt/test/user_pmn.http
Normal file
9
apps/base/mgt/test/user_pmn.http
Normal file
@@ -0,0 +1,9 @@
|
||||
POST http://rest.apinb.com/mgt/user/pmn
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 2,
|
||||
"workspace": "ops"
|
||||
}
|
||||
|
||||
9
apps/base/mgt/test/user_pmn_tree.http
Normal file
9
apps/base/mgt/test/user_pmn_tree.http
Normal file
@@ -0,0 +1,9 @@
|
||||
POST http://rest.apinb.com/mgt/user/pmn_tree
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
|
||||
{
|
||||
"workspace": "DEF"
|
||||
}
|
||||
|
||||
8
apps/base/mgt/test/user_role.http
Normal file
8
apps/base/mgt/test/user_role.http
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://rest.apinb.com/mgt/user/role
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": 1
|
||||
}
|
||||
|
||||
10
apps/base/mgt/test/user_set_pmn.http
Normal file
10
apps/base/mgt/test/user_set_pmn.http
Normal file
@@ -0,0 +1,10 @@
|
||||
POST http://rest.apinb.com/mgt/user/set_pmn
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"workspace": "your_workspace",
|
||||
"id": 1,
|
||||
"list": [1, 2, 3]
|
||||
}
|
||||
|
||||
9
apps/base/mgt/test/user_set_role.http
Normal file
9
apps/base/mgt/test/user_set_role.http
Normal file
@@ -0,0 +1,9 @@
|
||||
POST http://rest.apinb.com/mgt/user/set_role
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"user_id": 1,
|
||||
"role_id": [1, 2]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user