feat: 迁移plant
This commit is contained in:
@@ -15,11 +15,11 @@ import (
|
||||
func GetAiChatHistoryHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
l := ai.NewGetAiChatHistoryLogic(r.Context(), svcCtx)
|
||||
err := l.GetAiChatHistory()
|
||||
resp, err := l.GetAiChatHistory()
|
||||
if err != nil {
|
||||
response.Fail(w, err.Error())
|
||||
} else {
|
||||
response.Ok(w)
|
||||
response.OkWithData(w, resp)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user