检测是否绑定过wifi、绑定wifi、增加用户使用记录、获取用户使用记录、添加设备使用人、设备使用人列表
This commit is contained in:
@@ -190,6 +190,7 @@ 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"`
|
||||
Stamp string `protobuf:"bytes,3,opt,name=stamp,proto3" json:"stamp,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -238,6 +239,13 @@ func (x *UsedLogRequest) GetSize() int32 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UsedLogRequest) GetStamp() string {
|
||||
if x != nil {
|
||||
return x.Stamp
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type Response struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
|
||||
@@ -298,6 +306,154 @@ func (x *Response) GetData() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
type AddUserRequest 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"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *AddUserRequest) Reset() {
|
||||
*x = AddUserRequest{}
|
||||
mi := &file_percutaneous_percutaneous_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *AddUserRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*AddUserRequest) ProtoMessage() {}
|
||||
|
||||
func (x *AddUserRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_percutaneous_percutaneous_proto_msgTypes[5]
|
||||
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 AddUserRequest.ProtoReflect.Descriptor instead.
|
||||
func (*AddUserRequest) Descriptor() ([]byte, []int) {
|
||||
return file_percutaneous_percutaneous_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *AddUserRequest) GetHostCode() string {
|
||||
if x != nil {
|
||||
return x.HostCode
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AddUserRequest) GetUserId() int64 {
|
||||
if x != nil {
|
||||
return x.UserId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type UserItemsRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
HostCode string `protobuf:"bytes,1,opt,name=host_code,json=hostCode,proto3" json:"host_code,omitempty"`
|
||||
Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
|
||||
Size int32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *UserItemsRequest) Reset() {
|
||||
*x = UserItemsRequest{}
|
||||
mi := &file_percutaneous_percutaneous_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *UserItemsRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UserItemsRequest) ProtoMessage() {}
|
||||
|
||||
func (x *UserItemsRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_percutaneous_percutaneous_proto_msgTypes[6]
|
||||
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 UserItemsRequest.ProtoReflect.Descriptor instead.
|
||||
func (*UserItemsRequest) Descriptor() ([]byte, []int) {
|
||||
return file_percutaneous_percutaneous_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *UserItemsRequest) GetHostCode() string {
|
||||
if x != nil {
|
||||
return x.HostCode
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UserItemsRequest) GetPage() int32 {
|
||||
if x != nil {
|
||||
return x.Page
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UserItemsRequest) GetSize() int32 {
|
||||
if x != nil {
|
||||
return x.Size
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type EmptyRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *EmptyRequest) Reset() {
|
||||
*x = EmptyRequest{}
|
||||
mi := &file_percutaneous_percutaneous_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *EmptyRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*EmptyRequest) ProtoMessage() {}
|
||||
|
||||
func (x *EmptyRequest) 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 EmptyRequest.ProtoReflect.Descriptor instead.
|
||||
func (*EmptyRequest) Descriptor() ([]byte, []int) {
|
||||
return file_percutaneous_percutaneous_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
var File_percutaneous_percutaneous_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_percutaneous_percutaneous_proto_rawDesc = "" +
|
||||
@@ -313,19 +469,31 @@ const file_percutaneous_percutaneous_proto_rawDesc = "" +
|
||||
"\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" +
|
||||
"\bposition\x18\x05 \x01(\x05R\bposition\"N\n" +
|
||||
"\x0eUsedLogRequest\x12\x12\n" +
|
||||
"\x04page\x18\x01 \x01(\x05R\x04page\x12\x12\n" +
|
||||
"\x04size\x18\x02 \x01(\x05R\x04size\"D\n" +
|
||||
"\x04size\x18\x02 \x01(\x05R\x04size\x12\x14\n" +
|
||||
"\x05stamp\x18\x03 \x01(\tR\x05stamp\"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" +
|
||||
"\x04data\x18\x03 \x01(\tR\x04data\"F\n" +
|
||||
"\x0eAddUserRequest\x12\x1b\n" +
|
||||
"\thost_code\x18\x01 \x01(\tR\bhostCode\x12\x17\n" +
|
||||
"\auser_id\x18\x02 \x01(\x03R\x06userId\"W\n" +
|
||||
"\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" +
|
||||
"\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"
|
||||
"\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"
|
||||
|
||||
var (
|
||||
file_percutaneous_percutaneous_proto_rawDescOnce sync.Once
|
||||
@@ -339,25 +507,34 @@ func file_percutaneous_percutaneous_proto_rawDescGZIP() []byte {
|
||||
return file_percutaneous_percutaneous_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_percutaneous_percutaneous_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
||||
var file_percutaneous_percutaneous_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||
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
|
||||
(*AddUserRequest)(nil), // 5: percutaneous.AddUserRequest
|
||||
(*UserItemsRequest)(nil), // 6: percutaneous.UserItemsRequest
|
||||
(*EmptyRequest)(nil), // 7: percutaneous.EmptyRequest
|
||||
}
|
||||
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
|
||||
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
|
||||
@@ -374,7 +551,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: 5,
|
||||
NumMessages: 8,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user