mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-06-28 13:16:19 +08:00
🎨 #3478 【企业微信】OA审批接口增加对说明文字控件(control参数为Tips)的支持
This commit is contained in:
parent
b4b73ad40a
commit
ab1c150feb
@ -6,6 +6,7 @@ import lombok.Builder;
|
|||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
|
import me.chanjar.weixin.cp.bean.oa.templatedata.TemplateTips;
|
||||||
import me.chanjar.weixin.cp.bean.oa.templatedata.TemplateTitle;
|
import me.chanjar.weixin.cp.bean.oa.templatedata.TemplateTitle;
|
||||||
import me.chanjar.weixin.cp.bean.oa.templatedata.control.*;
|
import me.chanjar.weixin.cp.bean.oa.templatedata.control.*;
|
||||||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
|
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
|
||||||
@ -94,6 +95,9 @@ public class WxCpOaApprovalTemplateResult implements Serializable {
|
|||||||
@SerializedName("vacation_list")
|
@SerializedName("vacation_list")
|
||||||
private TemplateVacation vacationList;
|
private TemplateVacation vacationList;
|
||||||
|
|
||||||
|
@SerializedName("tips")
|
||||||
|
private TemplateTips tips;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@ -37,4 +37,6 @@ public class TemplateConfig implements Serializable {
|
|||||||
@SerializedName("vacation_list")
|
@SerializedName("vacation_list")
|
||||||
private TemplateVacation vacationList;
|
private TemplateVacation vacationList;
|
||||||
|
|
||||||
|
private TemplateTips tips;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,18 @@
|
|||||||
|
package me.chanjar.weixin.cp.bean.oa.templatedata;
|
||||||
|
|
||||||
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author mrsiu@msn.com
|
||||||
|
* @version 1.0
|
||||||
|
* @date 2025/1/16 09:40
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class TemplateTips {
|
||||||
|
|
||||||
|
@SerializedName("tips_content")
|
||||||
|
private List<TemplateTipsContent> tipsContent;
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package me.chanjar.weixin.cp.bean.oa.templatedata;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author mrsiu@msn.com
|
||||||
|
* @version 1.0
|
||||||
|
* @date 2025/1/16 09:42
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class TemplateTipsContent {
|
||||||
|
|
||||||
|
private TemplateTipsText text;
|
||||||
|
private String lang;
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
package me.chanjar.weixin.cp.bean.oa.templatedata;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author mrsiu@msn.com
|
||||||
|
* @version 1.0
|
||||||
|
* @date 2025/1/16 09:45
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class TemplateTipsSubText {
|
||||||
|
private Integer type;
|
||||||
|
private TemplateTipsSubTextContent content;
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package me.chanjar.weixin.cp.bean.oa.templatedata;
|
||||||
|
|
||||||
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author mrsiu@msn.com
|
||||||
|
* @version 1.0
|
||||||
|
* @date 2025/1/16 09:46
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class TemplateTipsSubTextContent {
|
||||||
|
@SerializedName("plain_text")
|
||||||
|
private TemplateTipsSubTextContentPlainText plainText;
|
||||||
|
private TemplateTipsSubTextContentLink link;
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
package me.chanjar.weixin.cp.bean.oa.templatedata;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author mrsiu@msn.com
|
||||||
|
* @version 1.0
|
||||||
|
* @date 2025/1/16 09:49
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class TemplateTipsSubTextContentLink {
|
||||||
|
private String title;
|
||||||
|
private String url;
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package me.chanjar.weixin.cp.bean.oa.templatedata;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author mrsiu@msn.com
|
||||||
|
* @date 2025/1/16 09:47
|
||||||
|
* @version 1.0
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class TemplateTipsSubTextContentPlainText {
|
||||||
|
private String content;
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package me.chanjar.weixin.cp.bean.oa.templatedata;
|
||||||
|
|
||||||
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author mrsiu@msn.com
|
||||||
|
* @date 2025/1/16 09:43
|
||||||
|
* @version 1.0
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class TemplateTipsText {
|
||||||
|
@SerializedName("sub_text")
|
||||||
|
private List<TemplateTipsSubText> subText;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user