经皮湿水仪init and bind's all api
This commit is contained in:
@@ -0,0 +1,388 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc v4.25.8
|
||||
// source: percutaneous/percutaneous.proto
|
||||
|
||||
package percutaneous
|
||||
|
||||
import (
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type WifiCheckRequest 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 *WifiCheckRequest) Reset() {
|
||||
*x = WifiCheckRequest{}
|
||||
mi := &file_percutaneous_percutaneous_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *WifiCheckRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*WifiCheckRequest) ProtoMessage() {}
|
||||
|
||||
func (x *WifiCheckRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_percutaneous_percutaneous_proto_msgTypes[0]
|
||||
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 WifiCheckRequest.ProtoReflect.Descriptor instead.
|
||||
func (*WifiCheckRequest) Descriptor() ([]byte, []int) {
|
||||
return file_percutaneous_percutaneous_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *WifiCheckRequest) GetHostCode() string {
|
||||
if x != nil {
|
||||
return x.HostCode
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type WifiSetRequest 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 *WifiSetRequest) Reset() {
|
||||
*x = WifiSetRequest{}
|
||||
mi := &file_percutaneous_percutaneous_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *WifiSetRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*WifiSetRequest) ProtoMessage() {}
|
||||
|
||||
func (x *WifiSetRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_percutaneous_percutaneous_proto_msgTypes[1]
|
||||
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 WifiSetRequest.ProtoReflect.Descriptor instead.
|
||||
func (*WifiSetRequest) Descriptor() ([]byte, []int) {
|
||||
return file_percutaneous_percutaneous_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *WifiSetRequest) GetHostCode() string {
|
||||
if x != nil {
|
||||
return x.HostCode
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type UseRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
HostCode string `protobuf:"bytes,1,opt,name=host_code,json=hostCode,proto3" json:"host_code,omitempty"`
|
||||
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||||
Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
|
||||
Stamp string `protobuf:"bytes,4,opt,name=stamp,proto3" json:"stamp,omitempty"`
|
||||
Position int32 `protobuf:"varint,5,opt,name=position,proto3" json:"position,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *UseRequest) Reset() {
|
||||
*x = UseRequest{}
|
||||
mi := &file_percutaneous_percutaneous_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *UseRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UseRequest) ProtoMessage() {}
|
||||
|
||||
func (x *UseRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_percutaneous_percutaneous_proto_msgTypes[2]
|
||||
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 UseRequest.ProtoReflect.Descriptor instead.
|
||||
func (*UseRequest) Descriptor() ([]byte, []int) {
|
||||
return file_percutaneous_percutaneous_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *UseRequest) GetHostCode() string {
|
||||
if x != nil {
|
||||
return x.HostCode
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UseRequest) GetUserId() int64 {
|
||||
if x != nil {
|
||||
return x.UserId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UseRequest) GetData() string {
|
||||
if x != nil {
|
||||
return x.Data
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UseRequest) GetStamp() string {
|
||||
if x != nil {
|
||||
return x.Stamp
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UseRequest) GetPosition() int32 {
|
||||
if x != nil {
|
||||
return x.Position
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type UsedLogRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
|
||||
Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *UsedLogRequest) Reset() {
|
||||
*x = UsedLogRequest{}
|
||||
mi := &file_percutaneous_percutaneous_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *UsedLogRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UsedLogRequest) ProtoMessage() {}
|
||||
|
||||
func (x *UsedLogRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_percutaneous_percutaneous_proto_msgTypes[3]
|
||||
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 UsedLogRequest.ProtoReflect.Descriptor instead.
|
||||
func (*UsedLogRequest) Descriptor() ([]byte, []int) {
|
||||
return file_percutaneous_percutaneous_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *UsedLogRequest) GetPage() int32 {
|
||||
if x != nil {
|
||||
return x.Page
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UsedLogRequest) GetSize() int32 {
|
||||
if x != nil {
|
||||
return x.Size
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type Response struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
|
||||
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
|
||||
Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *Response) Reset() {
|
||||
*x = Response{}
|
||||
mi := &file_percutaneous_percutaneous_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Response) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Response) ProtoMessage() {}
|
||||
|
||||
func (x *Response) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_percutaneous_percutaneous_proto_msgTypes[4]
|
||||
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 Response.ProtoReflect.Descriptor instead.
|
||||
func (*Response) Descriptor() ([]byte, []int) {
|
||||
return file_percutaneous_percutaneous_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *Response) GetCode() int32 {
|
||||
if x != nil {
|
||||
return x.Code
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Response) GetMsg() string {
|
||||
if x != nil {
|
||||
return x.Msg
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Response) GetData() string {
|
||||
if x != nil {
|
||||
return x.Data
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_percutaneous_percutaneous_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_percutaneous_percutaneous_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x1fpercutaneous/percutaneous.proto\x12\fpercutaneous\x1a\x1cgoogle/api/annotations.proto\"/\n" +
|
||||
"\x10WifiCheckRequest\x12\x1b\n" +
|
||||
"\thost_code\x18\x01 \x01(\tR\bhostCode\"-\n" +
|
||||
"\x0eWifiSetRequest\x12\x1b\n" +
|
||||
"\thost_code\x18\x01 \x01(\tR\bhostCode\"\x88\x01\n" +
|
||||
"\n" +
|
||||
"UseRequest\x12\x1b\n" +
|
||||
"\thost_code\x18\x01 \x01(\tR\bhostCode\x12\x17\n" +
|
||||
"\auser_id\x18\x02 \x01(\x03R\x06userId\x12\x12\n" +
|
||||
"\x04data\x18\x03 \x01(\tR\x04data\x12\x14\n" +
|
||||
"\x05stamp\x18\x04 \x01(\tR\x05stamp\x12\x1a\n" +
|
||||
"\bposition\x18\x05 \x01(\x05R\bposition\"8\n" +
|
||||
"\x0eUsedLogRequest\x12\x12\n" +
|
||||
"\x04page\x18\x01 \x01(\x05R\x04page\x12\x12\n" +
|
||||
"\x04size\x18\x02 \x01(\x05R\x04size\"D\n" +
|
||||
"\bResponse\x12\x12\n" +
|
||||
"\x04code\x18\x01 \x01(\x05R\x04code\x12\x10\n" +
|
||||
"\x03msg\x18\x02 \x01(\tR\x03msg\x12\x12\n" +
|
||||
"\x04data\x18\x03 \x01(\tR\x04data2\xb3\x03\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" +
|
||||
"\x03Use\x12\x18.percutaneous.UseRequest\x1a\x16.percutaneous.Response\"#\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/api/v3/percutaneous/use\x12i\n" +
|
||||
"\aUsedLog\x12\x1c.percutaneous.UsedLogRequest\x1a\x16.percutaneous.Response\"(\x82\xd3\xe4\x93\x02\":\x01*\x12\x1d/api/v3/percutaneous/used/logB\x10Z\x0e./percutaneousb\x06proto3"
|
||||
|
||||
var (
|
||||
file_percutaneous_percutaneous_proto_rawDescOnce sync.Once
|
||||
file_percutaneous_percutaneous_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_percutaneous_percutaneous_proto_rawDescGZIP() []byte {
|
||||
file_percutaneous_percutaneous_proto_rawDescOnce.Do(func() {
|
||||
file_percutaneous_percutaneous_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_percutaneous_percutaneous_proto_rawDesc), len(file_percutaneous_percutaneous_proto_rawDesc)))
|
||||
})
|
||||
return file_percutaneous_percutaneous_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_percutaneous_percutaneous_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
||||
var file_percutaneous_percutaneous_proto_goTypes = []any{
|
||||
(*WifiCheckRequest)(nil), // 0: percutaneous.WifiCheckRequest
|
||||
(*WifiSetRequest)(nil), // 1: percutaneous.WifiSetRequest
|
||||
(*UseRequest)(nil), // 2: percutaneous.UseRequest
|
||||
(*UsedLogRequest)(nil), // 3: percutaneous.UsedLogRequest
|
||||
(*Response)(nil), // 4: percutaneous.Response
|
||||
}
|
||||
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
|
||||
4, // 4: percutaneous.Percutaneous.WifiCheck:output_type -> percutaneous.Response
|
||||
4, // 5: percutaneous.Percutaneous.WifiSet:output_type -> percutaneous.Response
|
||||
4, // 6: percutaneous.Percutaneous.Use:output_type -> percutaneous.Response
|
||||
4, // 7: percutaneous.Percutaneous.UsedLog:output_type -> percutaneous.Response
|
||||
4, // [4:8] is the sub-list for method output_type
|
||||
0, // [0:4] 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() }
|
||||
func file_percutaneous_percutaneous_proto_init() {
|
||||
if File_percutaneous_percutaneous_proto != nil {
|
||||
return
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_percutaneous_percutaneous_proto_rawDesc), len(file_percutaneous_percutaneous_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 5,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_percutaneous_percutaneous_proto_goTypes,
|
||||
DependencyIndexes: file_percutaneous_percutaneous_proto_depIdxs,
|
||||
MessageInfos: file_percutaneous_percutaneous_proto_msgTypes,
|
||||
}.Build()
|
||||
File_percutaneous_percutaneous_proto = out.File
|
||||
file_percutaneous_percutaneous_proto_goTypes = nil
|
||||
file_percutaneous_percutaneous_proto_depIdxs = nil
|
||||
}
|
||||
Reference in New Issue
Block a user