-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
new featurenew featurenew feature
Description
/**
* 修改应用信息请求
*
* @author tjq
* @since 2020/4/1
*/
@Data
public class ModifyAppInfoRequest {
private Long id;
private String appName;
private Long namespaceId;
private String oldPassword;
private String password;
/**
* 描述
*/
private String title;
/**
* 管理标签
*/
private String tags;
/**
* 扩展字段
*/
private String extra;
private ComponentUserRoleInfo componentUserRoleInfo;
public void valid() {
CommonUtils.requireNonNull(appName, "appName can't be empty");
if (StringUtils.containsWhitespace(appName)) {
throw new PowerJobException("appName can't contains white space!");
}
CommonUtils.requireNonNull(password, "password can't be empty");
// 后续版本强制要求设置 namespace,方便统一管理
CommonUtils.requireNonNull(namespaceId, "namespace can't be empty");
}
}当前的应用创建时传参为命名空间ID,希望能支持命名空间编码。
Metadata
Metadata
Assignees
Labels
new featurenew featurenew feature