use of com.paascloud.provider.model.domain.TpcMqTopic in project paascloud-master by paascloud.
the class TpcMqTopicController method modifyTopicStatusById.
/**
* 修改topic状态.
*
* @param updateStatusDto the update status dto
*
* @return the wrapper
*/
@PostMapping(value = "/modifyStatusById")
@ApiOperation(httpMethod = "POST", value = "修改topic状态")
@LogAnnotation
public Wrapper modifyTopicStatusById(@ApiParam(value = "修改topic状态") @RequestBody UpdateStatusDto updateStatusDto) {
logger.info("修改topic状态 updateStatusDto={}", updateStatusDto);
Long roleId = updateStatusDto.getId();
LoginAuthDto loginAuthDto = getLoginAuthDto();
TpcMqTopic topic = new TpcMqTopic();
topic.setId(roleId);
topic.setStatus(updateStatusDto.getStatus());
topic.setUpdateInfo(loginAuthDto);
int result = tpcMqTopicService.update(topic);
return super.handleResult(result);
}
Aggregations