Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cb3e58e5
authored
Jun 15, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加了validation
1 parent
ab64bfa0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
project-order/src/main/java/com/alibaba/cloud/integration/order/dto/CapacityStatQueryReqDTO.java
project-order/src/main/java/com/alibaba/cloud/integration/order/dto/OrderCreateReqDTO.java
project-order/src/main/java/com/alibaba/cloud/integration/order/dto/CapacityStatQueryReqDTO.java
View file @
cb3e58e
package
com
.
alibaba
.
cloud
.
integration
.
order
.
dto
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotEmpty
;
@lombok
.
Data
public
class
CapacityStatQueryReqDTO
{
@Not
Empty
@Not
Blank
private
String
startDate
;
@NotEmpty
@NotBlank
private
String
endDate
;
/**
* cluster/branch/group
*/
@Not
Empty
@Not
Blank
private
String
levelType
;
/**
* clusterId/branchId/groupId
*/
@Not
Empty
@Not
Blank
private
String
levelValue
;
private
Integer
page
;
private
Integer
size
;
...
...
project-order/src/main/java/com/alibaba/cloud/integration/order/dto/OrderCreateReqDTO.java
View file @
cb3e58e
...
...
@@ -2,6 +2,7 @@ package com.alibaba.cloud.integration.order.dto;
import
lombok.Data
;
import
java.util.ArrayList
;
import
java.util.List
;
@Data
...
...
@@ -20,6 +21,6 @@ public class OrderCreateReqDTO {
private
String
expectEnd
;
private
String
expectDesc
;
private
String
priority
;
private
List
<
String
>
orderTags
;
private
List
<
String
>
orderTags
=
new
ArrayList
<>()
;
private
String
description
;
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment