Skip to content

Commit e66a6b3

Browse files
Merge pull request #19 from larksuite/feat/add_delete_method
upload interface add index
2 parents 02bb4c2 + 5ccc6ce commit e66a6b3

File tree

5 files changed

+19
-3
lines changed

5 files changed

+19
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<dependency>
5757
<groupId>com.larksuite.project</groupId>
5858
<artifactId>oapi-sdk</artifactId>
59-
<version>1.0.18</version>
59+
<version>1.0.19</version>
6060
</dependency>
6161
```
6262

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.larksuite.project</groupId>
88
<artifactId>oapi-sdk</artifactId>
9-
<version>1.0.18</version>
9+
<version>1.0.19</version>
1010
<build>
1111
<plugins>
1212
<plugin>

src/main/java/com/lark/project/core/Constants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public interface Constants {
3030
String HTTP_HEADER_ACCESS_TOKEN = "X-PLUGIN-TOKEN";
3131

3232
String HTTP_HEADER_IDEM_UUID = "X-IDEM-UUID";
33-
String VERSION = "1.0.18";
33+
String VERSION = "1.0.19";
3434

3535
String BASE_URL = "https://project.feishu.cn";
3636

src/main/java/com/lark/project/service/attachment/builder/UploadAttachmentReq.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ public Builder fieldAlias(String fieldAlias) {
114114
return this;
115115
}
116116

117+
public Builder index(Integer index) {
118+
this.body.setIndex(index);
119+
return this;
120+
}
121+
117122
public UploadAttachmentReq build() {
118123
return new UploadAttachmentReq(this);
119124
}

src/main/java/com/lark/project/service/attachment/builder/UploadAttachmentReqBody.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ public class UploadAttachmentReqBody {
1717
@SerializedName("field_alias")
1818
private String fieldAlias;
1919

20+
@SerializedName("index")
21+
private Integer index;
22+
2023
public File getFile() {
2124
return file;
2225
}
@@ -48,4 +51,12 @@ public String getMimeType() {
4851
public void setMimeType(String mimeType) {
4952
this.mimeType = mimeType;
5053
}
54+
55+
public Integer getIndex() {
56+
return index;
57+
}
58+
59+
public void setIndex(Integer index) {
60+
this.index = index;
61+
}
5162
}

0 commit comments

Comments
 (0)