修复产品修改、删除
This commit is contained in:
@@ -166,6 +166,22 @@ message matchResponse {
|
||||
message MatchWhitelistByIpRequest{
|
||||
string ip = 1;
|
||||
}
|
||||
|
||||
message AliTopUpRequest {
|
||||
int64 user_id = 1;
|
||||
int64 amount = 2;
|
||||
}
|
||||
|
||||
message AliTopUpResponse {
|
||||
string pay_url = 1;
|
||||
}
|
||||
message AliTopUpNotifyRequest {
|
||||
string raw_form = 1; // 来自支付宝的原始表单数据
|
||||
}
|
||||
|
||||
message AliTopUpNotifyResponse {
|
||||
bool success = 1;
|
||||
}
|
||||
// Service definitions for Whitelist, Secrets, Products, and UserProducts
|
||||
service whitelist {
|
||||
// Whitelist methods
|
||||
@@ -190,9 +206,14 @@ service product {
|
||||
rpc GetProductById(GetRecordByIdRequest) returns (Product);
|
||||
rpc GetProductByCode(GetRecordByCodeRequest) returns (Product);
|
||||
}
|
||||
service userProduct {
|
||||
// UserProduct methods
|
||||
rpc CreateUserProduct(CreateUserProductRequest) returns (UserProductEmptyResponse);
|
||||
rpc GetUserProductPageList(UserProuctPageListRequest) returns (UserProductResponse);
|
||||
rpc MatchingUserIdProductCode(matchingUserIdProductCodeRequest) returns (matchResponse);
|
||||
}
|
||||
service userProduct {
|
||||
// UserProduct methods
|
||||
rpc CreateUserProduct(CreateUserProductRequest) returns (UserProductEmptyResponse);
|
||||
rpc GetUserProductPageList(UserProuctPageListRequest) returns (UserProductResponse);
|
||||
rpc MatchingUserIdProductCode(matchingUserIdProductCodeRequest) returns (matchResponse);
|
||||
}
|
||||
|
||||
service topUp {
|
||||
rpc AliTopUp (AliTopUpRequest) returns (AliTopUpResponse);
|
||||
rpc AliTopUpNotify (AliTopUpNotifyRequest) returns (AliTopUpNotifyResponse);
|
||||
}
|
||||
Reference in New Issue
Block a user