Skip to content

Commit 6b939ec

Browse files
author
Cairry
committed
🚀 Update topoloty api name
1 parent fe8db64 commit 6b939ec

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

api/topology.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ func (topologyController topologyController) API(gin *gin.RouterGroup) {
2323
middleware.AuditingLog(),
2424
)
2525
{
26-
a.POST("create", topologyController.Create)
27-
a.POST("update", topologyController.Update)
28-
a.POST("delete", topologyController.Delete)
26+
a.POST("createTopology", topologyController.Create)
27+
a.POST("updateTopology", topologyController.Update)
28+
a.POST("deleteTopology", topologyController.Delete)
2929
}
3030

3131
b := gin.Group("topology")
@@ -34,8 +34,8 @@ func (topologyController topologyController) API(gin *gin.RouterGroup) {
3434
middleware.ParseTenant(),
3535
)
3636
{
37-
b.GET("list", topologyController.List)
38-
b.GET("getDetail", topologyController.GetDetail)
37+
b.GET("listTopology", topologyController.List)
38+
b.GET("getTopologyDetail", topologyController.GetDetail)
3939
}
4040
}
4141

internal/models/user_permissions.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -360,16 +360,16 @@ func PermissionsInfo() map[string]UserPermissions {
360360
API: "/api/w8t/event/deleteComment",
361361
},
362362
"createTopology": {
363-
Key: "创建拓扑",
364-
API: "/api/w8t/topology/create",
363+
Key: "创建服务拓扑",
364+
API: "/api/w8t/topology/createTopology",
365365
},
366366
"updateTopology": {
367-
Key: "更新拓扑",
368-
API: "/api/w8t/topology/update",
367+
Key: "更新服务拓扑",
368+
API: "/api/w8t/topology/updateTopology",
369369
},
370370
"deleteTopology": {
371-
Key: "删除拓扑",
372-
API: "/api/w8t/topology/delete",
371+
Key: "删除服务拓扑",
372+
API: "/api/w8t/topology/deleteTopology",
373373
},
374374
}
375375
}

0 commit comments

Comments
 (0)