2026-06-13 09:59:21 +08:00
|
|
|
package api
|
|
|
|
|
|
|
|
|
|
import (
|
2026-08-21 00:41:07 +08:00
|
|
|
"code.tczkiot.com/wlw/ai-agent/internal/pkg/httpx"
|
2026-06-13 09:59:21 +08:00
|
|
|
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type healthResponse struct {
|
|
|
|
|
Status string `json:"status"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func Health(ctx *gin.Context) {
|
|
|
|
|
httpx.WriteJSON(ctx, &healthResponse{Status: "ok"})
|
|
|
|
|
}
|