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