f
This commit is contained in:
@@ -28,6 +28,7 @@ import (
|
||||
product "tyc-server/app/main/api/internal/handler/product"
|
||||
query "tyc-server/app/main/api/internal/handler/query"
|
||||
tianyuan "tyc-server/app/main/api/internal/handler/tianyuan"
|
||||
toolbox "tyc-server/app/main/api/internal/handler/toolbox"
|
||||
upload "tyc-server/app/main/api/internal/handler/upload"
|
||||
user "tyc-server/app/main/api/internal/handler/user"
|
||||
"tyc-server/app/main/api/internal/svc"
|
||||
@@ -1175,6 +1176,24 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
||||
rest.WithPrefix("/api/v1"),
|
||||
)
|
||||
|
||||
server.AddRoutes(
|
||||
[]rest.Route{
|
||||
{
|
||||
// 获取工具列表
|
||||
Method: http.MethodGet,
|
||||
Path: "/toolbox/list",
|
||||
Handler: toolbox.ToolboxListHandler(serverCtx),
|
||||
},
|
||||
{
|
||||
// 通用工具查询
|
||||
Method: http.MethodPost,
|
||||
Path: "/toolbox/query",
|
||||
Handler: toolbox.ToolboxQueryHandler(serverCtx),
|
||||
},
|
||||
},
|
||||
rest.WithPrefix("/api/v1"),
|
||||
)
|
||||
|
||||
server.AddRoutes(
|
||||
[]rest.Route{
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user