temporay up
This commit is contained in:
@@ -447,3 +447,36 @@ func (c *User2Controller) GetJdUsers() {
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 更新用户分成比例
|
||||
// @Description 更新用户分成比例
|
||||
// @Param token header string true "认证token"
|
||||
// @Param userID formData string true "用户userID"
|
||||
// @Param dividePercentage formData int fasle "用户分成比例"
|
||||
// @Param isReceiver formData bool true "是否加入分账接收方,默认是"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /UpdateUserWxNoAndPercent [put]
|
||||
func (c *User2Controller) UpdateUserWxNoAndPercent() {
|
||||
c.callUpdateUserWxNoAndPercent(func(params *tUser2UpdateUserWxNoAndPercentParams) (retVal interface{}, errCode string, err error) {
|
||||
retVal, err = cms.UpdateUserWxNoAndPercent(&model.User{
|
||||
UserID: params.UserID,
|
||||
DividePercentage: params.DividePercentage,
|
||||
}, params.IsReceiver)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 删除分账接收方
|
||||
// @Description 删除分账接收方
|
||||
// @Param token header string true "认证token"
|
||||
// @Param userID query string true "用户userID"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /DeleteProfitSharingReceiver [delete]
|
||||
func (c *User2Controller) DeleteProfitSharingReceiver() {
|
||||
c.callDeleteProfitSharingReceiver(func(params *tUser2DeleteProfitSharingReceiverParams) (retVal interface{}, errCode string, err error) {
|
||||
err = cms.DeleteProfitSharingReceiver(params.Ctx, params.UserID)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
@@ -130,3 +130,34 @@ func (c *JxOrderController) GetMyOrderCountInfo() {
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 每日订单分账
|
||||
// @Description 每日订单分账
|
||||
// @Param token header string true "认证token"
|
||||
// @Param isAsync formData bool false "是否异步操作"
|
||||
// @Param isContinueWhenError formData bool false "单个同步失败是否继续,缺省false"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /AutoPayForPopluarMan [post]
|
||||
func (c *JxOrderController) AutoPayForPopluarMan() {
|
||||
c.callAutoPayForPopluarMan(func(params *tJxorderAutoPayForPopluarManParams) (retVal interface{}, errCode string, err error) {
|
||||
retVal, err = localjx.AutoPayForPopluarMan(params.Ctx, params.IsAsync, params.IsContinueWhenError)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 订单分账
|
||||
// @Description 订单分账
|
||||
// @Param token header string true "认证token"
|
||||
// @Param transactionID formData string true "微信订单ID"
|
||||
// @Param vendorOrderID formData string true "订单ID"
|
||||
// @Param userID formData string true "userID"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /PayForPopluarMan [post]
|
||||
func (c *JxOrderController) PayForPopluarMan() {
|
||||
c.callPayForPopluarMan(func(params *tJxorderPayForPopluarManParams) (retVal interface{}, errCode string, err error) {
|
||||
err = localjx.PayForPopluarMan(params.Ctx, params.TransactionID, params.VendorOrderID, params.UserID)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user