mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
:new:【企业微信】 新增获取成员假期余额的接口
This commit is contained in:
@@ -29,4 +29,5 @@ public class WxCpBaseResp implements Serializable {
|
||||
public static WxCpBaseResp fromJson(String json) {
|
||||
return WxCpGsonBuilder.create().fromJson(json, WxCpBaseResp.class);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
package me.chanjar.weixin.cp.bean.oa;
|
||||
|
||||
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;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 成员假期余额信息.
|
||||
*
|
||||
* @author Wang_Wong
|
||||
*/
|
||||
@Data
|
||||
public class WxCpUserVacationQuota extends WxCpBaseResp implements Serializable {
|
||||
private static final long serialVersionUID = 7387181805254287157L;
|
||||
|
||||
@SerializedName("lists")
|
||||
private List<VacationQuota> lists;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public static class VacationQuota implements Serializable {
|
||||
private static final long serialVersionUID = -5696099236344075582L;
|
||||
|
||||
@SerializedName("id")
|
||||
private Integer id;
|
||||
|
||||
@SerializedName("assignduration")
|
||||
private Integer assignDuration;
|
||||
|
||||
@SerializedName("usedduration")
|
||||
private Integer usedDuration;
|
||||
|
||||
@SerializedName("leftduration")
|
||||
private Integer leftDuration;
|
||||
|
||||
@SerializedName("vacationname")
|
||||
private String vacationName;
|
||||
|
||||
}
|
||||
|
||||
public static WxCpUserVacationQuota fromJson(String json) {
|
||||
return WxCpGsonBuilder.create().fromJson(json, WxCpUserVacationQuota.class);
|
||||
}
|
||||
|
||||
public String toJson() {
|
||||
return WxCpGsonBuilder.create().toJson(this);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user