youtu_grpc/app/user/internal/logic/ping_logic.go
xiabin 53a7d70bc9
All checks were successful
/ build-services (app/auth/Dockerfile, auth, auth) (push) Successful in 39s
/ build-services (app/ecpm/Dockerfile, ecpm, ecpm) (push) Successful in 34s
/ build-services (app/ranking/Dockerfile, ranking, ranking) (push) Successful in 39s
/ build-services (app/user/Dockerfile, user_manager, user) (push) Successful in 39s
/ start-services (push) Successful in 5s
update
2025-02-14 10:56:23 +08:00

28 lines
581 B
Go

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