Skip to content

Commit d073fb8

Browse files
committed
docs: add enum's value comment.
1 parent d557483 commit d073fb8

15 files changed

+54
-101
lines changed

client/src/main/java/cn/vika/client/api/FieldApi.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ public CreateFieldResponse addField(String spaceId, String datasheetId,
3030

3131
checkPostFieldPathArgs(spaceId, datasheetId);
3232

33-
// TODO: 校验CreateFieldRequest对象
34-
3533
final String path = String.format(POST_FIELD_PATH, spaceId, datasheetId);
3634
HttpResult<CreateFieldResponse> result = getDefaultHttpClient().post(
3735
path, new HttpHeader(), field,

client/src/main/java/cn/vika/client/api/model/builder/CreateFieldRequestBuilder.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ class PropertyOfCreateField implements IPropertyOfCreateField {
8989
@Override
9090
public <T extends BaseFieldProperty> IBuildCreateField<T> withProperty(T property) {
9191

92-
// TODO: 泛型正确性判断
93-
9492
context.setProperty(property);
9593
return new BuildCreateField<>(context);
9694
}

client/src/main/java/cn/vika/client/api/model/builder/IBuildCreateField.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
*/
99
public interface IBuildCreateField <T extends BaseFieldProperty> {
1010

11-
/**
12-
*
13-
* @return
14-
*/
1511
CreateFieldRequest<T> build();
1612

1713
}

client/src/main/java/cn/vika/client/api/model/builder/IFieldTypeOfCreateField.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77
*/
88
public interface IFieldTypeOfCreateField {
99

10-
/**
11-
*
12-
* @param fieldType
13-
* @return
14-
*/
1510
INameOfCreateField ofType(FieldType fieldType);
1611

1712
}

client/src/main/java/cn/vika/client/api/model/builder/INameOfCreateField.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
*/
66
public interface INameOfCreateField {
77

8-
/**
9-
*
10-
* @param name
11-
* @return
12-
*/
138
IPropertyOfCreateField withName(String name);
149

1510
}

client/src/main/java/cn/vika/client/api/model/builder/IPropertyOfCreateField.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@
88
*/
99
public interface IPropertyOfCreateField {
1010

11-
/**
12-
*
13-
* @param property
14-
* @param <T>
15-
* @return
16-
*/
1711
<T extends BaseFieldProperty> IBuildCreateField<T> withProperty(T property);
1812

1913
IBuildCreateField<EmptyProperty> withoutProperty();

client/src/main/java/cn/vika/client/api/model/field/property/option/CollectTypeEnum.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
public enum CollectTypeEnum {
99

1010
/**
11-
*
11+
* Indicates that the value of any field is changed when it is updated
1212
*/
1313
ALL(0),
1414
/**
15-
*
15+
*Indicates that the value of specified field is changed when it is updated
1616
*/
1717
SPECIFIED(1);
1818

client/src/main/java/cn/vika/client/api/model/field/property/option/Currency.java renamed to client/src/main/java/cn/vika/client/api/model/field/property/option/CurrencyFormat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* @author tao
55
*/
6-
public class Currency extends TypeFormat{
6+
public class CurrencyFormat extends TypeFormat{
77

88
private int precision;
99

client/src/main/java/cn/vika/client/api/model/field/property/option/DateFormatEnum.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,35 @@
77
*/
88
public enum DateFormatEnum {
99
/**
10-
*
10+
* Date's format "2022/01/30"
1111
*/
1212
DATE_SLASH("YYYY/MM/DD"),
1313
/**
14-
*
14+
* Date's format "2022-01-30"
1515
*/
1616
DATE("YYYY-MM-DD"),
1717
/**
18-
*
18+
* Date's format "01/30/2022"
1919
*/
2020
EUROPEAN_DATE_SLASH("DD/MM/YYYY"),
2121
/**
22-
*
22+
* Date's format "2022-01"
2323
*/
2424
YEAR_MOUTH("YYYY-MM"),
2525
/**
26-
*
26+
* Date's format "01-30"
2727
*/
2828
MOUTH_DAY("MM-DD"),
2929
/**
30-
*
30+
* Date's format "2020"
3131
*/
3232
YEAR("YYYY"),
3333
/**
34-
*
34+
* Date's format "01"
3535
*/
3636
MOUNT("MM"),
3737
/**
38-
*
38+
* Date's format "30"
3939
*/
4040
DAY("DD");
4141
private final String value;

client/src/main/java/cn/vika/client/api/model/field/property/option/FormatType.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,23 @@
77
*/
88
public enum FormatType {
99
/**
10-
*
10+
* Format about DateTime
11+
* @see cn.vika.client.api.model.field.property.option.DateTimeFormat
1112
*/
1213
DateTime("DateTime"),
1314
/**
14-
*
15+
* Format about Number
16+
* @see cn.vika.client.api.model.field.property.option.NumberFormat
1517
*/
1618
Number("Number"),
1719
/**
18-
*
20+
* Format about Percent
21+
* @see cn.vika.client.api.model.field.property.option.PercentFormat
1922
*/
2023
Percent("Percent"),
2124
/**
22-
*
25+
* Format about Currency
26+
* @see cn.vika.client.api.model.field.property.option.CurrencyFormat
2327
*/
2428
Currency("Currency"),
2529
;

0 commit comments

Comments
 (0)