Search in sources :

Example 1 with TpcMqTag

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);
}
Also used : TpcMqTag(com.paascloud.provider.model.domain.TpcMqTag) LoginAuthDto(com.paascloud.base.dto.LoginAuthDto) LogAnnotation(com.paascloud.core.annotation.LogAnnotation) ApiOperation(io.swagger.annotations.ApiOperation)

Aggregations

LoginAuthDto (com.paascloud.base.dto.LoginAuthDto)1 LogAnnotation (com.paascloud.core.annotation.LogAnnotation)1 TpcMqTag (com.paascloud.provider.model.domain.TpcMqTag)1 ApiOperation (io.swagger.annotations.ApiOperation)1