fix: sale create fields
CI / changes (push) Successful in 14s
CI / docker-bff (push) Successful in 3s
CI / docker-product (push) Successful in 24s
CI / docker-admin (push) Has been skipped
CI / docker-user (push) Has been skipped
CI / docker-ad (push) Has been skipped
CI / docker-chore (push) Successful in 25s
CI / docker-express (push) Has been skipped
CI / docker-sale (push) Successful in 26s

This commit is contained in:
zzw
2026-08-28 15:35:33 +08:00
parent 914a11d05a
commit 53d203ee14
20 changed files with 542 additions and 251 deletions
+15 -89
View File
@@ -399,13 +399,9 @@ type CreateReq struct {
SaleId int64 `protobuf:"varint,9,opt,name=sale_id,json=saleId,proto3" json:"sale_id,omitempty"`
Type uint32 `protobuf:"varint,10,opt,name=type,proto3" json:"type,omitempty"`
TerritoryId int64 `protobuf:"varint,11,opt,name=territory_id,json=territoryId,proto3" json:"territory_id,omitempty"`
TerritoryName string `protobuf:"bytes,12,opt,name=territory_name,json=territoryName,proto3" json:"territory_name,omitempty"`
ProvinceId int64 `protobuf:"varint,13,opt,name=province_id,json=provinceId,proto3" json:"province_id,omitempty"`
CityId int64 `protobuf:"varint,14,opt,name=city_id,json=cityId,proto3" json:"city_id,omitempty"`
DistrictId int64 `protobuf:"varint,15,opt,name=district_id,json=districtId,proto3" json:"district_id,omitempty"`
RegionProvince string `protobuf:"bytes,16,opt,name=region_province,json=regionProvince,proto3" json:"region_province,omitempty"`
RegionCity string `protobuf:"bytes,17,opt,name=region_city,json=regionCity,proto3" json:"region_city,omitempty"`
RegionDistrict string `protobuf:"bytes,18,opt,name=region_district,json=regionDistrict,proto3" json:"region_district,omitempty"`
Address string `protobuf:"bytes,19,opt,name=address,proto3" json:"address,omitempty"`
IdCardBack string `protobuf:"bytes,20,opt,name=id_card_back,json=idCardBack,proto3" json:"id_card_back,omitempty"`
BusinessLicense string `protobuf:"bytes,21,opt,name=business_license,json=businessLicense,proto3" json:"business_license,omitempty"`
@@ -520,13 +516,6 @@ func (x *CreateReq) GetTerritoryId() int64 {
return 0
}
func (x *CreateReq) GetTerritoryName() string {
if x != nil {
return x.TerritoryName
}
return ""
}
func (x *CreateReq) GetProvinceId() int64 {
if x != nil {
return x.ProvinceId
@@ -548,27 +537,6 @@ func (x *CreateReq) GetDistrictId() int64 {
return 0
}
func (x *CreateReq) GetRegionProvince() string {
if x != nil {
return x.RegionProvince
}
return ""
}
func (x *CreateReq) GetRegionCity() string {
if x != nil {
return x.RegionCity
}
return ""
}
func (x *CreateReq) GetRegionDistrict() string {
if x != nil {
return x.RegionDistrict
}
return ""
}
func (x *CreateReq) GetAddress() string {
if x != nil {
return x.Address
@@ -603,13 +571,9 @@ type EditReq struct {
SaleId int64 `protobuf:"varint,9,opt,name=sale_id,json=saleId,proto3" json:"sale_id,omitempty"`
Type uint32 `protobuf:"varint,10,opt,name=type,proto3" json:"type,omitempty"`
TerritoryId int64 `protobuf:"varint,11,opt,name=territory_id,json=territoryId,proto3" json:"territory_id,omitempty"`
TerritoryName string `protobuf:"bytes,12,opt,name=territory_name,json=territoryName,proto3" json:"territory_name,omitempty"`
ProvinceId int64 `protobuf:"varint,13,opt,name=province_id,json=provinceId,proto3" json:"province_id,omitempty"`
CityId int64 `protobuf:"varint,14,opt,name=city_id,json=cityId,proto3" json:"city_id,omitempty"`
DistrictId int64 `protobuf:"varint,15,opt,name=district_id,json=districtId,proto3" json:"district_id,omitempty"`
RegionProvince string `protobuf:"bytes,16,opt,name=region_province,json=regionProvince,proto3" json:"region_province,omitempty"`
RegionCity string `protobuf:"bytes,17,opt,name=region_city,json=regionCity,proto3" json:"region_city,omitempty"`
RegionDistrict string `protobuf:"bytes,18,opt,name=region_district,json=regionDistrict,proto3" json:"region_district,omitempty"`
Address string `protobuf:"bytes,19,opt,name=address,proto3" json:"address,omitempty"`
IdCardBack string `protobuf:"bytes,20,opt,name=id_card_back,json=idCardBack,proto3" json:"id_card_back,omitempty"`
BusinessLicense string `protobuf:"bytes,21,opt,name=business_license,json=businessLicense,proto3" json:"business_license,omitempty"`
@@ -724,13 +688,6 @@ func (x *EditReq) GetTerritoryId() int64 {
return 0
}
func (x *EditReq) GetTerritoryName() string {
if x != nil {
return x.TerritoryName
}
return ""
}
func (x *EditReq) GetProvinceId() int64 {
if x != nil {
return x.ProvinceId
@@ -752,27 +709,6 @@ func (x *EditReq) GetDistrictId() int64 {
return 0
}
func (x *EditReq) GetRegionProvince() string {
if x != nil {
return x.RegionProvince
}
return ""
}
func (x *EditReq) GetRegionCity() string {
if x != nil {
return x.RegionCity
}
return ""
}
func (x *EditReq) GetRegionDistrict() string {
if x != nil {
return x.RegionDistrict
}
return ""
}
func (x *EditReq) GetAddress() string {
if x != nil {
return x.Address
@@ -1379,7 +1315,7 @@ const file_sale_sale_proto_rawDesc = "" +
"\x06mobile\x18\x02 \x01(\tR\x06mobile\x12\x12\n" +
"\x04name\x18\x03 \x01(\tR\x04name\"1\n" +
"\tNamesData\x12$\n" +
"\x05items\x18\x01 \x03(\v2\x0e.sale.NameItemR\x05items\"\x89\x05\n" +
"\x05items\x18\x01 \x03(\v2\x0e.sale.NameItemR\x05items\"\xef\x03\n" +
"\tCreateReq\x12\x16\n" +
"\x06mobile\x18\x01 \x01(\tR\x06mobile\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12\"\n" +
@@ -1393,21 +1329,16 @@ const file_sale_sale_proto_rawDesc = "" +
"\asale_id\x18\t \x01(\x03R\x06saleId\x12\x12\n" +
"\x04type\x18\n" +
" \x01(\rR\x04type\x12!\n" +
"\fterritory_id\x18\v \x01(\x03R\vterritoryId\x12%\n" +
"\x0eterritory_name\x18\f \x01(\tR\rterritoryName\x12\x1f\n" +
"\fterritory_id\x18\v \x01(\x03R\vterritoryId\x12\x1f\n" +
"\vprovince_id\x18\r \x01(\x03R\n" +
"provinceId\x12\x17\n" +
"\acity_id\x18\x0e \x01(\x03R\x06cityId\x12\x1f\n" +
"\vdistrict_id\x18\x0f \x01(\x03R\n" +
"districtId\x12'\n" +
"\x0fregion_province\x18\x10 \x01(\tR\x0eregionProvince\x12\x1f\n" +
"\vregion_city\x18\x11 \x01(\tR\n" +
"regionCity\x12'\n" +
"\x0fregion_district\x18\x12 \x01(\tR\x0eregionDistrict\x12\x18\n" +
"districtId\x12\x18\n" +
"\aaddress\x18\x13 \x01(\tR\aaddress\x12 \n" +
"\fid_card_back\x18\x14 \x01(\tR\n" +
"idCardBack\x12)\n" +
"\x10business_license\x18\x15 \x01(\tR\x0fbusinessLicense\"\xfb\x04\n" +
"\x10business_license\x18\x15 \x01(\tR\x0fbusinessLicense\"\xe1\x03\n" +
"\aEditReq\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x16\n" +
"\x06mobile\x18\x02 \x01(\tR\x06mobile\x12\x12\n" +
@@ -1421,17 +1352,12 @@ const file_sale_sale_proto_rawDesc = "" +
"\asale_id\x18\t \x01(\x03R\x06saleId\x12\x12\n" +
"\x04type\x18\n" +
" \x01(\rR\x04type\x12!\n" +
"\fterritory_id\x18\v \x01(\x03R\vterritoryId\x12%\n" +
"\x0eterritory_name\x18\f \x01(\tR\rterritoryName\x12\x1f\n" +
"\fterritory_id\x18\v \x01(\x03R\vterritoryId\x12\x1f\n" +
"\vprovince_id\x18\r \x01(\x03R\n" +
"provinceId\x12\x17\n" +
"\acity_id\x18\x0e \x01(\x03R\x06cityId\x12\x1f\n" +
"\vdistrict_id\x18\x0f \x01(\x03R\n" +
"districtId\x12'\n" +
"\x0fregion_province\x18\x10 \x01(\tR\x0eregionProvince\x12\x1f\n" +
"\vregion_city\x18\x11 \x01(\tR\n" +
"regionCity\x12'\n" +
"\x0fregion_district\x18\x12 \x01(\tR\x0eregionDistrict\x12\x18\n" +
"districtId\x12\x18\n" +
"\aaddress\x18\x13 \x01(\tR\aaddress\x12 \n" +
"\fid_card_back\x18\x14 \x01(\tR\n" +
"idCardBack\x12)\n" +
@@ -1504,10 +1430,10 @@ const file_sale_sale_proto_rawDesc = "" +
"\rNamesInternal\x12\x0e.sale.NamesReq\x1a\x0f.sale.NamesData\x12E\n" +
"\x06Create\x12\x0f.sale.CreateReq\x1a\x0e.sale.Response\"\x1a\x82\xd3\xe4\x93\x02\x14:\x01*\"\x0f/admin/v3/sales\x12A\n" +
"\x04Edit\x12\r.sale.EditReq\x1a\x0e.sale.Response\"\x1a\x82\xd3\xe4\x93\x02\x14:\x01*\x1a\x0f/admin/v3/sales\x12F\n" +
"\x04Info\x12\r.sale.InfoReq\x1a\x0e.sale.Response\"\x1f\x82\xd3\xe4\x93\x02\x19:\x01*\x12\x14/admin/v3/sales/info\x12-\n" +
"\fInfoInternal\x12\r.sale.InfoReq\x1a\x0e.sale.InfoData\x12C\n" +
"\x04Info\x12\r.sale.InfoReq\x1a\x0e.sale.Response\"\x1f\x82\xd3\xe4\x93\x02\x19:\x01*\x12\x14/admin/v3/sales/info\x12C\n" +
"\x05Items\x12\x0e.sale.ItemsReq\x1a\x0e.sale.Response\"\x1a\x82\xd3\xe4\x93\x02\x14:\x01*\x12\x0f/admin/v3/sales\x12L\n" +
"\x06Status\x12\x0f.sale.StatusReq\x1a\x0e.sale.Response\"!\x82\xd3\xe4\x93\x02\x1b:\x01*\x1a\x16/admin/v3/sales/statusB\x18Z\x16lone-services/rpc/saleb\x06proto3"
"\x06Status\x12\x0f.sale.StatusReq\x1a\x0e.sale.Response\"!\x82\xd3\xe4\x93\x02\x1b:\x01*\x1a\x16/admin/v3/sales/status\x12-\n" +
"\fInfoInternal\x12\r.sale.InfoReq\x1a\x0e.sale.InfoDataB\x18Z\x16lone-services/rpc/saleb\x06proto3"
var (
file_sale_sale_proto_rawDescOnce sync.Once
@@ -1552,9 +1478,9 @@ var file_sale_sale_proto_depIdxs = []int32{
7, // 9: sale.Sale.Create:input_type -> sale.CreateReq
8, // 10: sale.Sale.Edit:input_type -> sale.EditReq
9, // 11: sale.Sale.Info:input_type -> sale.InfoReq
9, // 12: sale.Sale.InfoInternal:input_type -> sale.InfoReq
13, // 13: sale.Sale.Items:input_type -> sale.ItemsReq
14, // 14: sale.Sale.Status:input_type -> sale.StatusReq
13, // 12: sale.Sale.Items:input_type -> sale.ItemsReq
14, // 13: sale.Sale.Status:input_type -> sale.StatusReq
9, // 14: sale.Sale.InfoInternal:input_type -> sale.InfoReq
0, // 15: sale.Sale.GroupItems:output_type -> sale.Response
0, // 16: sale.Sale.GroupCreate:output_type -> sale.Response
0, // 17: sale.Sale.GroupNames:output_type -> sale.Response
@@ -1564,9 +1490,9 @@ var file_sale_sale_proto_depIdxs = []int32{
0, // 21: sale.Sale.Create:output_type -> sale.Response
0, // 22: sale.Sale.Edit:output_type -> sale.Response
0, // 23: sale.Sale.Info:output_type -> sale.Response
12, // 24: sale.Sale.InfoInternal:output_type -> sale.InfoData
0, // 25: sale.Sale.Items:output_type -> sale.Response
0, // 26: sale.Sale.Status:output_type -> sale.Response
0, // 24: sale.Sale.Items:output_type -> sale.Response
0, // 25: sale.Sale.Status:output_type -> sale.Response
12, // 26: sale.Sale.InfoInternal:output_type -> sale.InfoData
15, // [15:27] is the sub-list for method output_type
3, // [3:15] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name