// Code scaffolded by goctl. Safe to edit. // goctl 1.10.1 package normal import ( "context" "gateway/internal/svc" "gateway/internal/types" "github.com/zeromicro/go-zero/core/logx" ) type PingLogic struct { logx.Logger ctx context.Context svcCtx *svc.ServiceContext } // Ping func NewPingLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PingLogic { return &PingLogic{ Logger: logx.WithContext(ctx), ctx: ctx, svcCtx: svcCtx, } } func (l *PingLogic) Ping() (*types.PingData, error) { resp := &types.PingData{Pong: "ok"} return resp, nil }