add ws 链接确认
CI / changes (push) Successful in 1m43s
CI / ad (push) Successful in 1s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 37s
CI / chore (push) Successful in 1s
CI / equipment (push) Successful in 27s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 0s
CI / order (push) Successful in 1s
CI / payment (push) Successful in 0s
CI / percutaneous (push) Successful in 36s
CI / product (push) Successful in 0s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / store (push) Successful in 0s
CI / support (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 1s
CI / water (push) Successful in 0s
CI / wecom (push) Successful in 1s
CI / changes (push) Successful in 1m43s
CI / ad (push) Successful in 1s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 37s
CI / chore (push) Successful in 1s
CI / equipment (push) Successful in 27s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 0s
CI / order (push) Successful in 1s
CI / payment (push) Successful in 0s
CI / percutaneous (push) Successful in 36s
CI / product (push) Successful in 0s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / store (push) Successful in 0s
CI / support (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 1s
CI / water (push) Successful in 0s
CI / wecom (push) Successful in 1s
This commit is contained in:
@@ -27,6 +27,7 @@ const (
|
||||
Percutaneous_UserItems_FullMethodName = "/percutaneous.Percutaneous/UserItems"
|
||||
Percutaneous_SetPosition_FullMethodName = "/percutaneous.Percutaneous/setPosition"
|
||||
Percutaneous_GetWsCode_FullMethodName = "/percutaneous.Percutaneous/getWsCode"
|
||||
Percutaneous_WsClientStatus_FullMethodName = "/percutaneous.Percutaneous/WsClientStatus"
|
||||
Percutaneous_WsAddUserStream_FullMethodName = "/percutaneous.Percutaneous/WsAddUserStream"
|
||||
)
|
||||
|
||||
@@ -43,6 +44,7 @@ type PercutaneousClient interface {
|
||||
// 使用指南
|
||||
SetPosition(ctx context.Context, in *SetPositionRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
GetWsCode(ctx context.Context, in *GetWsCodeRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
WsClientStatus(ctx context.Context, in *GetWsCodeRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
// 添加用户
|
||||
WsAddUserStream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[WsStreamRequest, WsStreamRequest], error)
|
||||
}
|
||||
@@ -135,6 +137,16 @@ func (c *percutaneousClient) GetWsCode(ctx context.Context, in *GetWsCodeRequest
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *percutaneousClient) WsClientStatus(ctx context.Context, in *GetWsCodeRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Percutaneous_WsClientStatus_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *percutaneousClient) WsAddUserStream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[WsStreamRequest, WsStreamRequest], error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
stream, err := c.cc.NewStream(ctx, &Percutaneous_ServiceDesc.Streams[0], Percutaneous_WsAddUserStream_FullMethodName, cOpts...)
|
||||
@@ -161,6 +173,7 @@ type PercutaneousServer interface {
|
||||
// 使用指南
|
||||
SetPosition(context.Context, *SetPositionRequest) (*Response, error)
|
||||
GetWsCode(context.Context, *GetWsCodeRequest) (*Response, error)
|
||||
WsClientStatus(context.Context, *GetWsCodeRequest) (*Response, error)
|
||||
// 添加用户
|
||||
WsAddUserStream(grpc.BidiStreamingServer[WsStreamRequest, WsStreamRequest]) error
|
||||
mustEmbedUnimplementedPercutaneousServer()
|
||||
@@ -197,6 +210,9 @@ func (UnimplementedPercutaneousServer) SetPosition(context.Context, *SetPosition
|
||||
func (UnimplementedPercutaneousServer) GetWsCode(context.Context, *GetWsCodeRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetWsCode not implemented")
|
||||
}
|
||||
func (UnimplementedPercutaneousServer) WsClientStatus(context.Context, *GetWsCodeRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method WsClientStatus not implemented")
|
||||
}
|
||||
func (UnimplementedPercutaneousServer) WsAddUserStream(grpc.BidiStreamingServer[WsStreamRequest, WsStreamRequest]) error {
|
||||
return status.Error(codes.Unimplemented, "method WsAddUserStream not implemented")
|
||||
}
|
||||
@@ -365,6 +381,24 @@ func _Percutaneous_GetWsCode_Handler(srv interface{}, ctx context.Context, dec f
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Percutaneous_WsClientStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetWsCodeRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(PercutaneousServer).WsClientStatus(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Percutaneous_WsClientStatus_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(PercutaneousServer).WsClientStatus(ctx, req.(*GetWsCodeRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Percutaneous_WsAddUserStream_Handler(srv interface{}, stream grpc.ServerStream) error {
|
||||
return srv.(PercutaneousServer).WsAddUserStream(&grpc.GenericServerStream[WsStreamRequest, WsStreamRequest]{ServerStream: stream})
|
||||
}
|
||||
@@ -411,6 +445,10 @@ var Percutaneous_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "getWsCode",
|
||||
Handler: _Percutaneous_GetWsCode_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "WsClientStatus",
|
||||
Handler: _Percutaneous_WsClientStatus_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user