forked from chanjarster/weixin-java-tools
-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
858a3b9
commit 6177ca0
Showing
6 changed files
with
149 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
53 changes: 53 additions & 0 deletions
53
...n-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceSettingRequest.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,53 @@ | ||
package me.chanjar.weixin.cp.bean.oa.wedrive; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.experimental.Accessors; | ||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* 权限管理请求. | ||
*/ | ||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Accessors(chain = true) | ||
public class WxCpSpaceSettingRequest implements Serializable { | ||
private static final long serialVersionUID = -4960239393895754138L; | ||
|
||
@SerializedName("userid") | ||
private String userId; | ||
|
||
@SerializedName("spaceid") | ||
private String spaceId; | ||
|
||
@SerializedName("enable_watermark") | ||
private Boolean enableWatermark; | ||
|
||
@SerializedName("add_member_only_admin") | ||
private Boolean addMemberOnlyAdmin; | ||
|
||
@SerializedName("enable_share_url") | ||
private Boolean enableShareUrl; | ||
|
||
@SerializedName("share_url_no_approve") | ||
private Boolean shareUrlNoApprove; | ||
|
||
@SerializedName("share_url_no_approve_default_auth") | ||
private Integer shareUrlNoApproveDefaultAuth; | ||
|
||
public static WxCpSpaceSettingRequest fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpSpaceSettingRequest.class); | ||
} | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
|
||
} |
30 changes: 30 additions & 0 deletions
30
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceShare.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,30 @@ | ||
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 WxCpSpaceShare extends WxCpBaseResp implements Serializable { | ||
private static final long serialVersionUID = -5028321625142879581L; | ||
|
||
@SerializedName("space_share_url") | ||
private String spaceShareUrl; | ||
|
||
public static WxCpSpaceShare fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpSpaceShare.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