feat: product items info

This commit is contained in:
zzw
2026-10-08 09:25:41 +08:00
parent 5fdf23beed
commit cfe88e0f56
27 changed files with 1213 additions and 224 deletions
+22 -3
View File
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v4.25.8
// protoc v3.19.4
// source: store/store.proto
package store
@@ -857,6 +857,8 @@ type InfoResponse struct {
CityName string `protobuf:"bytes,27,opt,name=city_name,json=cityName,proto3" json:"city_name,omitempty"`
County int64 `protobuf:"varint,28,opt,name=county,proto3" json:"county,omitempty"`
CountyName string `protobuf:"bytes,29,opt,name=county_name,json=countyName,proto3" json:"county_name,omitempty"`
BuyAmount float64 `protobuf:"fixed64,30,opt,name=buy_amount,json=buyAmount,proto3" json:"buy_amount,omitempty"`
ResidualNumber int32 `protobuf:"varint,31,opt,name=residual_number,json=residualNumber,proto3" json:"residual_number,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -1094,6 +1096,20 @@ func (x *InfoResponse) GetCountyName() string {
return ""
}
func (x *InfoResponse) GetBuyAmount() float64 {
if x != nil {
return x.BuyAmount
}
return 0
}
func (x *InfoResponse) GetResidualNumber() int32 {
if x != nil {
return x.ResidualNumber
}
return 0
}
type ItemsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Items []*InfoResponse `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
@@ -2315,7 +2331,7 @@ const file_store_store_proto_rawDesc = "" +
"\tcity_name\x18\x1e \x01(\tR\bcityName\x12\x16\n" +
"\x06county\x18\x1f \x01(\x03R\x06county\x12\x1f\n" +
"\vcounty_name\x18 \x01(\tR\n" +
"countyName\"\xdf\x06\n" +
"countyName\"\xa7\a\n" +
"\fInfoResponse\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1f\n" +
"\vuser_mobile\x18\x02 \x01(\tR\n" +
@@ -2349,7 +2365,10 @@ const file_store_store_proto_rawDesc = "" +
"\tcity_name\x18\x1b \x01(\tR\bcityName\x12\x16\n" +
"\x06county\x18\x1c \x01(\x03R\x06county\x12\x1f\n" +
"\vcounty_name\x18\x1d \x01(\tR\n" +
"countyName\":\n" +
"countyName\x12\x1d\n" +
"\n" +
"buy_amount\x18\x1e \x01(\x01R\tbuyAmount\x12'\n" +
"\x0fresidual_number\x18\x1f \x01(\x05R\x0eresidualNumber\":\n" +
"\rItemsResponse\x12)\n" +
"\x05items\x18\x01 \x03(\v2\x13.store.InfoResponseR\x05items\"8\n" +
"\rToSaleRequest\x12\x0e\n" +