配额调整

This commit is contained in:
tangcongfa_v@didichuxing.com
2021-05-12 11:31:41 +08:00
parent b68ba0bff6
commit eb8fe77582
5 changed files with 67 additions and 53 deletions

View File

@@ -1,6 +1,7 @@
package com.xiaojukeji.kafka.manager.common.entity.dto.normal;
import com.xiaojukeji.kafka.manager.common.entity.dto.ClusterTopicDTO;
import com.xiaojukeji.kafka.manager.common.utils.ValidateUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@@ -39,4 +40,13 @@ public class TopicQuotaDTO extends ClusterTopicDTO {
public void setConsumeQuota(Long consumeQuota) {
this.consumeQuota = consumeQuota;
}
public boolean paramLegal() {
if (ValidateUtils.isNull(clusterId)
|| ValidateUtils.isNull(topicName)
|| ValidateUtils.isNull(appId)) {
return false;
}
return true;
}
}