package logic import ( "context" "gitea.youtukeji.com.cn/xiabin/youtu_grpc/app/ranking_management/internal/svc" "gitea.youtukeji.com.cn/xiabin/youtu_grpc/app/ranking_management/ranking_management" "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 *ranking_management.Request) (*ranking_management.Response, error) { return &ranking_management.Response{Pong: in.Ping}, nil }