|
@@ -34,6 +34,7 @@ import (
|
|
|
dashboard "wechat-api/internal/handler/dashboard"
|
|
|
employee "wechat-api/internal/handler/employee"
|
|
|
employee_config "wechat-api/internal/handler/employee_config"
|
|
|
+ fastgpt "wechat-api/internal/handler/fastgpt"
|
|
|
label "wechat-api/internal/handler/label"
|
|
|
label_relationship "wechat-api/internal/handler/label_relationship"
|
|
|
label_tagging "wechat-api/internal/handler/label_tagging"
|
|
@@ -52,7 +53,6 @@ import (
|
|
|
wxcarduser "wechat-api/internal/handler/wxcarduser"
|
|
|
wxcardvisit "wechat-api/internal/handler/wxcardvisit"
|
|
|
xiaoice "wechat-api/internal/handler/xiaoice"
|
|
|
-
|
|
|
"wechat-api/internal/svc"
|
|
|
|
|
|
"github.com/zeromicro/go-zero/rest"
|
|
@@ -876,7 +876,6 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
|
|
},
|
|
|
}...,
|
|
|
),
|
|
|
- //rest.WithJwt(serverCtx.Config.Auth.AccessSecret),
|
|
|
rest.WithPrefix("/v1"),
|
|
|
)
|
|
|
|
|
@@ -2097,4 +2096,19 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
|
|
),
|
|
|
rest.WithJwt(serverCtx.Config.Auth.AccessSecret),
|
|
|
)
|
|
|
+
|
|
|
+ server.AddRoutes(
|
|
|
+ []rest.Route{
|
|
|
+ {
|
|
|
+ Method: http.MethodGet,
|
|
|
+ Path: "/api/fastgpt/set_token",
|
|
|
+ Handler: fastgpt.SetTokenHandler(serverCtx),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ Method: http.MethodPost,
|
|
|
+ Path: "/api/fastgpt/create",
|
|
|
+ Handler: fastgpt.CreateFastgptHandler(serverCtx),
|
|
|
+ },
|
|
|
+ },
|
|
|
+ )
|
|
|
}
|