feat: product number

This commit is contained in:
zzw
2026-08-25 18:11:28 +08:00
parent 13ea690874
commit 0ca3f6d84f
13 changed files with 481 additions and 52 deletions
+24
View File
@@ -92,6 +92,18 @@ service Product {
body: "*"
};
}
// 增减库存
// type: 1 增加, 2 减少
rpc Number(NumberReq) returns (Response);
// 增加库存
rpc NumberAdd(NumberAddReq) returns (Response) {
option (google.api.http) = {
put: "/admin/v3/product/number"
body: "*"
};
}
}
message Response {
@@ -207,6 +219,18 @@ message EditSusceptibleReq {
uint32 type = 11;
}
// type: 1 增加, 2 减少;number 为变更数量
message NumberReq {
int64 id = 1;
uint32 type = 2;
uint32 number = 3;
}
message NumberAddReq {
int64 id = 1;
uint32 number = 2;
}
message ItemsData {
int64 count = 1;
repeated Item items = 2;