liuxiaolong
2020-05-27 9ffdb024c5fcc1dd353d3f37fcfdfa21bedba143
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
syntax = "proto3";
 
package device;
 
message AddDeviceReq {
    repeated string devIds = 1;
    string userId = 2;
}
 
message AddDeviceReply {
    repeated string successList = 1;
    repeated string failList = 2;
}
 
message GetDeviceListReq {
    string startTime = 1;
    string endTime = 2;
    string inputText = 3;
 
    int32 page = 4;
    int32 size = 5;
 
    string orderName = 6;
    string orderType = 7;
    string userId = 8;
}
 
message DeviceInfo {
    string id = 1;
    string installActivateCode = 2;
    string installProductName = 3;
    string installTime = 4;
    string installUserId = 5;
    string installUsername = 6;
    string devId = 7;
    string devIp = 8;
    string devCpu = 9;
    string devGpu = 10;
    string devAddress = 11;
}
 
message GetDeviceListReply {
    int32 total = 1;
    repeated DeviceInfo list = 2;
}
 
message UnbindReq {
    repeated string ids = 1;
    string userId = 2;
}
 
message UnbindReply {
 
}
 
message InstallReq {
    string machineCode = 1;
    string activateCode = 2;
    string devIp = 3;
    string devCpu = 4;
    string devGpu = 5;
}
 
message InstallReply {
    int32 status = 1;
}
 
message GetAllDeviceMenuReq {
    string userId = 1;
}
 
message DeviceMenu {
    string id = 1;
    string name = 2;
}
 
message GetAllDeviceMenuReply {
    repeated DeviceMenu menus = 1;
}
 
service DeviceService {
 
    rpc AddDevice(AddDeviceReq) returns (AddDeviceReply) {}
 
    rpc GetDeviceList(GetDeviceListReq) returns (GetDeviceListReply) {}
 
    rpc GetAllDeviceMenu(GetAllDeviceMenuReq) returns (GetAllDeviceMenuReply) {}
 
    rpc Unbind(UnbindReq) returns (UnbindReply) {}
 
    rpc Install(InstallReq) returns (InstallReply) {}
}