feat: product items

This commit is contained in:
zzw
2026-08-07 10:19:25 +08:00
parent 9d5b507634
commit 48f6cfb13b
+21
View File
@@ -19,6 +19,27 @@ service Product {
body: "*"
};
}
rpc Items(ItemsReq) returns (ItemsResp) {
option (google.api.http) = {
get: "/admin/v3/product"
};
}
}
message ItemsReq {
string name = 1 [(buf.validate.field).string = {max_len: 256}];
uint32 page = 2 [(buf.validate.field) = {
ignore: IGNORE_IF_ZERO_VALUE,
uint32: {gte: 1}
}];
uint32 page_size = 3 [(buf.validate.field) = {
ignore: IGNORE_IF_ZERO_VALUE,
uint32: {gte: 1, lte: 100}
}];
}
message ItemsResp {
repeated Item items = 1;
}
message AddReq {