package transit import "base-service/app/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.DeliverGoodsPrint) (TransitResult, error) Query(orderId string) (TransitResult, error) // 改这里! Cancel(orderId string) (TransitResult, error) // 改这里! Estimated(orderId, card string) (TransitResult, error) DownSheet(orders []string, info dao.DeliverGoodsPrint) (TransitResult, error) // 改这里! }