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