35 lines
632 B
Go
35 lines
632 B
Go
// Code scaffolded by goctl. Safe to edit.
|
|
// goctl 1.10.1
|
|
|
|
package chat
|
|
|
|
import (
|
|
"context"
|
|
|
|
"cursor-api-proxy/internal/svc"
|
|
"cursor-api-proxy/internal/types"
|
|
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
)
|
|
|
|
type HealthLogic struct {
|
|
logx.Logger
|
|
ctx context.Context
|
|
svcCtx *svc.ServiceContext
|
|
}
|
|
|
|
func NewHealthLogic(ctx context.Context, svcCtx *svc.ServiceContext) *HealthLogic {
|
|
return &HealthLogic{
|
|
Logger: logx.WithContext(ctx),
|
|
ctx: ctx,
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
func (l *HealthLogic) Health() (resp *types.HealthResponse, err error) {
|
|
return &types.HealthResponse{
|
|
Status: "ok",
|
|
Version: "1.0.0",
|
|
}, nil
|
|
}
|