liuxiaolong
2020-05-27 0b026a39029cf04954e2fc2ffe52e40720a7faa7
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
syntax = "proto3";
 
package shop;
 
message RegisterReq {
    string id = 1;
    string sdkType = 2;
    string sdkName = 3;
    string icon = 4;
    string url = 5;
 
    repeated SdkArg args = 6;
}
 
message SdkArg {
    string scope = 1;
    string alias = 2;
    string name = 3;
    string type = 4;
    string argType = 5;
    bool must = 6;
    string unit = 7;
    string range = 8;
    string defaultValue = 9;
    string defaultOperator = 10;
    int32 sort = 11;
 
    repeated SdkArgDic dics = 12;
}
 
message SdkArgDic {
    string value = 1;
    string name = 2;
    int32 sort = 3;
}
 
message RegisterReply {
 
}
 
message DownloadReq {
    string sdkId = 1;
}
 
message DownloadReply {
 
}
 
service SdkService {
 
    rpc Register (RegisterReq) returns (RegisterReply) {}
 
    rpc Download (DownloadReq) returns (DownloadReply) {}
}