Files
ocean/gallery/internal/logic/pinglogic.go
2025-05-22 19:39:08 +08:00

32 lines
593 B
Go

package logic
import (
"context"
"godemo/gallery/gallery"
"godemo/gallery/internal/svc"
"github.com/zeromicro/go-zero/core/logx"
)
type PingLogic struct {
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
func NewPingLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PingLogic {
return &PingLogic{
ctx: ctx,
svcCtx: svcCtx,
Logger: logx.WithContext(ctx),
}
}
// 健康检查
func (l *PingLogic) Ping(in *gallery.PingRequest) (*gallery.PingResponse, error) {
// todo: add your logic here and delete this line
return &gallery.PingResponse{}, nil
}