package logic import ( "context" "app.yhyue.com/moapp/MessageCenter/rpc/internal/svc" "app.yhyue.com/moapp/MessageCenter/rpc/message" "github.com/tal-tech/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 *message.Request) (*message.Response, error) { // todo: add your logic here and delete this line return &message.Response{}, nil }