fix
This commit is contained in:
parent
056fed40f1
commit
ce31946e53
|
@ -33,7 +33,7 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
||||||
Handler: TestAiHandler(serverCtx),
|
Handler: TestAiHandler(serverCtx),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Method: http.MethodGet,
|
Method: http.MethodPost,
|
||||||
Path: "/api/collection/test_pdf",
|
Path: "/api/collection/test_pdf",
|
||||||
Handler: TestPdfHandler(serverCtx),
|
Handler: TestPdfHandler(serverCtx),
|
||||||
},
|
},
|
||||||
|
|
|
@ -45,8 +45,8 @@ type TestAiReq struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type TestPdfReq struct {
|
type TestPdfReq struct {
|
||||||
Content string `form:"content"`
|
Content string `json:"content"`
|
||||||
Type string `form:"type"`
|
Type string `json:"type"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Request struct {
|
type Request struct {
|
||||||
|
|
|
@ -23,7 +23,7 @@ service collection {
|
||||||
get /api/collection/test_ai(TestAiReq) returns (response);
|
get /api/collection/test_ai(TestAiReq) returns (response);
|
||||||
//测试pdf
|
//测试pdf
|
||||||
@handler TestPdfHandler
|
@handler TestPdfHandler
|
||||||
get /api/collection/test_pdf(TestPdfReq) returns (response);
|
post /api/collection/test_pdf(TestPdfReq) returns (response);
|
||||||
}
|
}
|
||||||
|
|
||||||
//收藏产品
|
//收藏产品
|
||||||
|
@ -65,6 +65,6 @@ type TestAiReq {
|
||||||
}
|
}
|
||||||
//测试pdf
|
//测试pdf
|
||||||
type TestPdfReq {
|
type TestPdfReq {
|
||||||
Content string `form:"content"`
|
Content string `json:"content"`
|
||||||
Type string `form:"type"`
|
Type string `json:"type"`
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user