feat: import services and standardize Go 1.26.5

This commit is contained in:
2026-08-09 10:43:45 +08:00
parent 689c74b28f
commit 86024fa81d
1456 changed files with 220765 additions and 2 deletions

View 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": "这是一个测试应用"
}

View File

@@ -0,0 +1,8 @@
POST http://rest.apinb.com/mgt/app/del
Content-Type: application/json
Authorization: {{BSM_TOKEN}}
{
"id": 1
}

View File

@@ -0,0 +1,8 @@
POST http://rest.apinb.com/mgt/app/detail
Content-Type: application/json
Authorization: {{BSM_TOKEN}}
{
"id": 1
}

View 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
}

View 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
}

View File

@@ -0,0 +1,8 @@
POST http://rest.apinb.com/mgt/app/pmn
Content-Type: application/json
Authorization: {{BSM_TOKEN}}
{
"workspace": "ops-monitor"
}

View 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"
}

View 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"
}

View 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
}

View File

@@ -0,0 +1,8 @@
POST http://rest.apinb.com/mgt/dpt/del
Content-Type: application/json
Authorization: {{BSM_TOKEN}}
{
"id": 1
}

View File

@@ -0,0 +1,8 @@
POST http://rest.apinb.com/mgt/dpt/detail
Content-Type: application/json
Authorization: {{BSM_TOKEN}}
{
"id": 1
}

View 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
}

View File

@@ -0,0 +1,8 @@
POST http://rest.apinb.com/mgt/dpt/fetch_tree
Content-Type: application/json
Authorization: {{BSM_TOKEN}}
{
"status": 1
}

View 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
}

View File

@@ -0,0 +1,6 @@
GET http://rest.apinb.com/mgt/ping
content-type:application/json
{
}

View File

@@ -0,0 +1,9 @@
POST http://rest.apinb.com/mgt/login
Content-Type: application/json
{
"account": "root",
"password": "123456",
"workspace": ""
}

View File

@@ -0,0 +1,3 @@
GET http://rest.apinb.com/mgt/ping
Content-Type: application/json

View 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
}

View File

@@ -0,0 +1,8 @@
POST http://rest.apinb.com/mgt/pmn/del
Content-Type: application/json
Authorization: {{BSM_TOKEN}}
{
"id": 1
}

View File

@@ -0,0 +1,8 @@
POST http://rest.apinb.com/mgt/pmn/detail
Content-Type: application/json
Authorization: {{BSM_TOKEN}}
{
"id": 1
}

View 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
}

View 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
}

View File

@@ -0,0 +1,8 @@
POST http://rest.apinb.com/mgt/pmn/role
Content-Type: application/json
Authorization: {{BSM_TOKEN}}
{
"id": 1
}

View 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
}
]

View File

@@ -0,0 +1,8 @@
POST http://rest.apinb.com/mgt/pmn/user
Content-Type: application/json
Authorization: {{BSM_TOKEN}}
{
"id": 1
}

View File

@@ -0,0 +1,8 @@
POST http://rest.apinb.com/mgt/refresh
Content-Type: application/json
Authorization: {{BSM_TOKEN}}
{
}

View File

@@ -0,0 +1,10 @@
POST http://rest.apinb.com/mgt/reset
Content-Type: application/json
{
"account": "root",
"phone": "13800000000",
"code": "123456",
"password": "newpassword123"
}

View File

@@ -0,0 +1,8 @@
POST http://rest.apinb.com/mgt/role/app
Content-Type: application/json
Authorization: {{BSM_TOKEN}}
{
"id": 1
}

View File

@@ -0,0 +1,9 @@
POST http://rest.apinb.com/mgt/role/create
Content-Type: application/json
Authorization: {{BSM_TOKEN}}
{
"name": "测试角色",
"description": "这是一个测试角色描述"
}

View File

@@ -0,0 +1,8 @@
POST http://rest.apinb.com/mgt/role/del
Content-Type: application/json
Authorization: {{BSM_TOKEN}}
{
"id": 1
}

View 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]
}

View File

@@ -0,0 +1,8 @@
POST http://rest.apinb.com/mgt/role/detail
Content-Type: application/json
Authorization: {{BSM_TOKEN}}
{
"id": 1
}

View 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
}

View 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
}

View 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]
}

View 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"
}

View File

@@ -0,0 +1,8 @@
POST http://rest.apinb.com/mgt/role/pmn_tree
Content-Type: application/json
Authorization: {{BSM_TOKEN}}
{
"id": 1
}

View 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]
}

View File

@@ -0,0 +1,8 @@
POST http://rest.apinb.com/mgt/role/user
Content-Type: application/json
Authorization: {{BSM_TOKEN}}
{
"id": 1
}

View File

@@ -0,0 +1,3 @@
GET http://rest.apinb.com/mgt/session
Content-Type: application/json

View File

@@ -0,0 +1,8 @@
POST http://rest.apinb.com/mgt/user/app
Content-Type: application/json
Authorization: {{BSM_TOKEN}}
{
"id": 1
}

View 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
}

View File

@@ -0,0 +1,8 @@
POST http://rest.apinb.com/mgt/user/del
Content-Type: application/json
Authorization: {{BSM_TOKEN}}
{
"id": 1
}

View 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]
}

View 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]
}

View File

@@ -0,0 +1,8 @@
POST http://rest.apinb.com/mgt/user/detail
Content-Type: application/json
Authorization: {{BSM_TOKEN}}
{
"id": 1
}

View 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
}

View 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
}

View 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]
}

View File

@@ -0,0 +1,9 @@
POST http://rest.apinb.com/mgt/user/pmn
Content-Type: application/json
Authorization: {{BSM_TOKEN}}
{
"id": 2,
"workspace": "ops"
}

View File

@@ -0,0 +1,9 @@
POST http://rest.apinb.com/mgt/user/pmn_tree
Content-Type: application/json
Authorization: {{BSM_TOKEN}}
{
"workspace": "DEF"
}

View File

@@ -0,0 +1,8 @@
POST http://rest.apinb.com/mgt/user/role
Content-Type: application/json
Authorization: {{BSM_TOKEN}}
{
"id": 1
}

View 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]
}

View 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]
}