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