所有序列化, 都加入 BeforeLogic AfterLogic方法. 便于处理 w r的传递的参数

This commit is contained in:
eson
2023-07-21 15:20:18 +08:00
parent 373d5dca45
commit 2825f8ae54
100 changed files with 1499 additions and 454 deletions

View File

@@ -13,7 +13,7 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
server.AddRoutes(
[]rest.Route{
{
Method: http.MethodGet,
Method: http.MethodPost,
Path: "/api/assistant/redirect",
Handler: RedirectHandler(serverCtx),
},

View File

@@ -6,7 +6,7 @@ import (
)
type RequestRedirect struct {
Url string `query:"url"`
Url string `json:"url"`
}
type Request struct {