30 lines
563 B
Go
30 lines
563 B
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// goctl 1.9.2
|
|
// Source: rpc.proto
|
|
|
|
package server
|
|
|
|
import (
|
|
"context"
|
|
|
|
"mingyang-admin-pay/rpc/internal/logic"
|
|
"mingyang-admin-pay/rpc/internal/svc"
|
|
"mingyang-admin-pay/rpc/rpc"
|
|
)
|
|
|
|
type RpcServer struct {
|
|
svcCtx *svc.ServiceContext
|
|
rpc.UnimplementedRpcServer
|
|
}
|
|
|
|
func NewRpcServer(svcCtx *svc.ServiceContext) *RpcServer {
|
|
return &RpcServer{
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
func (s *RpcServer) Ping(ctx context.Context, in *rpc.Request) (*rpc.Response, error) {
|
|
l := logic.NewPingLogic(ctx, s.svcCtx)
|
|
return l.Ping(in)
|
|
}
|