-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #739 from shalousun/master
add: request part annotation
- Loading branch information
Showing
4 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
src/main/java/com/ly/doc/model/annotation/RequestPartAnnotation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
package com.ly.doc.model.annotation; | ||
|
||
public class RequestPartAnnotation { | ||
|
||
private String annotationName; | ||
|
||
private String annotationFullyName; | ||
|
||
private String defaultValueProp; | ||
|
||
private String requiredProp; | ||
|
||
public static RequestPartAnnotation builder() { | ||
return new RequestPartAnnotation(); | ||
} | ||
|
||
public String getAnnotationName() { | ||
return annotationName; | ||
} | ||
|
||
public RequestPartAnnotation setAnnotationName(String annotationName) { | ||
this.annotationName = annotationName; | ||
return this; | ||
} | ||
|
||
public String getAnnotationFullyName() { | ||
return annotationFullyName; | ||
} | ||
|
||
public RequestPartAnnotation setAnnotationFullyName(String annotationFullyName) { | ||
this.annotationFullyName = annotationFullyName; | ||
return this; | ||
} | ||
|
||
public String getDefaultValueProp() { | ||
return defaultValueProp; | ||
} | ||
|
||
public RequestPartAnnotation setDefaultValueProp(String defaultValueProp) { | ||
this.defaultValueProp = defaultValueProp; | ||
return this; | ||
} | ||
|
||
public String getRequiredProp() { | ||
return requiredProp; | ||
} | ||
|
||
public RequestPartAnnotation setRequiredProp(String requiredProp) { | ||
this.requiredProp = requiredProp; | ||
return this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters