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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
syntax = "proto3";
 
package shop;
 
import "base.proto";
 
message Order {
    string id = 1;
    string sn = 2;
    int32 source = 3;
    string createUserId = 4;
    string createUserName = 5;
    string createTime = 6;
    int32 orderStatus = 7;
    float orderMoney = 8;
    repeated OrderProduct products = 9;
}
 
message OrderProduct {
    string productId = 1;
    string productName = 2;
    int32 productType = 3;
    string productTypeName = 4;
    string productVersion = 5;
    int32 devCount = 6;
    repeated string moduleNames = 7;
    repeated string sdkNames = 8;
    int32 ChCount = 9;
    int32 authCount = 10;
    int32 serveYear = 11;
    string activateCode = 12;
    int32 codeStatus = 13;
    string activeTime = 14;
    int32 devInstallLimit = 15;
    int32 usedCount = 16;
    float productPrice = 17;
    repeated Appendix appendix = 18;
    repeated string deviceIds = 19;
}
 
message ShowOrderDetailReply {
    Order orderInfo = 1;
}
 
message GetOrderListReq {
    string productBaseId = 1;
    string startTime = 2;
    string endTime = 3;
    string inputText = 4;
    int32 page = 5;
    int32 size = 6;
    string orderName = 7;
    string orderType = 8;
    string userId = 9;
}
 
message GetOrderListResp {
    int32 total = 1;
    repeated Order list = 2;
}
 
message AddOrderProduct {
    string productId = 1;
    repeated string moduleIds = 2;
    repeated string sdkIds = 3;
    int32 chCount = 4;
    int32 authCount = 5;
    int32 devCount = 6;
    int32 serveYear = 7;
    string activateCode = 8;
    float productPrice = 9;
    repeated string deviceIds = 10;
    int32 quantity = 11;
}
 
message AddOrderReq {
    repeated AddOrderProduct products = 1;
    float orderMoney = 2;
    int32 status = 3;
    string userId = 4;
 
    int32 payMethod = 12;
}
 
message SaveProductDeviceReq {
    string activateCode = 1;
    repeated string deviceIds = 2;
    string userId = 3;
}
 
message SaveProductDeviceReply {
 
}
 
message DownloadReq {
    string orderId = 1;
    string productId = 2;
    string code = 3;
}
 
message DownloadReply {
    string url = 1;
}
 
service OrderService {
 
    rpc AddOrder(AddOrderReq) returns (CommonBoolReply) {}
 
    rpc GetOrderList(GetOrderListReq) returns (GetOrderListResp) {}
 
    rpc ShowOrderDetail(CommonIdReq) returns (ShowOrderDetailReply) {}
 
    rpc SaveProductDevice(SaveProductDeviceReq) returns (SaveProductDeviceReply) {}
 
    rpc CancelOrder(CommonIdReq) returns (CommonBoolReply) {}
 
    rpc Download(DownloadReq) returns (DownloadReply) {}
}