add and fix apis
This commit is contained in:
@@ -191,6 +191,7 @@ type UsedLogRequest struct {
|
||||
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"`
|
||||
Time []string `protobuf:"bytes,4,rep,name=time,proto3" json:"time,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -246,6 +247,13 @@ func (x *UsedLogRequest) GetStamp() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UsedLogRequest) GetTime() []string {
|
||||
if x != nil {
|
||||
return x.Time
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type Response struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
|
||||
@@ -713,11 +721,12 @@ 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\"N\n" +
|
||||
"\bposition\x18\x05 \x01(\x05R\bposition\"b\n" +
|
||||
"\x0eUsedLogRequest\x12\x12\n" +
|
||||
"\x04page\x18\x01 \x01(\x05R\x04page\x12\x12\n" +
|
||||
"\x04size\x18\x02 \x01(\x05R\x04size\x12\x14\n" +
|
||||
"\x05stamp\x18\x03 \x01(\tR\x05stamp\"D\n" +
|
||||
"\x05stamp\x18\x03 \x01(\tR\x05stamp\x12\x12\n" +
|
||||
"\x04time\x18\x04 \x03(\tR\x04time\"D\n" +
|
||||
"\bResponse\x12\x12\n" +
|
||||
"\x04code\x18\x01 \x01(\x05R\x04code\x12\x10\n" +
|
||||
"\x03msg\x18\x02 \x01(\tR\x03msg\x12\x12\n" +
|
||||
@@ -743,14 +752,16 @@ const file_percutaneous_percutaneous_proto_rawDesc = "" +
|
||||
"\auser_id\x18\x02 \x01(\x03R\x06userId\"\x0e\n" +
|
||||
"\fEmptyRequest\",\n" +
|
||||
"\x0fWsStreamRequest\x12\x19\n" +
|
||||
"\braw_body\x18\x01 \x01(\fR\arawBody2\xbf\b\n" +
|
||||
"\braw_body\x18\x01 \x01(\fR\arawBody2\xb0\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" +
|
||||
"\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/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\x12u\n" +
|
||||
"\tUserItems\x12\x1e.percutaneous.UserItemsRequest\x1a\x16.percutaneous.Response\"*\x82\xd3\xe4\x93\x02$:\x01*\x12\x1f/api/v3/percutaneous/user/items\x12o\n" +
|
||||
"\n" +
|
||||
"UserDelete\x12\x1c.percutaneous.AddUserRequest\x1a\x16.percutaneous.Response\"+\x82\xd3\xe4\x93\x02%:\x01*\x12 /api/v3/percutaneous/user/delete\x12u\n" +
|
||||
"\vsetPosition\x12 .percutaneous.setPositionRequest\x1a\x16.percutaneous.Response\",\x82\xd3\xe4\x93\x02&:\x01*\"!/api/v3/percutaneous/use/position\x12m\n" +
|
||||
"\tgetWsCode\x12\x1e.percutaneous.getWsCodeRequest\x1a\x16.percutaneous.Response\"(\x82\xd3\xe4\x93\x02\":\x01*\x12\x1d/api/v3/percutaneous/get/code\x12s\n" +
|
||||
"\x0eWsClientStatus\x12\x1e.percutaneous.getWsCodeRequest\x1a\x16.percutaneous.Response\")\x82\xd3\xe4\x93\x02#:\x01*\x12\x1e/api/v3/percutaneous/ws/status\x12S\n" +
|
||||
@@ -791,22 +802,24 @@ var file_percutaneous_percutaneous_proto_depIdxs = []int32{
|
||||
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.setPosition:input_type -> percutaneous.setPositionRequest
|
||||
10, // 7: percutaneous.Percutaneous.getWsCode:input_type -> percutaneous.getWsCodeRequest
|
||||
10, // 8: percutaneous.Percutaneous.WsClientStatus:input_type -> percutaneous.getWsCodeRequest
|
||||
12, // 9: percutaneous.Percutaneous.WsAddUserStream:input_type -> percutaneous.WsStreamRequest
|
||||
4, // 10: percutaneous.Percutaneous.WifiCheck:output_type -> percutaneous.Response
|
||||
4, // 11: percutaneous.Percutaneous.WifiSet:output_type -> percutaneous.Response
|
||||
4, // 12: percutaneous.Percutaneous.Use:output_type -> percutaneous.Response
|
||||
4, // 13: percutaneous.Percutaneous.UsedLog:output_type -> percutaneous.Response
|
||||
4, // 14: percutaneous.Percutaneous.AddUser:output_type -> percutaneous.Response
|
||||
4, // 15: percutaneous.Percutaneous.UserItems:output_type -> percutaneous.Response
|
||||
4, // 16: percutaneous.Percutaneous.setPosition:output_type -> percutaneous.Response
|
||||
4, // 17: percutaneous.Percutaneous.getWsCode:output_type -> percutaneous.Response
|
||||
4, // 18: percutaneous.Percutaneous.WsClientStatus:output_type -> percutaneous.Response
|
||||
12, // 19: percutaneous.Percutaneous.WsAddUserStream:output_type -> percutaneous.WsStreamRequest
|
||||
10, // [10:20] is the sub-list for method output_type
|
||||
0, // [0:10] is the sub-list for method input_type
|
||||
5, // 6: percutaneous.Percutaneous.UserDelete:input_type -> percutaneous.AddUserRequest
|
||||
9, // 7: percutaneous.Percutaneous.setPosition:input_type -> percutaneous.setPositionRequest
|
||||
10, // 8: percutaneous.Percutaneous.getWsCode:input_type -> percutaneous.getWsCodeRequest
|
||||
10, // 9: percutaneous.Percutaneous.WsClientStatus:input_type -> percutaneous.getWsCodeRequest
|
||||
12, // 10: percutaneous.Percutaneous.WsAddUserStream:input_type -> percutaneous.WsStreamRequest
|
||||
4, // 11: percutaneous.Percutaneous.WifiCheck:output_type -> percutaneous.Response
|
||||
4, // 12: percutaneous.Percutaneous.WifiSet:output_type -> percutaneous.Response
|
||||
4, // 13: percutaneous.Percutaneous.Use:output_type -> percutaneous.Response
|
||||
4, // 14: percutaneous.Percutaneous.UsedLog:output_type -> percutaneous.Response
|
||||
4, // 15: percutaneous.Percutaneous.AddUser:output_type -> percutaneous.Response
|
||||
4, // 16: percutaneous.Percutaneous.UserItems:output_type -> percutaneous.Response
|
||||
4, // 17: percutaneous.Percutaneous.UserDelete:output_type -> percutaneous.Response
|
||||
4, // 18: percutaneous.Percutaneous.setPosition:output_type -> percutaneous.Response
|
||||
4, // 19: percutaneous.Percutaneous.getWsCode:output_type -> percutaneous.Response
|
||||
4, // 20: percutaneous.Percutaneous.WsClientStatus:output_type -> percutaneous.Response
|
||||
12, // 21: percutaneous.Percutaneous.WsAddUserStream:output_type -> percutaneous.WsStreamRequest
|
||||
11, // [11:22] is the sub-list for method output_type
|
||||
0, // [0:11] 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
|
||||
|
||||
Reference in New Issue
Block a user