Skip to content

Commit

Permalink
bugfix: 数据库账号的端口可以输入负数 TencentBlueKing#1446
Browse files Browse the repository at this point in the history
  • Loading branch information
jsonwan committed Nov 8, 2022
1 parent be82776 commit 07651d0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ validation.constraints.InvalidUploadFileRestrictMode.message=非法的上传文
validation.constraints.InvalidScriptId_empty.message=脚本ID不能为空
validation.constraints.EmptyDynamicGroupId.message=动态分组ID不可为空
validation.constraints.InvalidFileUploadSettingAmount.message=文件大小只能为大于0的浮点数
validation.constraints.InvalidPort.message=端口号只能为0-65536之间的整数
validation.constraints.InvalidPort.message=端口号只能为0-65535之间的整数
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ validation.constraints.InvalidUploadFileRestrictMode.message=Invalid restrict mo
validation.constraints.InvalidScriptId_empty.message=Script id cannot be empty
validation.constraints.EmptyDynamicGroupId.message=DynamicGroup ID cannot be empty
validation.constraints.InvalidFileUploadSettingAmount.message=File size must be a positive float
validation.constraints.InvalidPort.message=Port must be a integer which is between 0 and 65536
validation.constraints.InvalidPort.message=Port must be a integer which is between 0 and 65535
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ validation.constraints.InvalidUploadFileRestrictMode.message=Invalid restrict mo
validation.constraints.InvalidScriptId_empty.message=Script id cannot be empty
validation.constraints.EmptyDynamicGroupId.message=DynamicGroup ID cannot be empty
validation.constraints.InvalidFileUploadSettingAmount.message=File size must be a positive float
validation.constraints.InvalidPort.message=Port must be a integer which is between 0 and 65536
validation.constraints.InvalidPort.message=Port must be a integer which is between 0 and 65535
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ validation.constraints.InvalidUploadFileRestrictMode.message=非法的上传文
validation.constraints.InvalidScriptId_empty.message=脚本ID不能为空
validation.constraints.EmptyDynamicGroupId.message=动态分组ID不可为空
validation.constraints.InvalidFileUploadSettingAmount.message=文件大小只能为大于0的浮点数
validation.constraints.InvalidPort.message=端口号只能为0-65536之间的整数
validation.constraints.InvalidPort.message=端口号只能为0-65535之间的整数
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ validation.constraints.InvalidUploadFileRestrictMode.message=非法的上传文
validation.constraints.InvalidScriptId_empty.message=脚本ID不能为空
validation.constraints.EmptyDynamicGroupId.message=动态分组ID不可为空
validation.constraints.InvalidFileUploadSettingAmount.message=文件大小只能为大于0的浮点数
validation.constraints.InvalidPort.message=端口号只能为0-65536之间的整数
validation.constraints.InvalidPort.message=端口号只能为0-65535之间的整数
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public class AccountCreateUpdateReq {
private String password;

@ApiModelProperty(value = "DB端口,创建/更新DB账号的时候必传")
@Range(min = 0, max = 65536, message = "{validation.constraints.InvalidPort.message}")
@Range(min = 0, max = 65535, message = "{validation.constraints.InvalidPort.message}")
private Integer dbPort;

@ApiModelProperty(value = "DB账号关联的系统账号,创建/更新DB账号的时候必传")
Expand Down

0 comments on commit 07651d0

Please sign in to comment.