数据集

This commit is contained in:
XM-GO
2023-04-27 17:17:46 +08:00
parent a01b7bb55d
commit efbf5917a7
10 changed files with 231 additions and 27 deletions

View File

@@ -35,6 +35,12 @@ func InitVisualDataSourceRouter(container *restful.Container) {
Writes(model.ResultPage{}).
Returns(200, "OK", model.ResultPage{}))
ws.Route(ws.GET("/list/all").To(func(request *restful.Request, response *restful.Response) {
restfulx.NewReqCtx(request, response).WithNeedCasbin(false).WithLog("获取DataSource列表").Handle(s.GetVisualDataSourceListAll)
}).
Doc("获取DataSource列表").
Metadata(restfulspec.KeyOpenAPITags, tags))
ws.Route(ws.GET("/{sourceId}").To(func(request *restful.Request, response *restful.Response) {
restfulx.NewReqCtx(request, response).WithLog("获取DataSource信息").Handle(s.GetVisualDataSource)
}).