aa
This commit is contained in:
@@ -2,6 +2,7 @@ package controllers
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/jx-callback/business/jxstore/cms"
|
||||
"git.rosy.net.cn/jx-callback/business/jxstore/financial"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils"
|
||||
beego "github.com/astaxie/beego/adapter"
|
||||
)
|
||||
@@ -187,3 +188,20 @@ func (c *OrderController) GetMyUnionOrders() {
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 联盟订单结算
|
||||
// @Description 联盟订单结算
|
||||
// @Param token header string true "认证token"
|
||||
// @Param vendorIDs query string false "平台IDs"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /SettleUnionOrders [post]
|
||||
func (c *OrderController) SettleUnionOrders() {
|
||||
c.callSettleUnionOrders(func(params *tOrderSettleUnionOrdersParams) (retVal interface{}, errCode string, err error) {
|
||||
var vendorIDs []int
|
||||
if err = jxutils.Strings2Objs(params.VendorIDs, &vendorIDs); err == nil {
|
||||
err = financial.SettleUnionOrders(params.Ctx, vendorIDs)
|
||||
}
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user