// Code generated by goctl. DO NOT EDIT. // goctl 1.9.2 // Source: rpc.proto package server import ( "context" "mingyang-admin-iot-app/rpc/internal/logic" "mingyang-admin-iot-app/rpc/internal/svc" "mingyang-admin-iot-app/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) }