顺丰的查询、预计时间、取消接口
CI / changes (push) Successful in 37s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 26s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 22s
CI / product (push) Successful in 0s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 1s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 1s

This commit is contained in:
2026-09-07 15:36:23 +08:00
parent 462d142a4c
commit bcb8743eca
23 changed files with 1717 additions and 66 deletions
+370 -23
View File
@@ -1142,6 +1142,310 @@ func (x *UpdateOrderDeliverStatusResponse) GetNum() int32 {
return 0
}
type GetOrderInfoRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
OrderSn string `protobuf:"bytes,2,opt,name=OrderSn,proto3" json:"OrderSn,omitempty"`
Type int32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetOrderInfoRequest) Reset() {
*x = GetOrderInfoRequest{}
mi := &file_order_order_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetOrderInfoRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetOrderInfoRequest) ProtoMessage() {}
func (x *GetOrderInfoRequest) ProtoReflect() protoreflect.Message {
mi := &file_order_order_proto_msgTypes[18]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetOrderInfoRequest.ProtoReflect.Descriptor instead.
func (*GetOrderInfoRequest) Descriptor() ([]byte, []int) {
return file_order_order_proto_rawDescGZIP(), []int{18}
}
func (x *GetOrderInfoRequest) GetUserId() int64 {
if x != nil {
return x.UserId
}
return 0
}
func (x *GetOrderInfoRequest) GetOrderSn() string {
if x != nil {
return x.OrderSn
}
return ""
}
func (x *GetOrderInfoRequest) GetType() int32 {
if x != nil {
return x.Type
}
return 0
}
type OrderInfoResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
OrderSn string `protobuf:"bytes,2,opt,name=order_sn,json=orderSn,proto3" json:"order_sn,omitempty"`
StoreId int64 `protobuf:"varint,3,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"`
StoreName string `protobuf:"bytes,4,opt,name=store_name,json=storeName,proto3" json:"store_name,omitempty"`
SaleName string `protobuf:"bytes,5,opt,name=sale_name,json=saleName,proto3" json:"sale_name,omitempty"`
SaleMobile string `protobuf:"bytes,6,opt,name=sale_mobile,json=saleMobile,proto3" json:"sale_mobile,omitempty"`
UserId int64 `protobuf:"varint,7,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
UserName string `protobuf:"bytes,8,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
SaleId int64 `protobuf:"varint,9,opt,name=sale_id,json=saleId,proto3" json:"sale_id,omitempty"`
Mobile string `protobuf:"bytes,10,opt,name=mobile,proto3" json:"mobile,omitempty"`
Address string `protobuf:"bytes,11,opt,name=address,proto3" json:"address,omitempty"`
Addressee string `protobuf:"bytes,12,opt,name=addressee,proto3" json:"addressee,omitempty"`
DistrictIds string `protobuf:"bytes,13,opt,name=district_ids,json=districtIds,proto3" json:"district_ids,omitempty"`
TotalPrice float64 `protobuf:"fixed64,14,opt,name=total_price,json=totalPrice,proto3" json:"total_price,omitempty"`
PayPrice float64 `protobuf:"fixed64,15,opt,name=pay_price,json=payPrice,proto3" json:"pay_price,omitempty"`
PayType int32 `protobuf:"varint,16,opt,name=pay_type,json=payType,proto3" json:"pay_type,omitempty"`
DeliverStatus int32 `protobuf:"varint,17,opt,name=deliver_status,json=deliverStatus,proto3" json:"deliver_status,omitempty"`
Status int32 `protobuf:"varint,18,opt,name=status,proto3" json:"status,omitempty"`
IsSupply int32 `protobuf:"varint,19,opt,name=is_supply,json=isSupply,proto3" json:"is_supply,omitempty"`
Note string `protobuf:"bytes,20,opt,name=note,proto3" json:"note,omitempty"`
ProductIds string `protobuf:"bytes,21,opt,name=product_ids,json=productIds,proto3" json:"product_ids,omitempty"`
OutTradeNo string `protobuf:"bytes,22,opt,name=out_trade_no,json=outTradeNo,proto3" json:"out_trade_no,omitempty"`
Type int32 `protobuf:"varint,23,opt,name=type,proto3" json:"type,omitempty"`
VerifyStatus int32 `protobuf:"varint,24,opt,name=verify_status,json=verifyStatus,proto3" json:"verify_status,omitempty"`
CreateType int32 `protobuf:"varint,25,opt,name=create_type,json=createType,proto3" json:"create_type,omitempty"`
RefundStatus int32 `protobuf:"varint,26,opt,name=refund_status,json=refundStatus,proto3" json:"refund_status,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *OrderInfoResponse) Reset() {
*x = OrderInfoResponse{}
mi := &file_order_order_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *OrderInfoResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*OrderInfoResponse) ProtoMessage() {}
func (x *OrderInfoResponse) ProtoReflect() protoreflect.Message {
mi := &file_order_order_proto_msgTypes[19]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use OrderInfoResponse.ProtoReflect.Descriptor instead.
func (*OrderInfoResponse) Descriptor() ([]byte, []int) {
return file_order_order_proto_rawDescGZIP(), []int{19}
}
func (x *OrderInfoResponse) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *OrderInfoResponse) GetOrderSn() string {
if x != nil {
return x.OrderSn
}
return ""
}
func (x *OrderInfoResponse) GetStoreId() int64 {
if x != nil {
return x.StoreId
}
return 0
}
func (x *OrderInfoResponse) GetStoreName() string {
if x != nil {
return x.StoreName
}
return ""
}
func (x *OrderInfoResponse) GetSaleName() string {
if x != nil {
return x.SaleName
}
return ""
}
func (x *OrderInfoResponse) GetSaleMobile() string {
if x != nil {
return x.SaleMobile
}
return ""
}
func (x *OrderInfoResponse) GetUserId() int64 {
if x != nil {
return x.UserId
}
return 0
}
func (x *OrderInfoResponse) GetUserName() string {
if x != nil {
return x.UserName
}
return ""
}
func (x *OrderInfoResponse) GetSaleId() int64 {
if x != nil {
return x.SaleId
}
return 0
}
func (x *OrderInfoResponse) GetMobile() string {
if x != nil {
return x.Mobile
}
return ""
}
func (x *OrderInfoResponse) GetAddress() string {
if x != nil {
return x.Address
}
return ""
}
func (x *OrderInfoResponse) GetAddressee() string {
if x != nil {
return x.Addressee
}
return ""
}
func (x *OrderInfoResponse) GetDistrictIds() string {
if x != nil {
return x.DistrictIds
}
return ""
}
func (x *OrderInfoResponse) GetTotalPrice() float64 {
if x != nil {
return x.TotalPrice
}
return 0
}
func (x *OrderInfoResponse) GetPayPrice() float64 {
if x != nil {
return x.PayPrice
}
return 0
}
func (x *OrderInfoResponse) GetPayType() int32 {
if x != nil {
return x.PayType
}
return 0
}
func (x *OrderInfoResponse) GetDeliverStatus() int32 {
if x != nil {
return x.DeliverStatus
}
return 0
}
func (x *OrderInfoResponse) GetStatus() int32 {
if x != nil {
return x.Status
}
return 0
}
func (x *OrderInfoResponse) GetIsSupply() int32 {
if x != nil {
return x.IsSupply
}
return 0
}
func (x *OrderInfoResponse) GetNote() string {
if x != nil {
return x.Note
}
return ""
}
func (x *OrderInfoResponse) GetProductIds() string {
if x != nil {
return x.ProductIds
}
return ""
}
func (x *OrderInfoResponse) GetOutTradeNo() string {
if x != nil {
return x.OutTradeNo
}
return ""
}
func (x *OrderInfoResponse) GetType() int32 {
if x != nil {
return x.Type
}
return 0
}
func (x *OrderInfoResponse) GetVerifyStatus() int32 {
if x != nil {
return x.VerifyStatus
}
return 0
}
func (x *OrderInfoResponse) GetCreateType() int32 {
if x != nil {
return x.CreateType
}
return 0
}
func (x *OrderInfoResponse) GetRefundStatus() int32 {
if x != nil {
return x.RefundStatus
}
return 0
}
var File_order_order_proto protoreflect.FileDescriptor
const file_order_order_proto_rawDesc = "" +
@@ -1229,7 +1533,45 @@ const file_order_order_proto_rawDesc = "" +
"\x0edeliver_status\x18\x02 \x01(\x05R\rdeliverStatus\x12\x0e\n" +
"\x02id\x18\x03 \x01(\tR\x02id\"4\n" +
" UpdateOrderDeliverStatusResponse\x12\x10\n" +
"\x03num\x18\x01 \x01(\x05R\x03num2\xe1\f\n" +
"\x03num\x18\x01 \x01(\x05R\x03num\"[\n" +
"\x13GetOrderInfoRequest\x12\x16\n" +
"\x06userId\x18\x01 \x01(\x03R\x06userId\x12\x18\n" +
"\aOrderSn\x18\x02 \x01(\tR\aOrderSn\x12\x12\n" +
"\x04type\x18\x03 \x01(\x05R\x04type\"\x83\x06\n" +
"\x11OrderInfoResponse\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x19\n" +
"\border_sn\x18\x02 \x01(\tR\aorderSn\x12\x19\n" +
"\bstore_id\x18\x03 \x01(\x03R\astoreId\x12\x1d\n" +
"\n" +
"store_name\x18\x04 \x01(\tR\tstoreName\x12\x1b\n" +
"\tsale_name\x18\x05 \x01(\tR\bsaleName\x12\x1f\n" +
"\vsale_mobile\x18\x06 \x01(\tR\n" +
"saleMobile\x12\x17\n" +
"\auser_id\x18\a \x01(\x03R\x06userId\x12\x1b\n" +
"\tuser_name\x18\b \x01(\tR\buserName\x12\x17\n" +
"\asale_id\x18\t \x01(\x03R\x06saleId\x12\x16\n" +
"\x06mobile\x18\n" +
" \x01(\tR\x06mobile\x12\x18\n" +
"\aaddress\x18\v \x01(\tR\aaddress\x12\x1c\n" +
"\taddressee\x18\f \x01(\tR\taddressee\x12!\n" +
"\fdistrict_ids\x18\r \x01(\tR\vdistrictIds\x12\x1f\n" +
"\vtotal_price\x18\x0e \x01(\x01R\n" +
"totalPrice\x12\x1b\n" +
"\tpay_price\x18\x0f \x01(\x01R\bpayPrice\x12\x19\n" +
"\bpay_type\x18\x10 \x01(\x05R\apayType\x12%\n" +
"\x0edeliver_status\x18\x11 \x01(\x05R\rdeliverStatus\x12\x16\n" +
"\x06status\x18\x12 \x01(\x05R\x06status\x12\x1b\n" +
"\tis_supply\x18\x13 \x01(\x05R\bisSupply\x12\x12\n" +
"\x04note\x18\x14 \x01(\tR\x04note\x12\x1f\n" +
"\vproduct_ids\x18\x15 \x01(\tR\n" +
"productIds\x12 \n" +
"\fout_trade_no\x18\x16 \x01(\tR\n" +
"outTradeNo\x12\x12\n" +
"\x04type\x18\x17 \x01(\x05R\x04type\x12#\n" +
"\rverify_status\x18\x18 \x01(\x05R\fverifyStatus\x12\x1f\n" +
"\vcreate_type\x18\x19 \x01(\x05R\n" +
"createType\x12#\n" +
"\rrefund_status\x18\x1a \x01(\x05R\frefundStatus2\xa7\r\n" +
"\x05order\x12T\n" +
"\x05Items\x12\x18.order.OrderItemsRequest\x1a\x0f.order.Response\" \x82\xd3\xe4\x93\x02\x1a:\x01*\x12\x15/admin/v3/order/items\x12X\n" +
"\tWebCreate\x12\x19.order.CreateOrderRequest\x1a\x0f.order.Response\"\x1f\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/api/v3/order/create\x12b\n" +
@@ -1247,7 +1589,8 @@ const file_order_order_proto_rawDesc = "" +
"\x12OrderAuditingItems\x12 .order.OrderAuditingItemsRequest\x1a\x0f.order.Response\")\x82\xd3\xe4\x93\x02#:\x01*\x12\x1e/admin/v3/order/auditing/items\x12b\n" +
"\rOrderAuditing\x12\x1b.order.OrderAuditingRequest\x1a\x0f.order.Response\"#\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/admin/v3/order/auditing\x12a\n" +
"\vOrderCreate\x12\x1e.order.AdminCreateOrderRequest\x1a\x0f.order.Response\"!\x82\xd3\xe4\x93\x02\x1b:\x01*\"\x16/admin/v3/order/create\x12k\n" +
"\x18UpdateOrderDeliverStatus\x12&.order.UpdateOrderDeliverStatusRequest\x1a'.order.UpdateOrderDeliverStatusResponseB\x19Z\x17lone-services/rpc/orderb\x06proto3"
"\x18UpdateOrderDeliverStatus\x12&.order.UpdateOrderDeliverStatusRequest\x1a'.order.UpdateOrderDeliverStatusResponse\x12D\n" +
"\fGetOrderInfo\x12\x1a.order.GetOrderInfoRequest\x1a\x18.order.OrderInfoResponseB\x19Z\x17lone-services/rpc/orderb\x06proto3"
var (
file_order_order_proto_rawDescOnce sync.Once
@@ -1261,7 +1604,7 @@ func file_order_order_proto_rawDescGZIP() []byte {
return file_order_order_proto_rawDescData
}
var file_order_order_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
var file_order_order_proto_msgTypes = make([]protoimpl.MessageInfo, 20)
var file_order_order_proto_goTypes = []any{
(*OrderItemsRequest)(nil), // 0: order.OrderItemsRequest
(*Response)(nil), // 1: order.Response
@@ -1281,6 +1624,8 @@ var file_order_order_proto_goTypes = []any{
(*AdminCreateOrderRequest)(nil), // 15: order.AdminCreateOrderRequest
(*UpdateOrderDeliverStatusRequest)(nil), // 16: order.UpdateOrderDeliverStatusRequest
(*UpdateOrderDeliverStatusResponse)(nil), // 17: order.UpdateOrderDeliverStatusResponse
(*GetOrderInfoRequest)(nil), // 18: order.GetOrderInfoRequest
(*OrderInfoResponse)(nil), // 19: order.OrderInfoResponse
}
var file_order_order_proto_depIdxs = []int32{
0, // 0: order.order.Items:input_type -> order.OrderItemsRequest
@@ -1300,25 +1645,27 @@ var file_order_order_proto_depIdxs = []int32{
14, // 14: order.order.OrderAuditing:input_type -> order.OrderAuditingRequest
15, // 15: order.order.OrderCreate:input_type -> order.AdminCreateOrderRequest
16, // 16: order.order.UpdateOrderDeliverStatus:input_type -> order.UpdateOrderDeliverStatusRequest
1, // 17: order.order.Items:output_type -> order.Response
1, // 18: order.order.WebCreate:output_type -> order.Response
1, // 19: order.order.WebCreateOne:output_type -> order.Response
1, // 20: order.order.WebAddressCreate:output_type -> order.Response
1, // 21: order.order.WebAddressEdit:output_type -> order.Response
1, // 22: order.order.WebAddressDel:output_type -> order.Response
1, // 23: order.order.WebAddressDef:output_type -> order.Response
1, // 24: order.order.WebAddressInfo:output_type -> order.Response
1, // 25: order.order.WebAddressItems:output_type -> order.Response
1, // 26: order.order.WebCart:output_type -> order.Response
1, // 27: order.order.WebCartEdit:output_type -> order.Response
1, // 28: order.order.AddressItem:output_type -> order.Response
1, // 29: order.order.AddressByStore:output_type -> order.Response
1, // 30: order.order.OrderAuditingItems:output_type -> order.Response
1, // 31: order.order.OrderAuditing:output_type -> order.Response
1, // 32: order.order.OrderCreate:output_type -> order.Response
17, // 33: order.order.UpdateOrderDeliverStatus:output_type -> order.UpdateOrderDeliverStatusResponse
17, // [17:34] is the sub-list for method output_type
0, // [0:17] is the sub-list for method input_type
18, // 17: order.order.GetOrderInfo:input_type -> order.GetOrderInfoRequest
1, // 18: order.order.Items:output_type -> order.Response
1, // 19: order.order.WebCreate:output_type -> order.Response
1, // 20: order.order.WebCreateOne:output_type -> order.Response
1, // 21: order.order.WebAddressCreate:output_type -> order.Response
1, // 22: order.order.WebAddressEdit:output_type -> order.Response
1, // 23: order.order.WebAddressDel:output_type -> order.Response
1, // 24: order.order.WebAddressDef:output_type -> order.Response
1, // 25: order.order.WebAddressInfo:output_type -> order.Response
1, // 26: order.order.WebAddressItems:output_type -> order.Response
1, // 27: order.order.WebCart:output_type -> order.Response
1, // 28: order.order.WebCartEdit:output_type -> order.Response
1, // 29: order.order.AddressItem:output_type -> order.Response
1, // 30: order.order.AddressByStore:output_type -> order.Response
1, // 31: order.order.OrderAuditingItems:output_type -> order.Response
1, // 32: order.order.OrderAuditing:output_type -> order.Response
1, // 33: order.order.OrderCreate:output_type -> order.Response
17, // 34: order.order.UpdateOrderDeliverStatus:output_type -> order.UpdateOrderDeliverStatusResponse
19, // 35: order.order.GetOrderInfo:output_type -> order.OrderInfoResponse
18, // [18:36] is the sub-list for method output_type
0, // [0:18] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
@@ -1335,7 +1682,7 @@ func file_order_order_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_order_order_proto_rawDesc), len(file_order_order_proto_rawDesc)),
NumEnums: 0,
NumMessages: 18,
NumMessages: 20,
NumExtensions: 0,
NumServices: 1,
},