diff --git a/business/model/order.go b/business/model/order.go index 335c3b72d..2675128f1 100644 --- a/business/model/order.go +++ b/business/model/order.go @@ -482,6 +482,14 @@ func (v *StoreCoupons) TableIndex() [][]string { } } +type AcctOrder struct { + ID int64 `orm:"column(id)" json:"id"` + VendorOrderID string `orm:"column(vendor_order_id);size(48)" json:"vendorOrderID"` + VendorID int `orm:"column(vendor_id)" json:"vendorID"` + StoreID int `orm:"column(store_id)" json:"storeID"` + UserID string `orm:"column(user_id);size(48);index" json:"userID"` +} + // 判断是否是购买平台自有物流 // 对于京东,饿百来说,就是其自有的物流,对于微商城来说,是达达 func IsWaybillPlatformOwn(bill *Waybill) bool { diff --git a/business/partner/purchase/jx/localjx/order.go b/business/partner/purchase/jx/localjx/order.go index 7d6bb27b0..3857e814f 100644 --- a/business/partner/purchase/jx/localjx/order.go +++ b/business/partner/purchase/jx/localjx/order.go @@ -2430,3 +2430,7 @@ func RefreshCouponsStatus(ctx *jxcontext.Context) (err error) { task.GetID() return err } + +func CreateStoreAcctOrder(ctx *jxcontext.Context, orderType, storeID, price int) (err error) { + return err +} diff --git a/controllers/jx_order2.go b/controllers/jx_order2.go index 9cbeda0ac..d2f06383e 100644 --- a/controllers/jx_order2.go +++ b/controllers/jx_order2.go @@ -372,7 +372,6 @@ func (c *JxOrderController) ReceiveCoupons() { // @Title 创建门店账户订单 // @Description 创建门店账户订单 // @Param token header string true "认证token" -// @Param type formData int true "支付类型/账单类型" // @Param orderType formData int true "订单类型,1为账户充值" // @Param storeID formData int true "门店ID" // @Param price formData int true "支付金额" @@ -381,6 +380,7 @@ func (c *JxOrderController) ReceiveCoupons() { // @router /CreateStoreAcctOrder [post] func (c *JxOrderController) CreateStoreAcctOrder() { c.callCreateStoreAcctOrder(func(params *tJxorderCreateStoreAcctOrderParams) (retVal interface{}, errCode string, err error) { + localjx.CreateStoreAcctOrder(params.Ctx, params.OrderType, params.StoreID, params.Price) return retVal, "", err }) }