mirror of
https://github.com/didi/KnowStreaming.git
synced 2025-12-24 03:42:07 +08:00
Merge branch 'shirc_dev' into dev
This commit is contained in:
@@ -25,6 +25,9 @@ public enum ResultStatus {
|
||||
CHANGE_ZOOKEEPER_FORBIDDEN(1405, "change zookeeper forbidden"),
|
||||
|
||||
|
||||
APP_OFFLINE_FORBIDDEN(1406, "先下线topic,才能下线应用~"),
|
||||
|
||||
|
||||
TOPIC_OPERATION_PARAM_NULL_POINTER(1450, "参数错误"),
|
||||
TOPIC_OPERATION_PARTITION_NUM_ILLEGAL(1451, "分区数错误"),
|
||||
TOPIC_OPERATION_BROKER_NUM_NOT_ENOUGH(1452, "Broker数不足错误"),
|
||||
|
||||
@@ -95,7 +95,7 @@ public class DeleteAppOrder extends AbstractAppOrder {
|
||||
// 判断app是否对topic有权限
|
||||
List<AuthorityDO> authorityList = authorityService.getAuthority(orderAppExtension.getAppId());
|
||||
if (!ValidateUtils.isEmptyList(authorityList)) {
|
||||
return ResultStatus.OPERATION_FORBIDDEN;
|
||||
return ResultStatus.APP_OFFLINE_FORBIDDEN;
|
||||
}
|
||||
if (appService.deleteApp(appDO, userName) > 0) {
|
||||
return ResultStatus.SUCCESS;
|
||||
|
||||
@@ -14,7 +14,7 @@ spring:
|
||||
jdbc-url: jdbc:mysql://127.0.0.1:3306/logi_kafka_manager?characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
|
||||
username: admin
|
||||
password: admin
|
||||
driver-class-name: com.mysql.jdbc.Driver
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
main:
|
||||
allow-bean-definition-overriding: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user