Files
lone-services/rpc/percutaneous/pb/percutaneous_grpc.pb.go
T
gjs 0d8cfc695c
CI / changes (push) Successful in 1m31s
CI / ad (push) Successful in 32s
CI / admin (push) Successful in 22s
CI / bff (push) Successful in 19s
CI / chore (push) Successful in 18s
CI / equipment (push) Successful in 19s
CI / express (push) Successful in 18s
CI / factory (push) Successful in 17s
CI / message (push) Successful in 18s
CI / order (push) Successful in 17s
CI / payment (push) Successful in 17s
CI / percutaneous (push) Successful in 17s
CI / product (push) Successful in 17s
CI / record (push) Successful in 9m26s
CI / sale (push) Successful in 45s
CI / support (push) Successful in 3m8s
CI / task (push) Successful in 27s
CI / user (push) Successful in 21s
CI / wecom (push) Successful in 19s
ws
2026-10-08 16:37:33 +08:00

347 lines
14 KiB
Go

// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.6.2
// - protoc v4.25.8
// source: percutaneous/percutaneous.proto
package percutaneous
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.64.0 or later.
const _ = grpc.SupportPackageIsVersion9
const (
Percutaneous_WifiCheck_FullMethodName = "/percutaneous.Percutaneous/WifiCheck"
Percutaneous_WifiSet_FullMethodName = "/percutaneous.Percutaneous/WifiSet"
Percutaneous_Use_FullMethodName = "/percutaneous.Percutaneous/Use"
Percutaneous_UsedLog_FullMethodName = "/percutaneous.Percutaneous/UsedLog"
Percutaneous_AddUser_FullMethodName = "/percutaneous.Percutaneous/AddUser"
Percutaneous_UserItems_FullMethodName = "/percutaneous.Percutaneous/UserItems"
Percutaneous_WsAddUserStream_FullMethodName = "/percutaneous.Percutaneous/WsAddUserStream"
)
// PercutaneousClient is the client API for Percutaneous service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type PercutaneousClient interface {
WifiCheck(ctx context.Context, in *WifiCheckRequest, opts ...grpc.CallOption) (*Response, error)
WifiSet(ctx context.Context, in *WifiSetRequest, opts ...grpc.CallOption) (*Response, error)
Use(ctx context.Context, in *UseRequest, opts ...grpc.CallOption) (*Response, error)
UsedLog(ctx context.Context, in *UsedLogRequest, opts ...grpc.CallOption) (*Response, error)
AddUser(ctx context.Context, in *AddUserRequest, opts ...grpc.CallOption) (*Response, error)
UserItems(ctx context.Context, in *UserItemsRequest, opts ...grpc.CallOption) (*Response, error)
// 添加用户
WsAddUserStream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[WsStreamRequest, WsStreamRequest], error)
}
type percutaneousClient struct {
cc grpc.ClientConnInterface
}
func NewPercutaneousClient(cc grpc.ClientConnInterface) PercutaneousClient {
return &percutaneousClient{cc}
}
func (c *percutaneousClient) WifiCheck(ctx context.Context, in *WifiCheckRequest, opts ...grpc.CallOption) (*Response, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(Response)
err := c.cc.Invoke(ctx, Percutaneous_WifiCheck_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *percutaneousClient) WifiSet(ctx context.Context, in *WifiSetRequest, opts ...grpc.CallOption) (*Response, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(Response)
err := c.cc.Invoke(ctx, Percutaneous_WifiSet_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *percutaneousClient) Use(ctx context.Context, in *UseRequest, opts ...grpc.CallOption) (*Response, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(Response)
err := c.cc.Invoke(ctx, Percutaneous_Use_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *percutaneousClient) UsedLog(ctx context.Context, in *UsedLogRequest, opts ...grpc.CallOption) (*Response, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(Response)
err := c.cc.Invoke(ctx, Percutaneous_UsedLog_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *percutaneousClient) AddUser(ctx context.Context, in *AddUserRequest, opts ...grpc.CallOption) (*Response, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(Response)
err := c.cc.Invoke(ctx, Percutaneous_AddUser_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *percutaneousClient) UserItems(ctx context.Context, in *UserItemsRequest, opts ...grpc.CallOption) (*Response, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(Response)
err := c.cc.Invoke(ctx, Percutaneous_UserItems_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...)
if err != nil {
return nil, err
}
x := &grpc.GenericClientStream[WsStreamRequest, WsStreamRequest]{ClientStream: stream}
return x, nil
}
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Percutaneous_WsAddUserStreamClient = grpc.BidiStreamingClient[WsStreamRequest, WsStreamRequest]
// PercutaneousServer is the server API for Percutaneous service.
// All implementations must embed UnimplementedPercutaneousServer
// for forward compatibility.
type PercutaneousServer interface {
WifiCheck(context.Context, *WifiCheckRequest) (*Response, error)
WifiSet(context.Context, *WifiSetRequest) (*Response, error)
Use(context.Context, *UseRequest) (*Response, error)
UsedLog(context.Context, *UsedLogRequest) (*Response, error)
AddUser(context.Context, *AddUserRequest) (*Response, error)
UserItems(context.Context, *UserItemsRequest) (*Response, error)
// 添加用户
WsAddUserStream(grpc.BidiStreamingServer[WsStreamRequest, WsStreamRequest]) error
mustEmbedUnimplementedPercutaneousServer()
}
// UnimplementedPercutaneousServer must be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
// pointer dereference when methods are called.
type UnimplementedPercutaneousServer struct{}
func (UnimplementedPercutaneousServer) WifiCheck(context.Context, *WifiCheckRequest) (*Response, error) {
return nil, status.Error(codes.Unimplemented, "method WifiCheck not implemented")
}
func (UnimplementedPercutaneousServer) WifiSet(context.Context, *WifiSetRequest) (*Response, error) {
return nil, status.Error(codes.Unimplemented, "method WifiSet not implemented")
}
func (UnimplementedPercutaneousServer) Use(context.Context, *UseRequest) (*Response, error) {
return nil, status.Error(codes.Unimplemented, "method Use not implemented")
}
func (UnimplementedPercutaneousServer) UsedLog(context.Context, *UsedLogRequest) (*Response, error) {
return nil, status.Error(codes.Unimplemented, "method UsedLog not implemented")
}
func (UnimplementedPercutaneousServer) AddUser(context.Context, *AddUserRequest) (*Response, error) {
return nil, status.Error(codes.Unimplemented, "method AddUser not implemented")
}
func (UnimplementedPercutaneousServer) UserItems(context.Context, *UserItemsRequest) (*Response, error) {
return nil, status.Error(codes.Unimplemented, "method UserItems not implemented")
}
func (UnimplementedPercutaneousServer) WsAddUserStream(grpc.BidiStreamingServer[WsStreamRequest, WsStreamRequest]) error {
return status.Error(codes.Unimplemented, "method WsAddUserStream not implemented")
}
func (UnimplementedPercutaneousServer) mustEmbedUnimplementedPercutaneousServer() {}
func (UnimplementedPercutaneousServer) testEmbeddedByValue() {}
// UnsafePercutaneousServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to PercutaneousServer will
// result in compilation errors.
type UnsafePercutaneousServer interface {
mustEmbedUnimplementedPercutaneousServer()
}
func RegisterPercutaneousServer(s grpc.ServiceRegistrar, srv PercutaneousServer) {
// If the following call panics, it indicates UnimplementedPercutaneousServer was
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
t.testEmbeddedByValue()
}
s.RegisterService(&Percutaneous_ServiceDesc, srv)
}
func _Percutaneous_WifiCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(WifiCheckRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PercutaneousServer).WifiCheck(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Percutaneous_WifiCheck_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PercutaneousServer).WifiCheck(ctx, req.(*WifiCheckRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Percutaneous_WifiSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(WifiSetRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PercutaneousServer).WifiSet(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Percutaneous_WifiSet_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PercutaneousServer).WifiSet(ctx, req.(*WifiSetRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Percutaneous_Use_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UseRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PercutaneousServer).Use(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Percutaneous_Use_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PercutaneousServer).Use(ctx, req.(*UseRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Percutaneous_UsedLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UsedLogRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PercutaneousServer).UsedLog(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Percutaneous_UsedLog_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PercutaneousServer).UsedLog(ctx, req.(*UsedLogRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Percutaneous_AddUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AddUserRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PercutaneousServer).AddUser(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Percutaneous_AddUser_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PercutaneousServer).AddUser(ctx, req.(*AddUserRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Percutaneous_UserItems_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UserItemsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PercutaneousServer).UserItems(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Percutaneous_UserItems_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PercutaneousServer).UserItems(ctx, req.(*UserItemsRequest))
}
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})
}
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Percutaneous_WsAddUserStreamServer = grpc.BidiStreamingServer[WsStreamRequest, WsStreamRequest]
// Percutaneous_ServiceDesc is the grpc.ServiceDesc for Percutaneous service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Percutaneous_ServiceDesc = grpc.ServiceDesc{
ServiceName: "percutaneous.Percutaneous",
HandlerType: (*PercutaneousServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "WifiCheck",
Handler: _Percutaneous_WifiCheck_Handler,
},
{
MethodName: "WifiSet",
Handler: _Percutaneous_WifiSet_Handler,
},
{
MethodName: "Use",
Handler: _Percutaneous_Use_Handler,
},
{
MethodName: "UsedLog",
Handler: _Percutaneous_UsedLog_Handler,
},
{
MethodName: "AddUser",
Handler: _Percutaneous_AddUser_Handler,
},
{
MethodName: "UserItems",
Handler: _Percutaneous_UserItems_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "WsAddUserStream",
Handler: _Percutaneous_WsAddUserStream_Handler,
ServerStreams: true,
ClientStreams: true,
},
},
Metadata: "percutaneous/percutaneous.proto",
}