This commit is contained in:
richboo111
2023-01-14 16:40:47 +08:00
parent d4adc41b0d
commit c9c68853bc
6 changed files with 116 additions and 39 deletions

View File

@@ -31,6 +31,7 @@ const (
VendorIDMTPS = 102 // 美团配送
VendorIDFengNiao = 103 // 蜂鸟配送
VendorIDDYPS = 104 // 抖音配送
VendorIDUUPT = 105 //uu跑腿
VendorJXFakeWL = 300 // 京西假物流
VendorIDJDWL = 401 // 京东物流
VendorIDTotalWl = 402 // (综合物流[京东,圆通,申通....])

View File

@@ -1,5 +1,14 @@
package uupt
import (
"git.rosy.net.cn/baseapi/platformapi/mtpsapi"
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
"git.rosy.net.cn/jx-callback/business/model"
"git.rosy.net.cn/jx-callback/business/model/dao"
"git.rosy.net.cn/jx-callback/business/partner"
"git.rosy.net.cn/jx-callback/globals/api"
)
const (
//errCode 错误码说明
ErrorParameter1 = -101 //参数格式校验错误
@@ -76,5 +85,59 @@ type DeliveryHandler struct {
}
func init() {
//if api.
if api.UuAPI != nil {
curDeliveryHandler = new(DeliveryHandler)
partner.RegisterDeliveryPlatform(curDeliveryHandler, true)
}
}
func (d DeliveryHandler) GetVendorID() int {
return model.VendorIDUUPT
}
func (d DeliveryHandler) CreateStore(ctx *jxcontext.Context, storeDetail *dao.StoreDetail2) (vendorStoreID string, status int, err error) {
//TODO implement me
panic("implement me")
}
func (d DeliveryHandler) GetStore(ctx *jxcontext.Context, storeID int, vendorStoreID string) (storeDetail *dao.StoreDetail2, err error) {
//TODO implement me
panic("implement me")
}
func (d DeliveryHandler) IsErrStoreNotExist(err error) bool {
//TODO implement me
panic("implement me")
}
func (d DeliveryHandler) IsErrStoreExist(err error) bool {
//TODO implement me
panic("implement me")
}
func (d DeliveryHandler) CreateWaybill(order *model.GoodsOrder, maxDeliveryFee int64) (bill *model.Waybill, err error) {
//TODO implement me
panic("implement me")
}
func (d DeliveryHandler) CancelWaybill(bill *model.Waybill, cancelReasonID int, cancelReason string) (err error) {
//if err = api.UuAPI.CancelOrder(bill.VendorWaybillID, uuptapi.CancelReasonNormal); err != nil {
//
//}
return nil
}
func (d DeliveryHandler) GetWaybillFee(order *model.GoodsOrder) (deliveryFeeInfo *partner.WaybillFeeInfo, err error) {
//TODO implement me
panic("implement me")
}
func (d DeliveryHandler) ComplaintRider(bill *model.Waybill, resonID int, resonContent string) (err error) {
//TODO implement me
panic("implement me")
}
func (d DeliveryHandler) GetRiderInfo(orderId string, deliveryId int64, mtPeisongId string) (rider *mtpsapi.RiderInfo, err error) {
//TODO implement me
panic("implement me")
}