1、新增自定义用户私人价格2、优化api服务鉴权缓存3、新增管理员端对公充值
This commit is contained in:
@@ -14,6 +14,10 @@ message UserProuctPageListRequest {
|
||||
int64 page = 2;
|
||||
int64 page_size = 3;
|
||||
}
|
||||
message UserProuctRequest {
|
||||
int64 user_id = 1;
|
||||
int64 product_id = 2;
|
||||
}
|
||||
message WhitePageListRequest {
|
||||
int64 user_id = 1;
|
||||
int64 page = 2;
|
||||
@@ -85,7 +89,6 @@ message SecretResponse {
|
||||
repeated Secret secrets = 2;
|
||||
}
|
||||
|
||||
// Message for Products operations
|
||||
message Product {
|
||||
int64 id = 1;
|
||||
string product_name = 2;
|
||||
@@ -126,7 +129,6 @@ message ProductResponse {
|
||||
repeated Product products = 2;
|
||||
}
|
||||
|
||||
// Message for UserProducts operations
|
||||
message UserProductEmptyResponse {
|
||||
}
|
||||
message UserProductItem {
|
||||
@@ -153,10 +155,16 @@ message DeleteUserProductRequest {
|
||||
int64 id = 1;
|
||||
}
|
||||
|
||||
message UserProductResponse {
|
||||
message UserProductPageListResponse {
|
||||
int64 total = 1;
|
||||
repeated UserProductItem user_products = 2;
|
||||
}
|
||||
message UserProductResponse {
|
||||
int64 id = 1; // 用户产品ID
|
||||
int64 userId = 2;
|
||||
int64 productId = 3; // 产品ID
|
||||
double productPrice = 4; // 产品价格
|
||||
}
|
||||
|
||||
message matchingUserIdProductCodeRequest {
|
||||
int64 id = 1;
|
||||
@@ -184,7 +192,6 @@ message AliTopUpNotifyRequest {
|
||||
message AliTopUpNotifyResponse {
|
||||
bool success = 1;
|
||||
}
|
||||
// Service definitions for Whitelist, Secrets, Products, and UserProducts
|
||||
service whitelist {
|
||||
// Whitelist methods
|
||||
rpc CreateWhitelist(CreateWhitelistRequest) returns (Whitelist);
|
||||
@@ -211,7 +218,8 @@ service product {
|
||||
service userProduct {
|
||||
// UserProduct methods
|
||||
rpc CreateUserProduct(CreateUserProductRequest) returns (UserProductEmptyResponse);
|
||||
rpc GetUserProductPageList(UserProuctPageListRequest) returns (UserProductResponse);
|
||||
rpc GetUserProductPageList(UserProuctPageListRequest) returns (UserProductPageListResponse);
|
||||
rpc GetUserProduct(UserProuctRequest) returns (UserProductResponse);
|
||||
rpc MatchingUserIdProductCode(matchingUserIdProductCodeRequest) returns (matchResponse);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user