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) {} }