new create admin order,express add company

This commit is contained in:
2026-09-02 18:02:57 +08:00
parent 02819d159a
commit e0a63bbef9
38 changed files with 3023 additions and 265 deletions
+31
View File
@@ -0,0 +1,31 @@
package transit
import "lone-services/services/express/internal/dao"
type TransitResult struct {
ErrorCode string `json:"error_code"`
ApiErrorMsg string `json:"api_error_msg,omitempty"`
ApiResponseID string `json:"api_response_id,omitempty"`
RequestID string `json:"request_id"`
WaybillNo []string `json:"waybill_no,omitempty"`
PostInfo string `json:"post_info,omitempty"`
RequestInfo string `json:"request_info,omitempty"`
RequestQuery map[string]interface{} `json:"request_query,omitempty"`
OrderSn string `json:"order_sn,omitempty"`
Files []TransitFiles `json:"files,omitempty"`
}
type TransitFiles struct {
File string `json:"file"`
Url string `json:"url"`
Token string `json:"token"`
WaybillNo string `json:"waybill_no"`
}
type Transit interface {
Create(order dao.DeliveryOrderPrint) (TransitResult, error)
Query(orderId string) (TransitResult, error) // 改这里!
Cancel(orderId string) (TransitResult, error) // 改这里!
Estimated(orderId, card string) (TransitResult, error)
DownSheet(orders []string, info dao.DeliveryOrderPrint) (TransitResult, error) // 改这里!
}