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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user