修复产品修改、删除

This commit is contained in:
2024-10-15 00:23:07 +08:00
parent e6467b7004
commit 8f903b457f
31 changed files with 1292 additions and 111 deletions

View File

@@ -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);
}