34 lines
616 B
Go
34 lines
616 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) {
|
|
// todo: add your logic here and delete this line
|
|
|
|
return
|
|
}
|