-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b353067
commit 19c3113
Showing
7 changed files
with
262 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
33 changes: 33 additions & 0 deletions
33
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileCreate.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,33 @@ | ||
package me.chanjar.weixin.cp.bean.oa.wedrive; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Data; | ||
import me.chanjar.weixin.cp.bean.WxCpBaseResp; | ||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* 新建文件/微文档 返回信息. | ||
* | ||
* @author Wang_Wong | ||
*/ | ||
@Data | ||
public class WxCpFileCreate extends WxCpBaseResp implements Serializable { | ||
private static final long serialVersionUID = -5028321625142879581L; | ||
|
||
@SerializedName("fileid") | ||
private String fileId; | ||
|
||
@SerializedName("url") | ||
private String url; | ||
|
||
public static WxCpFileCreate fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpFileCreate.class); | ||
} | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
|
||
} |
36 changes: 36 additions & 0 deletions
36
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileDownload.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,36 @@ | ||
package me.chanjar.weixin.cp.bean.oa.wedrive; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Data; | ||
import me.chanjar.weixin.cp.bean.WxCpBaseResp; | ||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* 下载文件返回信息. | ||
* | ||
* @author Wang_Wong | ||
*/ | ||
@Data | ||
public class WxCpFileDownload extends WxCpBaseResp implements Serializable { | ||
private static final long serialVersionUID = -5028321625142879581L; | ||
|
||
@SerializedName("download_url") | ||
private String downloadUrl; | ||
|
||
@SerializedName("cookie_name") | ||
private String cookieName; | ||
|
||
@SerializedName("cookie_value") | ||
private String cookieValue; | ||
|
||
public static WxCpFileDownload fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpFileDownload.class); | ||
} | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
|
||
} |
89 changes: 89 additions & 0 deletions
89
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileRename.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,89 @@ | ||
package me.chanjar.weixin.cp.bean.oa.wedrive; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Data; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import me.chanjar.weixin.cp.bean.WxCpBaseResp; | ||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* 下载文件返回信息. | ||
* | ||
* @author Wang_Wong | ||
*/ | ||
@Data | ||
public class WxCpFileRename extends WxCpBaseResp implements Serializable { | ||
private static final long serialVersionUID = -5028321625142879581L; | ||
|
||
@SerializedName("file") | ||
private File file; | ||
|
||
@Getter | ||
@Setter | ||
public static class File implements Serializable { | ||
private static final long serialVersionUID = -4960239393895754598L; | ||
|
||
@SerializedName("fileid") | ||
private String fileId; | ||
|
||
@SerializedName("file_name") | ||
private String fileName; | ||
|
||
@SerializedName("spaceid") | ||
private String spaceId; | ||
|
||
@SerializedName("fatherid") | ||
private String fatherId; | ||
|
||
@SerializedName("file_size") | ||
private Long fileSize; | ||
|
||
@SerializedName("ctime") | ||
private Long cTime; | ||
|
||
@SerializedName("mtime") | ||
private Long mTime; | ||
|
||
@SerializedName("file_type") | ||
private Integer fileType; | ||
|
||
@SerializedName("file_status") | ||
private Integer fileStatus; | ||
|
||
@SerializedName("create_userid") | ||
private String createUserId; | ||
|
||
@SerializedName("update_userid") | ||
private String updateUserId; | ||
|
||
@SerializedName("sha") | ||
private String sha; | ||
|
||
@SerializedName("url") | ||
private String url; | ||
|
||
@SerializedName("md5") | ||
private String md5; | ||
|
||
public static File fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, File.class); | ||
} | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
|
||
} | ||
|
||
public static WxCpFileRename fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpFileRename.class); | ||
} | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(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
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