docs 补充项目注释
This commit is contained in:
+30
@@ -160,21 +160,51 @@ public class TestExcelController {
|
||||
return excelResult.getList();
|
||||
}
|
||||
|
||||
/**
|
||||
* 多列表模板填充测试对象。
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
static class TestObj1 {
|
||||
/**
|
||||
* 测试字段1。
|
||||
*/
|
||||
private String test1;
|
||||
/**
|
||||
* 测试字段2。
|
||||
*/
|
||||
private String test2;
|
||||
/**
|
||||
* 测试字段3。
|
||||
*/
|
||||
private String test3;
|
||||
}
|
||||
|
||||
/**
|
||||
* 单列表模板填充测试对象。
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
static class TestObj {
|
||||
/**
|
||||
* 名称。
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 列表字段1。
|
||||
*/
|
||||
private String list1;
|
||||
/**
|
||||
* 列表字段2。
|
||||
*/
|
||||
private String list2;
|
||||
/**
|
||||
* 列表字段3。
|
||||
*/
|
||||
private String list3;
|
||||
/**
|
||||
* 列表字段4。
|
||||
*/
|
||||
private String list4;
|
||||
}
|
||||
|
||||
|
||||
+9
@@ -58,12 +58,21 @@ public class TestI18nController {
|
||||
return R.ok(bo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 国际化 Bean 校验测试对象。
|
||||
*/
|
||||
@Data
|
||||
public static class TestI18nBo {
|
||||
|
||||
/**
|
||||
* 名称。
|
||||
*/
|
||||
@NotBlank(message = "{not.null}")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 年龄。
|
||||
*/
|
||||
@NotNull(message = "{not.null}")
|
||||
@Range(min = 0, max = 100, message = "{length.not.valid}")
|
||||
private Integer age;
|
||||
|
||||
+3
@@ -38,6 +38,9 @@ public class TestSensitiveController extends BaseController {
|
||||
return R.ok(testSensitive);
|
||||
}
|
||||
|
||||
/**
|
||||
* 脱敏测试对象。
|
||||
*/
|
||||
@Data
|
||||
static class TestSensitive {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user