ws
CI / changes (push) Successful in 1m29s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 29s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 1s
CI / order (push) Successful in 0s
CI / payment (push) Successful in 0s
CI / product (push) Successful in 1s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 20s
CI / support (push) Successful in 1s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 1s
CI / changes (push) Successful in 1m29s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 29s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 1s
CI / order (push) Successful in 0s
CI / payment (push) Successful in 0s
CI / product (push) Successful in 1s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 20s
CI / support (push) Successful in 1s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 1s
This commit is contained in:
@@ -418,6 +418,102 @@ func (x *UserItemsRequest) GetSize() int32 {
|
||||
return 0
|
||||
}
|
||||
|
||||
type LoginQRRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
HostCode string `protobuf:"bytes,1,opt,name=host_code,json=hostCode,proto3" json:"host_code,omitempty"`
|
||||
Bluetooth string `protobuf:"bytes,2,opt,name=bluetooth,proto3" json:"bluetooth,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *LoginQRRequest) Reset() {
|
||||
*x = LoginQRRequest{}
|
||||
mi := &file_percutaneous_percutaneous_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *LoginQRRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*LoginQRRequest) ProtoMessage() {}
|
||||
|
||||
func (x *LoginQRRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_percutaneous_percutaneous_proto_msgTypes[7]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use LoginQRRequest.ProtoReflect.Descriptor instead.
|
||||
func (*LoginQRRequest) Descriptor() ([]byte, []int) {
|
||||
return file_percutaneous_percutaneous_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
func (x *LoginQRRequest) GetHostCode() string {
|
||||
if x != nil {
|
||||
return x.HostCode
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *LoginQRRequest) GetBluetooth() string {
|
||||
if x != nil {
|
||||
return x.Bluetooth
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type AddUserQRRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
HostCode string `protobuf:"bytes,1,opt,name=host_code,json=hostCode,proto3" json:"host_code,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *AddUserQRRequest) Reset() {
|
||||
*x = AddUserQRRequest{}
|
||||
mi := &file_percutaneous_percutaneous_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *AddUserQRRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*AddUserQRRequest) ProtoMessage() {}
|
||||
|
||||
func (x *AddUserQRRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_percutaneous_percutaneous_proto_msgTypes[8]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use AddUserQRRequest.ProtoReflect.Descriptor instead.
|
||||
func (*AddUserQRRequest) Descriptor() ([]byte, []int) {
|
||||
return file_percutaneous_percutaneous_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
func (x *AddUserQRRequest) GetHostCode() string {
|
||||
if x != nil {
|
||||
return x.HostCode
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type EmptyRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
@@ -426,7 +522,7 @@ type EmptyRequest struct {
|
||||
|
||||
func (x *EmptyRequest) Reset() {
|
||||
*x = EmptyRequest{}
|
||||
mi := &file_percutaneous_percutaneous_proto_msgTypes[7]
|
||||
mi := &file_percutaneous_percutaneous_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -438,7 +534,7 @@ func (x *EmptyRequest) String() string {
|
||||
func (*EmptyRequest) ProtoMessage() {}
|
||||
|
||||
func (x *EmptyRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_percutaneous_percutaneous_proto_msgTypes[7]
|
||||
mi := &file_percutaneous_percutaneous_proto_msgTypes[9]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -451,7 +547,51 @@ func (x *EmptyRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead.
|
||||
func (*EmptyRequest) Descriptor() ([]byte, []int) {
|
||||
return file_percutaneous_percutaneous_proto_rawDescGZIP(), []int{7}
|
||||
return file_percutaneous_percutaneous_proto_rawDescGZIP(), []int{9}
|
||||
}
|
||||
|
||||
type WsStreamRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
RawBody []byte `protobuf:"bytes,1,opt,name=raw_body,json=rawBody,proto3" json:"raw_body,omitempty"` // websocket原始业务报文,不做解析
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *WsStreamRequest) Reset() {
|
||||
*x = WsStreamRequest{}
|
||||
mi := &file_percutaneous_percutaneous_proto_msgTypes[10]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *WsStreamRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*WsStreamRequest) ProtoMessage() {}
|
||||
|
||||
func (x *WsStreamRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_percutaneous_percutaneous_proto_msgTypes[10]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use WsStreamRequest.ProtoReflect.Descriptor instead.
|
||||
func (*WsStreamRequest) Descriptor() ([]byte, []int) {
|
||||
return file_percutaneous_percutaneous_proto_rawDescGZIP(), []int{10}
|
||||
}
|
||||
|
||||
func (x *WsStreamRequest) GetRawBody() []byte {
|
||||
if x != nil {
|
||||
return x.RawBody
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_percutaneous_percutaneous_proto protoreflect.FileDescriptor
|
||||
@@ -484,8 +624,15 @@ const file_percutaneous_percutaneous_proto_rawDesc = "" +
|
||||
"\x10UserItemsRequest\x12\x1b\n" +
|
||||
"\thost_code\x18\x01 \x01(\tR\bhostCode\x12\x12\n" +
|
||||
"\x04page\x18\x02 \x01(\x05R\x04page\x12\x12\n" +
|
||||
"\x04size\x18\x03 \x01(\x05R\x04size\"\x0e\n" +
|
||||
"\fEmptyRequest2\xf7\x05\n" +
|
||||
"\x04size\x18\x03 \x01(\x05R\x04size\"K\n" +
|
||||
"\x0eLoginQRRequest\x12\x1b\n" +
|
||||
"\thost_code\x18\x01 \x01(\tR\bhostCode\x12\x1c\n" +
|
||||
"\tbluetooth\x18\x02 \x01(\tR\tbluetooth\"/\n" +
|
||||
"\x10AddUserQRRequest\x12\x1b\n" +
|
||||
"\thost_code\x18\x01 \x01(\tR\bhostCode\"\x0e\n" +
|
||||
"\fEmptyRequest\",\n" +
|
||||
"\x0fWsStreamRequest\x12\x19\n" +
|
||||
"\braw_body\x18\x01 \x01(\fR\arawBody2\xd6\t\n" +
|
||||
"\fPercutaneous\x12o\n" +
|
||||
"\tWifiCheck\x12\x1e.percutaneous.WifiCheckRequest\x1a\x16.percutaneous.Response\"*\x82\xd3\xe4\x93\x02$:\x01*\x12\x1f/api/v3/percutaneous/wifi/check\x12i\n" +
|
||||
"\aWifiSet\x12\x1c.percutaneous.WifiSetRequest\x1a\x16.percutaneous.Response\"(\x82\xd3\xe4\x93\x02\":\x01*\"\x1d/api/v3/percutaneous/wifi/set\x12\\\n" +
|
||||
@@ -493,7 +640,12 @@ const file_percutaneous_percutaneous_proto_rawDesc = "" +
|
||||
"\aUsedLog\x12\x1c.percutaneous.UsedLogRequest\x1a\x16.percutaneous.Response\"(\x82\xd3\xe4\x93\x02\":\x01*\x12\x1d/api/v3/percutaneous/used/log\x12i\n" +
|
||||
"\aAddUser\x12\x1c.percutaneous.AddUserRequest\x1a\x16.percutaneous.Response\"(\x82\xd3\xe4\x93\x02\":\x01*\x12\x1d/api/v3/percutaneous/add/user\x12o\n" +
|
||||
"\tUserItems\x12\x1e.percutaneous.UserItemsRequest\x1a\x16.percutaneous.Response\"*\x82\xd3\xe4\x93\x02$:\x01*\x12\x1f/api/v3/percutaneous/user/items\x12f\n" +
|
||||
"\aWeather\x12\x1a.percutaneous.EmptyRequest\x1a\x16.percutaneous.Response\"'\x82\xd3\xe4\x93\x02!:\x01*\x12\x1c/api/v3/percutaneous/weatherB\x10Z\x0e./percutaneousb\x06proto3"
|
||||
"\aWeather\x12\x1a.percutaneous.EmptyRequest\x1a\x16.percutaneous.Response\"'\x82\xd3\xe4\x93\x02!:\x01*\x12\x1c/api/v3/percutaneous/weather\x12m\n" +
|
||||
"\aLoginQR\x12\x1c.percutaneous.LoginQRRequest\x1a\x16.percutaneous.Response\",\x82\xd3\xe4\x93\x02&:\x01*\x12!/api/v3/percutaneous/login/qrcode\x12t\n" +
|
||||
"\tAddUserQR\x12\x1e.percutaneous.AddUserQRRequest\x1a\x16.percutaneous.Response\"/\x82\xd3\xe4\x93\x02):\x01*\x12$/api/v3/percutaneous/add/user/qrcode\x12Q\n" +
|
||||
"\rWsLoginStream\x12\x1d.percutaneous.WsStreamRequest\x1a\x1d.percutaneous.WsStreamRequest(\x010\x01\x12S\n" +
|
||||
"\x0fWsAddUserStream\x12\x1d.percutaneous.WsStreamRequest\x1a\x1d.percutaneous.WsStreamRequest(\x010\x01\x12P\n" +
|
||||
"\fWsUsedStream\x12\x1d.percutaneous.WsStreamRequest\x1a\x1d.percutaneous.WsStreamRequest(\x010\x01B\x10Z\x0e./percutaneousb\x06proto3"
|
||||
|
||||
var (
|
||||
file_percutaneous_percutaneous_proto_rawDescOnce sync.Once
|
||||
@@ -507,7 +659,7 @@ func file_percutaneous_percutaneous_proto_rawDescGZIP() []byte {
|
||||
return file_percutaneous_percutaneous_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_percutaneous_percutaneous_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||
var file_percutaneous_percutaneous_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
|
||||
var file_percutaneous_percutaneous_proto_goTypes = []any{
|
||||
(*WifiCheckRequest)(nil), // 0: percutaneous.WifiCheckRequest
|
||||
(*WifiSetRequest)(nil), // 1: percutaneous.WifiSetRequest
|
||||
@@ -516,28 +668,41 @@ var file_percutaneous_percutaneous_proto_goTypes = []any{
|
||||
(*Response)(nil), // 4: percutaneous.Response
|
||||
(*AddUserRequest)(nil), // 5: percutaneous.AddUserRequest
|
||||
(*UserItemsRequest)(nil), // 6: percutaneous.UserItemsRequest
|
||||
(*EmptyRequest)(nil), // 7: percutaneous.EmptyRequest
|
||||
(*LoginQRRequest)(nil), // 7: percutaneous.LoginQRRequest
|
||||
(*AddUserQRRequest)(nil), // 8: percutaneous.AddUserQRRequest
|
||||
(*EmptyRequest)(nil), // 9: percutaneous.EmptyRequest
|
||||
(*WsStreamRequest)(nil), // 10: percutaneous.WsStreamRequest
|
||||
}
|
||||
var file_percutaneous_percutaneous_proto_depIdxs = []int32{
|
||||
0, // 0: percutaneous.Percutaneous.WifiCheck:input_type -> percutaneous.WifiCheckRequest
|
||||
1, // 1: percutaneous.Percutaneous.WifiSet:input_type -> percutaneous.WifiSetRequest
|
||||
2, // 2: percutaneous.Percutaneous.Use:input_type -> percutaneous.UseRequest
|
||||
3, // 3: percutaneous.Percutaneous.UsedLog:input_type -> percutaneous.UsedLogRequest
|
||||
5, // 4: percutaneous.Percutaneous.AddUser:input_type -> percutaneous.AddUserRequest
|
||||
6, // 5: percutaneous.Percutaneous.UserItems:input_type -> percutaneous.UserItemsRequest
|
||||
7, // 6: percutaneous.Percutaneous.Weather:input_type -> percutaneous.EmptyRequest
|
||||
4, // 7: percutaneous.Percutaneous.WifiCheck:output_type -> percutaneous.Response
|
||||
4, // 8: percutaneous.Percutaneous.WifiSet:output_type -> percutaneous.Response
|
||||
4, // 9: percutaneous.Percutaneous.Use:output_type -> percutaneous.Response
|
||||
4, // 10: percutaneous.Percutaneous.UsedLog:output_type -> percutaneous.Response
|
||||
4, // 11: percutaneous.Percutaneous.AddUser:output_type -> percutaneous.Response
|
||||
4, // 12: percutaneous.Percutaneous.UserItems:output_type -> percutaneous.Response
|
||||
4, // 13: percutaneous.Percutaneous.Weather:output_type -> percutaneous.Response
|
||||
7, // [7:14] is the sub-list for method output_type
|
||||
0, // [0:7] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
0, // 0: percutaneous.Percutaneous.WifiCheck:input_type -> percutaneous.WifiCheckRequest
|
||||
1, // 1: percutaneous.Percutaneous.WifiSet:input_type -> percutaneous.WifiSetRequest
|
||||
2, // 2: percutaneous.Percutaneous.Use:input_type -> percutaneous.UseRequest
|
||||
3, // 3: percutaneous.Percutaneous.UsedLog:input_type -> percutaneous.UsedLogRequest
|
||||
5, // 4: percutaneous.Percutaneous.AddUser:input_type -> percutaneous.AddUserRequest
|
||||
6, // 5: percutaneous.Percutaneous.UserItems:input_type -> percutaneous.UserItemsRequest
|
||||
9, // 6: percutaneous.Percutaneous.Weather:input_type -> percutaneous.EmptyRequest
|
||||
7, // 7: percutaneous.Percutaneous.LoginQR:input_type -> percutaneous.LoginQRRequest
|
||||
8, // 8: percutaneous.Percutaneous.AddUserQR:input_type -> percutaneous.AddUserQRRequest
|
||||
10, // 9: percutaneous.Percutaneous.WsLoginStream:input_type -> percutaneous.WsStreamRequest
|
||||
10, // 10: percutaneous.Percutaneous.WsAddUserStream:input_type -> percutaneous.WsStreamRequest
|
||||
10, // 11: percutaneous.Percutaneous.WsUsedStream:input_type -> percutaneous.WsStreamRequest
|
||||
4, // 12: percutaneous.Percutaneous.WifiCheck:output_type -> percutaneous.Response
|
||||
4, // 13: percutaneous.Percutaneous.WifiSet:output_type -> percutaneous.Response
|
||||
4, // 14: percutaneous.Percutaneous.Use:output_type -> percutaneous.Response
|
||||
4, // 15: percutaneous.Percutaneous.UsedLog:output_type -> percutaneous.Response
|
||||
4, // 16: percutaneous.Percutaneous.AddUser:output_type -> percutaneous.Response
|
||||
4, // 17: percutaneous.Percutaneous.UserItems:output_type -> percutaneous.Response
|
||||
4, // 18: percutaneous.Percutaneous.Weather:output_type -> percutaneous.Response
|
||||
4, // 19: percutaneous.Percutaneous.LoginQR:output_type -> percutaneous.Response
|
||||
4, // 20: percutaneous.Percutaneous.AddUserQR:output_type -> percutaneous.Response
|
||||
10, // 21: percutaneous.Percutaneous.WsLoginStream:output_type -> percutaneous.WsStreamRequest
|
||||
10, // 22: percutaneous.Percutaneous.WsAddUserStream:output_type -> percutaneous.WsStreamRequest
|
||||
10, // 23: percutaneous.Percutaneous.WsUsedStream:output_type -> percutaneous.WsStreamRequest
|
||||
12, // [12:24] is the sub-list for method output_type
|
||||
0, // [0:12] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_percutaneous_percutaneous_proto_init() }
|
||||
@@ -551,7 +716,7 @@ func file_percutaneous_percutaneous_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_percutaneous_percutaneous_proto_rawDesc), len(file_percutaneous_percutaneous_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 8,
|
||||
NumMessages: 11,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
|
||||
@@ -19,13 +19,18 @@ import (
|
||||
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_Weather_FullMethodName = "/percutaneous.Percutaneous/Weather"
|
||||
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_Weather_FullMethodName = "/percutaneous.Percutaneous/Weather"
|
||||
Percutaneous_LoginQR_FullMethodName = "/percutaneous.Percutaneous/LoginQR"
|
||||
Percutaneous_AddUserQR_FullMethodName = "/percutaneous.Percutaneous/AddUserQR"
|
||||
Percutaneous_WsLoginStream_FullMethodName = "/percutaneous.Percutaneous/WsLoginStream"
|
||||
Percutaneous_WsAddUserStream_FullMethodName = "/percutaneous.Percutaneous/WsAddUserStream"
|
||||
Percutaneous_WsUsedStream_FullMethodName = "/percutaneous.Percutaneous/WsUsedStream"
|
||||
)
|
||||
|
||||
// PercutaneousClient is the client API for Percutaneous service.
|
||||
@@ -39,6 +44,16 @@ type PercutaneousClient interface {
|
||||
AddUser(ctx context.Context, in *AddUserRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
UserItems(ctx context.Context, in *UserItemsRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
Weather(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
// 登录二维码
|
||||
LoginQR(ctx context.Context, in *LoginQRRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
// 添加用户
|
||||
AddUserQR(ctx context.Context, in *AddUserQRRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
// WebSocket登录
|
||||
WsLoginStream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[WsStreamRequest, WsStreamRequest], error)
|
||||
// 添加用户
|
||||
WsAddUserStream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[WsStreamRequest, WsStreamRequest], error)
|
||||
// 使用
|
||||
WsUsedStream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[WsStreamRequest, WsStreamRequest], error)
|
||||
}
|
||||
|
||||
type percutaneousClient struct {
|
||||
@@ -119,6 +134,65 @@ func (c *percutaneousClient) Weather(ctx context.Context, in *EmptyRequest, opts
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *percutaneousClient) LoginQR(ctx context.Context, in *LoginQRRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Percutaneous_LoginQR_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *percutaneousClient) AddUserQR(ctx context.Context, in *AddUserQRRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Percutaneous_AddUserQR_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *percutaneousClient) WsLoginStream(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_WsLoginStream_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_WsLoginStreamClient = grpc.BidiStreamingClient[WsStreamRequest, WsStreamRequest]
|
||||
|
||||
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[1], 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]
|
||||
|
||||
func (c *percutaneousClient) WsUsedStream(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[2], Percutaneous_WsUsedStream_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_WsUsedStreamClient = grpc.BidiStreamingClient[WsStreamRequest, WsStreamRequest]
|
||||
|
||||
// PercutaneousServer is the server API for Percutaneous service.
|
||||
// All implementations must embed UnimplementedPercutaneousServer
|
||||
// for forward compatibility.
|
||||
@@ -130,6 +204,16 @@ type PercutaneousServer interface {
|
||||
AddUser(context.Context, *AddUserRequest) (*Response, error)
|
||||
UserItems(context.Context, *UserItemsRequest) (*Response, error)
|
||||
Weather(context.Context, *EmptyRequest) (*Response, error)
|
||||
// 登录二维码
|
||||
LoginQR(context.Context, *LoginQRRequest) (*Response, error)
|
||||
// 添加用户
|
||||
AddUserQR(context.Context, *AddUserQRRequest) (*Response, error)
|
||||
// WebSocket登录
|
||||
WsLoginStream(grpc.BidiStreamingServer[WsStreamRequest, WsStreamRequest]) error
|
||||
// 添加用户
|
||||
WsAddUserStream(grpc.BidiStreamingServer[WsStreamRequest, WsStreamRequest]) error
|
||||
// 使用
|
||||
WsUsedStream(grpc.BidiStreamingServer[WsStreamRequest, WsStreamRequest]) error
|
||||
mustEmbedUnimplementedPercutaneousServer()
|
||||
}
|
||||
|
||||
@@ -161,6 +245,21 @@ func (UnimplementedPercutaneousServer) UserItems(context.Context, *UserItemsRequ
|
||||
func (UnimplementedPercutaneousServer) Weather(context.Context, *EmptyRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Weather not implemented")
|
||||
}
|
||||
func (UnimplementedPercutaneousServer) LoginQR(context.Context, *LoginQRRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method LoginQR not implemented")
|
||||
}
|
||||
func (UnimplementedPercutaneousServer) AddUserQR(context.Context, *AddUserQRRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method AddUserQR not implemented")
|
||||
}
|
||||
func (UnimplementedPercutaneousServer) WsLoginStream(grpc.BidiStreamingServer[WsStreamRequest, WsStreamRequest]) error {
|
||||
return status.Error(codes.Unimplemented, "method WsLoginStream not implemented")
|
||||
}
|
||||
func (UnimplementedPercutaneousServer) WsAddUserStream(grpc.BidiStreamingServer[WsStreamRequest, WsStreamRequest]) error {
|
||||
return status.Error(codes.Unimplemented, "method WsAddUserStream not implemented")
|
||||
}
|
||||
func (UnimplementedPercutaneousServer) WsUsedStream(grpc.BidiStreamingServer[WsStreamRequest, WsStreamRequest]) error {
|
||||
return status.Error(codes.Unimplemented, "method WsUsedStream not implemented")
|
||||
}
|
||||
func (UnimplementedPercutaneousServer) mustEmbedUnimplementedPercutaneousServer() {}
|
||||
func (UnimplementedPercutaneousServer) testEmbeddedByValue() {}
|
||||
|
||||
@@ -308,6 +407,63 @@ func _Percutaneous_Weather_Handler(srv interface{}, ctx context.Context, dec fun
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Percutaneous_LoginQR_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(LoginQRRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(PercutaneousServer).LoginQR(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Percutaneous_LoginQR_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(PercutaneousServer).LoginQR(ctx, req.(*LoginQRRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Percutaneous_AddUserQR_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(AddUserQRRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(PercutaneousServer).AddUserQR(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Percutaneous_AddUserQR_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(PercutaneousServer).AddUserQR(ctx, req.(*AddUserQRRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Percutaneous_WsLoginStream_Handler(srv interface{}, stream grpc.ServerStream) error {
|
||||
return srv.(PercutaneousServer).WsLoginStream(&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_WsLoginStreamServer = grpc.BidiStreamingServer[WsStreamRequest, WsStreamRequest]
|
||||
|
||||
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]
|
||||
|
||||
func _Percutaneous_WsUsedStream_Handler(srv interface{}, stream grpc.ServerStream) error {
|
||||
return srv.(PercutaneousServer).WsUsedStream(&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_WsUsedStreamServer = 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)
|
||||
@@ -343,7 +499,34 @@ var Percutaneous_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "Weather",
|
||||
Handler: _Percutaneous_Weather_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "LoginQR",
|
||||
Handler: _Percutaneous_LoginQR_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "AddUserQR",
|
||||
Handler: _Percutaneous_AddUserQR_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{
|
||||
{
|
||||
StreamName: "WsLoginStream",
|
||||
Handler: _Percutaneous_WsLoginStream_Handler,
|
||||
ServerStreams: true,
|
||||
ClientStreams: true,
|
||||
},
|
||||
{
|
||||
StreamName: "WsAddUserStream",
|
||||
Handler: _Percutaneous_WsAddUserStream_Handler,
|
||||
ServerStreams: true,
|
||||
ClientStreams: true,
|
||||
},
|
||||
{
|
||||
StreamName: "WsUsedStream",
|
||||
Handler: _Percutaneous_WsUsedStream_Handler,
|
||||
ServerStreams: true,
|
||||
ClientStreams: true,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "percutaneous/percutaneous.proto",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user