禁用用户测试

This commit is contained in:
苏尹岚
2020-02-21 16:44:14 +08:00
parent f054243c77
commit ddc0994456
3 changed files with 60 additions and 59 deletions

View File

@@ -472,16 +472,16 @@ func (c *User2Controller) UpdateUserWxNoAndPercent() {
})
}
// @Title 删除分账接收方
// @Description 删除分账接收方
// @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)
// @router /DeleteUserInfo [delete]
func (c *User2Controller) DeleteUserInfo() {
c.callDeleteUserInfo(func(params *tUser2DeleteUserInfoParams) (retVal interface{}, errCode string, err error) {
err = cms.DeleteUserInfo(params.Ctx, params.UserID)
return retVal, "", err
})
}