|
@ -244,6 +244,22 @@ public class UserEndpoint extends EnvelopRestEndpoint {
|
|
|
return success(jsonObject.getString("response"));
|
|
|
}
|
|
|
|
|
|
|
|
|
@PostMapping(value = "enableOrDisable")
|
|
|
@ApiOperation(value = "生效失效某个用户(新写接口-按钮)")
|
|
|
public Envelop enableOrDisable(
|
|
|
@ApiParam(name = "id", value = "用户标识")
|
|
|
@RequestParam(value = "id", required = true) String id,
|
|
|
@ApiParam(name = "status", value = "生效或失效标识")
|
|
|
@RequestParam(value = "status", required = true) boolean status) throws Exception {
|
|
|
JSONObject jsonObject = userService.enableOrDisable(id, status);
|
|
|
if (jsonObject.getString("response").equalsIgnoreCase(ConstantUtils.FAIL)) {
|
|
|
return failed(jsonObject.getString("msg"));
|
|
|
}
|
|
|
return success(jsonObject.getString("response"));
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 重置密码
|
|
|
*
|