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
93
94
95
96
97
98
99
100
101
102
103
104
syntax = "proto3";
 
package shop;
 
message ActivateCodeDetail {
    string id = 1;
    string code = 2;
 
    string createUserId = 3;
    int32 chCount = 4;
    int32 authCount = 5;
    int32 devInstallLimit = 6;
    int32 usedCount = 7; //已使用数量
    string activateUserName = 8;
    string activateTime = 9;
    int32 serveYear = 10;
    int32 status = 11;
    int32 source = 12;
 
    string createUserName = 13;
    string createTime = 14;
 
    CodeProductDetail productInfo = 15;
 
    float orderMoney = 16;
    repeated string moduleNames = 17;
    repeated string sdkNames = 18;
    string orderNum = 19;
}
 
message CodeProductDetail {
    string productId = 1;
    string productName = 2;
    int32 productType = 3;
    string productTypeName = 4;
    string productVersion = 5;
}
 
message AddActivateCodeReq {
    int32 productType = 1;
    string productId = 2;
    repeated string moduleIds = 3;
    int32 chCount = 4;
    int32 authCount = 5;
    repeated string sdkIds = 6;
    int32 devCount = 7;
    int32 serveYear = 8;
    string userId = 9;
}
 
message AddActivateCodeReply {
 
}
 
message ShowActivateCodeReq {
    string activateCode = 1;
}
 
message GetAllActivateCodeReq {
    int32 productType = 1;
    repeated string productIds = 2;
    string inputText = 3;
    int32 page = 4;
    int32 size = 5;
 
    string orderName = 6;
    string orderType = 7;
    string userId = 8;
}
 
message GetAllActivateCodeResp {
    int32 total = 1;
    repeated ActivateCodeDetail list = 2;
}
 
message ActiveReq {
    string curUserId = 1;
    string code = 2;
    string productId = 3;
    repeated string deviceIds = 4;
}
 
message ActiveReply {
    string activateCode = 1;
    string productName = 2;
    int32 chCount = 3;
    int32 authCount = 4;
    int32 devInstallLimit = 5;
    repeated string moduleNames = 6;
    repeated string sdkNames = 7;
    string serveExpireTime = 8;
    string downloadLink = 9;
}
 
service ActivateCodeService {
 
    rpc AddActivateCode(AddActivateCodeReq) returns (AddActivateCodeReply) {}
 
    rpc ShowActivateCode(ShowActivateCodeReq) returns (ActivateCodeDetail) {}
 
    rpc Active(ActiveReq) returns (ActiveReply) {}
 
    rpc GetAllActivateCode(GetAllActivateCodeReq) returns (GetAllActivateCodeResp){}
}