package logic import ( "context" "godemo/category/category" "godemo/category/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 *category.PingRequest) (*category.PingResponse, error) { // todo: add your logic here and delete this line return &category.PingResponse{}, nil }