企业付款相关类更名
This commit is contained in:
@@ -54,11 +54,11 @@ public class TemplateMessage implements Serializable {
|
||||
|
||||
private final String HEAD_KEY = "first";
|
||||
private final String TAIL_KEY = "remark";
|
||||
private final String DEFAULT_COLOR = "#173177";
|
||||
|
||||
@JSONCreator
|
||||
public TemplateMessage(@JSONField(name = "toUser") String toUser,
|
||||
@JSONField(name = "templateId") String templateId,
|
||||
@JSONField(name = "title") String title,
|
||||
@JSONField(name = "url") String url) {
|
||||
this.toUser = toUser;
|
||||
this.templateId = templateId;
|
||||
@@ -124,7 +124,7 @@ public class TemplateMessage implements Serializable {
|
||||
* @return
|
||||
*/
|
||||
public TemplateMessage pushTail(String text) {
|
||||
return pushTail("#173177", text);
|
||||
return pushTail(DEFAULT_COLOR, text);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -152,7 +152,7 @@ public class TemplateMessage implements Serializable {
|
||||
* @return
|
||||
*/
|
||||
public TemplateMessage pushItem(String key, String text) {
|
||||
return pushItem(key, "#173177", text);
|
||||
return pushItem(key, DEFAULT_COLOR, text);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -171,6 +171,15 @@ public class TemplateMessage implements Serializable {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置所有字段项
|
||||
*
|
||||
* @param items
|
||||
*/
|
||||
public void pushItems(Map<String, NameValue> items) {
|
||||
this.content = items;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TemplateMessage [toUser=" + toUser + ", templateId="
|
||||
|
||||
Reference in New Issue
Block a user